Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pghysels/STRUMPACK
Browse files Browse the repository at this point in the history
  • Loading branch information
pghysels committed Oct 23, 2023
2 parents e9ed559 + fcd044b commit abf362c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 984 deletions.
13 changes: 7 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,7 @@ endif()
if(STRUMPACK_USE_SYCL)
message(STATUS "SYCL/DPC++ enabled, looking for MKL")
list(APPEND CMAKE_PREFIX_PATH $ENV{MKLROOT} $ENV{TBBROOT})
# set(MKL_LINK dynamic)
# set(MKL_LINK static)
# set(MKL_ARCH intel64)
# set(MKL_INTERFACE lp64) ## this doesn't work, only ilp64 works
# set(STRUMPACK_USE_BLAS64 ON)
# find_package(MKL REQUIRED)
find_package(MKL REQUIRED)
endif()


Expand Down Expand Up @@ -652,6 +647,12 @@ endif()

if(MKL_FOUND)
# target_link_libraries(strumpack PUBLIC MKL::MKL MKL::MKL_SYCL)
target_include_directories(strumpack INTERFACE "${MKL_ROOT}/include")
target_link_libraries(strumpack INTERFACE "${MKL_ROOT}/lib/intel64/libmkl_sycl.so")
target_link_libraries(strumpack INTERFACE "${MKL_ROOT}/lib/intel64/libmkl_sequential.so")
target_link_libraries(strumpack INTERFACE "${MKL_ROOT}/lib/intel64/libmkl_core.so")
target_link_libraries(strumpack INTERFACE "${MKL_ROOT}/lib/intel64/libmkl_intel_lp64.so")
target_link_libraries(strumpack INTERFACE "-lsycl -lpthread -lm -ldl")
endif()

# the order is important
Expand Down
Loading

0 comments on commit abf362c

Please sign in to comment.