summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorIgor S. Gerasimov <i.s.ger@ya.ru>2021-08-07 09:01:21 (GMT)
committerIgor S. Gerasimov <i.s.ger@ya.ru>2021-10-05 14:41:36 (GMT)
commitb8a3cea51fc2853200801d599d873472b80b6619 (patch)
treea3477c940213d1124c513fa85e46e575d7391e85 /Modules
parentd2f5c7856f60c3487581ba3b279a4e252d855fa6 (diff)
downloadCMake-b8a3cea51fc2853200801d599d873472b80b6619.zip
CMake-b8a3cea51fc2853200801d599d873472b80b6619.tar.gz
CMake-b8a3cea51fc2853200801d599d873472b80b6619.tar.bz2
FindBLAS: Stop processing if BLAS library does not have 64-bit integer API
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBLAS.cmake112
1 files changed, 68 insertions, 44 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 043d9c1..f16d176 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -873,33 +873,45 @@ endif()
# BLAS in Alpha CXML library?
if(BLA_VENDOR STREQUAL "CXML" OR BLA_VENDOR STREQUAL "All")
- if(NOT BLAS_LIBRARIES)
- check_blas_libraries(
- BLAS_LIBRARIES
- BLAS
- sgemm
- ""
- "cxml"
- ""
- ""
- ""
- )
+ if(_blas_sizeof_integer EQUAL 8)
+ if(BLA_VENDOR STREQUAL "CXML")
+ message(FATAL_ERROR "CXML does not support Int64 type")
+ endif()
+ else()
+ if(NOT BLAS_LIBRARIES)
+ check_blas_libraries(
+ BLAS_LIBRARIES
+ BLAS
+ sgemm
+ ""
+ "cxml"
+ ""
+ ""
+ ""
+ )
+ endif()
endif()
endif()
# BLAS in Alpha DXML library? (now called CXML, see above)
if(BLA_VENDOR STREQUAL "DXML" OR BLA_VENDOR STREQUAL "All")
- if(NOT BLAS_LIBRARIES)
- check_blas_libraries(
- BLAS_LIBRARIES
- BLAS
- sgemm
- ""
- "dxml"
- ""
- ""
- ""
- )
+ if(_blas_sizeof_integer EQUAL 8)
+ if(BLA_VENDOR STREQUAL "DXML")
+ message(FATAL_ERROR "DXML does not support Int64 type")
+ endif()
+ else()
+ if(NOT BLAS_LIBRARIES)
+ check_blas_libraries(
+ BLAS_LIBRARIES
+ BLAS
+ sgemm
+ ""
+ "dxml"
+ ""
+ ""
+ ""
+ )
+ endif()
endif()
endif()
@@ -1140,33 +1152,45 @@ endif() # ACML
# Apple BLAS library?
if(BLA_VENDOR STREQUAL "Apple" OR BLA_VENDOR STREQUAL "All")
- if(NOT BLAS_LIBRARIES)
- check_blas_libraries(
- BLAS_LIBRARIES
- BLAS
- dgemm
- ""
- "Accelerate"
- ""
- ""
- ""
- )
+ if(_blas_sizeof_integer EQUAL 8)
+ if(BLA_VENDOR STREQUAL "Apple")
+ message(FATAL_ERROR "Accelerate Framework does not support Int64 type")
+ endif()
+ else()
+ if(NOT BLAS_LIBRARIES)
+ check_blas_libraries(
+ BLAS_LIBRARIES
+ BLAS
+ dgemm
+ ""
+ "Accelerate"
+ ""
+ ""
+ ""
+ )
+ endif()
endif()
endif()
# Apple NAS (vecLib) library?
if(BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All")
- if(NOT BLAS_LIBRARIES)
- check_blas_libraries(
- BLAS_LIBRARIES
- BLAS
- dgemm
- ""
- "vecLib"
- ""
- ""
- ""
- )
+ if(_blas_sizeof_integer EQUAL 8)
+ if(BLA_VENDOR STREQUAL "NAS")
+ message(FATAL_ERROR "Accelerate Framework does not support Int64 type")
+ endif()
+ else()
+ if(NOT BLAS_LIBRARIES)
+ check_blas_libraries(
+ BLAS_LIBRARIES
+ BLAS
+ dgemm
+ ""
+ "vecLib"
+ ""
+ ""
+ ""
+ )
+ endif()
endif()
endif()