File tree Expand file tree Collapse file tree 5 files changed +7
-32
lines changed Expand file tree Collapse file tree 5 files changed +7
-32
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,10 @@ 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 )
30
- find_package (MKL QUIET )
29
+ set (MKL_INTERFACE "ilp64" )
31
30
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" )
31
+ find_package (MKL REQUIRED )
32
+ else ()
41
33
find_package (MKL REQUIRED PATHS ${CMAKE_SOURCE_DIR} /dpnp/backend/cmake/Modules NO_DEFAULT_PATH )
42
34
endif ()
43
35
Original file line number Diff line number Diff line change @@ -85,12 +85,7 @@ if(DPNP_GENERATE_COVERAGE)
85
85
target_link_options (${_trgt} PRIVATE -fprofile-instr-generate -fcoverage-mapping )
86
86
endif ()
87
87
88
- if (MKL_VERSION_2024 )
89
- target_link_libraries (${_trgt} PUBLIC MKL::MKL_SYCL )
90
- else ()
91
- target_link_libraries (${_trgt} PUBLIC MKL::MKL_DPCPP )
92
- endif ()
93
-
88
+ target_link_libraries (${_trgt} PUBLIC MKL::MKL_SYCL )
94
89
target_link_libraries (${_trgt} PUBLIC oneDPL )
95
90
96
91
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 @@ -108,11 +108,7 @@ if (DPNP_GENERATE_COVERAGE)
108
108
target_link_options (${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping )
109
109
endif ()
110
110
111
- if (MKL_VERSION_2024 )
112
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::VM )
113
- else ()
114
- target_link_libraries (${python_module_name} PUBLIC MKL::MKL_DPCPP )
115
- endif ()
111
+ target_link_libraries (${python_module_name} PUBLIC MKL::MKL_SYCL::VM )
116
112
117
113
install (TARGETS ${python_module_name}
118
114
DESTINATION "dpnp/backend/extensions/vm"
You can’t perform that action at this time.
0 commit comments