8000 fix lint issue and comments. · pytorch/pytorch@3a8736e · GitHub
[go: up one dir, main page]

Skip to content

Commit 3a8736e

Browse files
committed
fix lint issue and comments.
1 parent b6dbb58 commit 3a8736e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

aten/src/ATen/mkl/MklAllocationHelp.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@
22
#include <ATen/Config.h>
33

44
#if AT_MKLDNN_ENABLED()
5+
#ifdef USE_MIMALLOC_ON_MKL
56
#include <c10/core/impl/alloc_cpu.h>
67

8+
/*
9+
MKL have a method to register memory allocation APIs via i_malloc.h, High
10+
performance memory allocation APIs will help improve MKL performance.
11+
Please check MKL online document:
12+
https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-windows/2024-2/redefining-memory-functions.html
13+
*/
714
#include <i_malloc.h>
815

9-
#ifdef USE_MIMALLOC_ON_MKL
10-
1116
bool register_mimalloc_api_to_mkl()
1217
{
1318
i_malloc = c10::mi_malloc_wrapper::c10_mi_malloc;
@@ -21,4 +26,3 @@ bool register_mimalloc_api_to_mkl()
2126
static bool g_b_registered_mkl_alloction = register_mimalloc_api_to_mkl();
2227
#endif
2328
#endif
24-

cmake/Summary.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function(caffe2_print_configuration_summary)
164164
message(STATUS " USE_OPENMP : ${USE_OPENMP}")
165165
message(STATUS " USE_MIMALLOC : ${USE_MIMALLOC}")
166166
if(${USE_MIMALLOC})
167-
message(STATUS " USE_MIMALLOC_ON_MKL : ${USE_MIMALLOC_ON_MKL}")
167+
message(STATUS " USE_MIMALLOC_ON_MKL : ${USE_MIMALLOC_ON_MKL}")
168168
endif()
169169
message(STATUS " USE_VULKAN : ${USE_VULKAN}")
170170
if(${USE_VULKAN})

0 commit comments

Comments
 (0)
0