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) are being used without setting macros in
CMakeLists.txt
o The fix adds the lines to define these macros
  • Loading branch information
mewall committed Feb 28, 2024
1 parent 8953ff3 commit 9c99e47
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ if(BLAS_FOUND)
bml_check_C_Fortran_function_exists(daxpy C_DAXPY REQUIRED)
bml_check_C_Fortran_function_exists(caxpy C_CAXPY REQUIRED)
bml_check_C_Fortran_function_exists(zaxpy C_ZAXPY REQUIRED)
bml_check_C_Fortran_function_exists(ssyev C_SSYEV REQUIRED)
bml_check_C_Fortran_function_exists(dsyev C_DSYEV REQUIRED)
bml_check_C_Fortran_function_exists(ssyevd C_SSYEVD REQUIRED)
bml_check_C_Fortran_function_exists(dsyevd C_DSYEVD REQUIRED)
add_definitions(
-DC_SGEMM=${C_SGEMM}
-DC_DGEMM=${C_DGEMM}
Expand All @@ -493,7 +497,11 @@ if(BLAS_FOUND)
-DC_SAXPY=${C_SAXPY}
-DC_DAXPY=${C_DAXPY}
-DC_CAXPY=${C_CAXPY}
-DC_ZAXPY=${C_ZAXPY})
-DC_ZAXPY=${C_ZAXPY}
-DC_SSYEV=${C_SSYEV}
-DC_DSYEV=${C_DSYEV}
-DC_SSYEVD=${C_SSYEVD}
-DC_DSYEVD=${C_DSYEVD})
endif()

#check for functions in Lapack
Expand Down

0 comments on commit 9c99e47

Please sign in to comment.