File tree Expand file tree Collapse file tree 5 files changed +7
-31
lines changed Expand file tree Collapse file tree 5 files changed +7
-31
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,11 @@ endif()
26
26
set (MKL_ARCH "intel64" )
27
27
set (MKL_LINK "dynamic" )
28
28
set (MKL_THREADING "tbb_thread" )
29
- set (MKL_VERSION_2024 FALSE )
29
+ set (MKL_INTERFACE "ilp64" )
30
30
find_package (MKL QUIET )
31
31
if (MKL_FOUND )
32
- if (MKL_VERSION VERSION_GREATER_EQUAL "2024.0.0" )
33
- set (MKL_VERSION_2024 TRUE )
34
- set (MKL_INTERFACE "ilp64" )
35
- find_package (MKL REQUIRED )
36
- endif ()
37
- endif ()
38
-
39
- if (NOT MKL_VERSION_2024 )
40
- set (MKL_INTERFACE_FULL "intel_ilp64" )
32
+ find_package (MKL REQUIRED )
33
+ else ()
41
34
find_package (MKL REQUIRED PATHS ${CMAKE_SOURCE_DIR} /dpnp/backend/cmake/Modules NO_DEFAULT_PATH )
42
35
endif ()
43
36
Original file line number Diff line number Diff line change @@ -84,12 +84,7 @@ if(DPNP_GENERATE_COVERAGE)
84
84
target_link_options (${_trgt} PRIVATE -fprofile-instr-generate -fcoverage-mapping )
85
85
endif ()
86
86
87
- if (MKL_VERSION_2024 )
88
- target_link_libraries (${_trgt} PUBLIC MKL::MKL_SYCL )
89
- else ()
90
- target_link_libraries (${_trgt} PUBLIC MKL::MKL_DPCPP )
91
- endif ()
92
-
87
+ target_link_libraries (${_trgt} PUBLIC MKL::MKL_SYCL )
93
88
target_link_libraries (${_trgt} PUBLIC oneDPL )
94
89
95
90
if (UNIX )
Original file line number Diff line number Diff line change @@ -69,11 +69,7 @@ if (DPNP_GENERATE_COVERAGE)
69
69
target_link_options (${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping )
70
70
endif ()
71
71
72
- if (MKL_VERSION_2024 )
73
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::BLAS )
74
- else ()
75
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_DPCPP )
76
- endif ()
72
+ target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::BLAS )
77
73
78
74
install (TARGETS ${python_module_name}
79
75
DESTINATION "dpnp/backend/extensions/blas"
Original file line number Diff line number Diff line change @@ -82,11 +82,7 @@ if (DPNP_GENERATE_COVERAGE)
82
82
target_link_options (${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping )
83
83
endif ()
84
84
85
- if (MKL_VERSION_2024 )
86
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::LAPACK )
87
- else ()
88
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_DPCPP )
89
- endif ()
85
+ target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::LAPACK )
90
86
91
87
install (TARGETS ${python_module_name}
92
88
DESTINATION "dpnp/backend/extensions/lapack"
Original file line number Diff line number Diff line change @@ -109,11 +109,7 @@ if (DPNP_GENERATE_COVERAGE)
109
109
target_link_options (${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping )
110
110
endif ()
111
111
112
- if (MKL_VERSION_2024 )
113
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::VM )
114
- else ()
115
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_DPCPP )
116
- endif ()
112
+ target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::VM )
117
113
118
114
install (TARGETS ${python_module_name}
119
115
DESTINATION "dpnp/backend/extensions/vm"
You can’t perform that action at this time.
0 commit comments