8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d601a9 commit bc7aeeeCopy full SHA for bc7aeee
aten/src/ATen/mkl/MklAllocationHelp.cpp
@@ -1,10 +1,10 @@
1
-#include <ATen/Version.h>
2
#include <ATen/Config.h>
3
4
#if AT_MKLDNN_ENABLED()
5
#ifdef USE_MIMALLOC_ON_MKL
6
#include <c10/core/impl/alloc_cpu.h>
7
-
+#include <mkl.h>
+#if INTEL_MKL_VERSION > 20230000L
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.
@@ -26,3 +26,4 @@ bool register_mimalloc_api_to_mkl()
26
static bool g_b_registered_mkl_alloction = register_mimalloc_api_to_mkl();
27
#endif
28
29
+#endif
0 commit comments