mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
FindBLAS: Select Intel MKL Fortran ABI and threading runtime independently
This commit is contained in:
@@ -501,13 +501,17 @@ if(BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
|
||||
set(BLAS_mkl_START_GROUP "")
|
||||
set(BLAS_mkl_END_GROUP "")
|
||||
endif()
|
||||
# Switch to GNU Fortran support layer if needed (but not on Apple, where MKL does not provide it)
|
||||
# Switch to GNU Fortran ABI regarding how functions return complex numbers and how characters are passed (but not on Apple, where MKL does not provide it).
|
||||
if(CMAKE_Fortran_COMPILER_LOADED AND (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" OR CMAKE_Fortran_COMPILER_ID STREQUAL "LCC") AND NOT APPLE)
|
||||
set(BLAS_mkl_INTFACE "gf")
|
||||
else()
|
||||
set(BLAS_mkl_INTFACE "intel")
|
||||
endif()
|
||||
# Switch to GNU libgomp ABI regarding the OpenMP runtime (but not on Apple, where MKL does not provide it).
|
||||
if(CMAKE_Fortran_COMPILER_LOADED AND (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" OR CMAKE_Fortran_COMPILER_ID STREQUAL "LCC") AND NOT APPLE)
|
||||
set(BLAS_mkl_THREADING "gnu")
|
||||
set(BLAS_mkl_OMP "gomp")
|
||||
else()
|
||||
set(BLAS_mkl_INTFACE "intel")
|
||||
set(BLAS_mkl_THREADING "intel")
|
||||
set(BLAS_mkl_OMP "iomp5")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user