Skip to content

Commit

Permalink
[sycl] use newer MKL target if available
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Nov 13, 2024
1 parent b2cb97e commit 8b1521f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dpcpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ endif()
target_include_directories(ginkgo_dpcpp
PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/..)
target_link_libraries(ginkgo_dpcpp PUBLIC ginkgo_device)
target_link_libraries(ginkgo_dpcpp PRIVATE MKL::MKL_DPCPP oneDPL)
target_link_libraries(ginkgo_dpcpp PRIVATE oneDPL)
# MKL 2024.0+ provides the MKL::MKL_SYCL target, while older versions provide *_DPCPP
if(TARGET MKL::MKL_SYCL)
target_link_libraries(ginkgo_dpcpp PRIVATE MKL::MKL_SYCL)
elseif ()
target_link_libraries(ginkgo_dpcpp PRIVATE MKL::MKL_DPCPP)
endif ()
if (GINKGO_DPCPP_SINGLE_MODE)
target_compile_definitions(ginkgo_dpcpp PRIVATE GINKGO_DPCPP_SINGLE_MODE=1)
endif()
Expand Down

0 comments on commit 8b1521f

Please sign in to comment.