FindBLAS doesn't find Cray libSci
On a Cray XC30, the FindBLAS package doesn't know about Cray's libsci, which lives in a library like:
/opt/cray/libsci/16.11.1/CRAY/8.3/x86_64/lib/libsci_cray.so
(depending on which PrgEnv and libsci versions etc)
Adding the following to FindBLAS.cmake (and setting -DBLA_VENDOR=Cray
on the command line) works for my simple test:
# Cray libsci?
if (BLA_VENDOR STREQUAL "Cray" OR BLA_VENDOR STREQUAL "All")
if(NOT BLAS_LIBRARIES)
check_fortran_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
"sci_cray"
""
)
endif()
endif ()
Note: I tested this with CMake versions 3.5.2 & 3.10.2 (the default and latest on our machine)