mirror of
https://github.com/reactos/CMake.git
synced 2025-01-21 02:45:05 +00:00
Find{BLAS,LAPACK}: Add support for FLAME blis and libflame
FLAME (github.com/flame) provides a variety of numerical libraries. `blis` and `libflame` can be setup to expose BLAS/LAPACK interfaces. Fixes: #17470
This commit is contained in:
parent
e312885829
commit
f5bc78263e
5
Help/release/dev/blas-lapack-flame.rst
Normal file
5
Help/release/dev/blas-lapack-flame.rst
Normal file
@ -0,0 +1,5 @@
|
||||
blas-lapack-flame
|
||||
-----------------
|
||||
|
||||
* The :module:`FindBLAS` and :module:`FindLAPACK` modules learned to support
|
||||
`FLAME <https://github.com/flame>`__ ``blis`` and ``libflame``.
|
@ -36,6 +36,7 @@
|
||||
#
|
||||
# * Goto
|
||||
# * OpenBLAS
|
||||
# * FLAME
|
||||
# * ATLAS PhiPACK
|
||||
# * CXML
|
||||
# * DXML
|
||||
@ -190,6 +191,20 @@ if (BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
if (BLA_VENDOR STREQUAL "FLAME" OR BLA_VENDOR STREQUAL "All")
|
||||
if(NOT BLAS_LIBRARIES)
|
||||
# FLAME's blis library (https://github.com/flame/blis)
|
||||
check_fortran_libraries(
|
||||
BLAS_LIBRARIES
|
||||
BLAS
|
||||
sgemm
|
||||
""
|
||||
"blis"
|
||||
""
|
||||
)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
if (BLA_VENDOR STREQUAL "ATLAS" OR BLA_VENDOR STREQUAL "All")
|
||||
if(NOT BLAS_LIBRARIES)
|
||||
# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
|
||||
|
@ -37,6 +37,7 @@
|
||||
#
|
||||
# * Intel(mkl)
|
||||
# * OpenBLAS
|
||||
# * FLAME
|
||||
# * ACML
|
||||
# * Apple
|
||||
# * NAS
|
||||
@ -201,6 +202,20 @@ if (BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
if (BLA_VENDOR STREQUAL "FLAME" OR BLA_VENDOR STREQUAL "All")
|
||||
if(NOT LAPACK_LIBRARIES)
|
||||
check_lapack_libraries(
|
||||
LAPACK_LIBRARIES
|
||||
LAPACK
|
||||
cheev
|
||||
""
|
||||
"flame"
|
||||
"${BLAS_LIBRARIES}"
|
||||
""
|
||||
)
|
||||
endif()
|
||||
endif ()
|
||||
|
||||
#acml lapack
|
||||
if (BLA_VENDOR MATCHES "ACML" OR BLA_VENDOR STREQUAL "All")
|
||||
if (BLAS_LIBRARIES MATCHES ".+acml.+")
|
||||
|
Loading…
x
Reference in New Issue
Block a user