Skip to content

Commit

Permalink
Refactor CMakeLists.txt to use MKL as a single dynamic library
Browse files Browse the repository at this point in the history
  • Loading branch information
fbriol committed Jun 30, 2024
1 parent f072224 commit 195e2a5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,13 @@ find_package(Boost 1.79 REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

# Blas
if(DEFINED ENV{MKLROOT})
# First try to use MKL as a single dynamic library (conda-forge)
set(BLA_VENDOR Intel10_64_dyn)
# First try to use MKL as a single dynamic library
set(BLA_VENDOR Intel10_64_dyn)
find_package(BLAS)
if(NOT BLAS_FOUND)
# Otherwise try to use MKL lp64 model with sequential code
set(BLA_VENDOR Intel10_64lp_seq)
find_package(BLAS)
if(NOT BLAS_FOUND)
# Otherwise try to use MKL lp64 model with sequential code
set(BLA_VENDOR Intel10_64lp_seq)
find_package(BLAS)
endif()
endif()

if(BLAS_FOUND)
Expand Down

0 comments on commit 195e2a5

Please sign in to comment.