File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,12 @@ endif()
99
99
100
100
# Link MKL library to target
101
101
macro (DPCT_HELPER_ADD_MKL_TO_TARGET target )
102
- set (MKL_ILP64 TRUE )
103
-
104
102
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)
103
+ target_compile_options (${target} PUBLIC -fsycl /DMKL_ILP64 /Qmkl:parallel /Qtbb /MD )
104
+ target_link_libraries (${target} PUBLIC -fsycl OpenCL.lib)
106
105
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)
106
+ target_compile_options (${target} PUBLIC -fsycl -DMKL_ILP64 -qmkl=parallel -qtbb)
107
+ target_link_libraries (${target} PUBLIC -qmkl=parallel -qtbb -fsycl)
108
108
else ()
109
109
message (FATAL_ERROR "Unsupported platform" )
110
110
endif ()
You can’t perform that action at this time.
0 commit comments