File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,13 @@ endif()
99
99
100
100
# Link MKL library to target
101
101
macro (DPCT_HELPER_ADD_MKL_TO_TARGET target )
102
- if (WIN32 )
103
- target_link_libraries (${target} mkl_sycl_dll.lib mkl_intel_ilp64_dll.lib mkl_tbb_thread_dll.lib mkl_core_dll.lib OpenCL.lib)
104
- elseif (UNIX AND NOT APPLE )
105
- target_link_libraries (${target} -L${MKLROOT} /lib/intel64 -lmkl_intel_ilp64 -lmkl_tbb_thread -lmkl_core -lOpenCL -lmkl_sycl -lpthread -ldl)
106
- else ()
107
- message (FATAL_ERROR "Unsupported platform" )
108
- endif ()
102
+ set (MKL_ILP64 TRUE )
103
+
104
+ if (WIN32 )
105
+ target_link_libraries (${target} mkl_sycl_dll.lib mkl_intel_ilp64_dll.lib mkl_tbb_thread_dll.lib mkl_core_dll.lib OpenCL.lib)
106
+ elseif (UNIX AND NOT APPLE )
107
+ target_link_libraries (${target} -L${MKLROOT} /lib/intel64 -lmkl_intel_ilp64 -lmkl_tbb_thread -lmkl_core -lOpenCL -lmkl_sycl -lpthread -ldl)
108
+ else ()
109
+ message (FATAL_ERROR "Unsupported platform" )
110
+ endif ()
109
111
endmacro ()
You can’t perform that action at this time.
0 commit comments