Skip to content

Commit

Permalink
Add syev finders to CMakeLists.txt
Browse files Browse the repository at this point in the history
o This fixes a build bug seen using MKL for BLAS/LAPACK
o Some syev functions (e.g. C_SSYEV) were being used without setting macros in
CMakeLists.txt
o The fix adds a check for *Intel* BLAS to the LAPACK macro definitions
section
  • Loading branch information
mewall committed Feb 28, 2024
1 parent 8953ff3 commit 29564e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ endif()

#check for functions in Lapack
#(or OpenBLAS since OpenBLAS typically contains Lapack)
if(LAPACK_FOUND OR (BLAS_VENDOR STREQUAL "OpenBLAS"))
if(LAPACK_FOUND OR (BLAS_VENDOR STREQUAL "OpenBLAS") OR (BLAS_VENDOR MATCHES "Intel"))
add_definitions(-DHAVE_LAPACK)

set(CMAKE_REQUIRED_LIBRARIES
Expand Down

0 comments on commit 29564e9

Please sign in to comment.