FindBLAS/LAPACK fixes
fixed: CMAKE_FIND_LIBRRAY_SUFFIXES misprint added: ATLAS vendor to FindLAPACK module
This commit is contained in:
parent
145de0a058
commit
0cc8f05ce5
|
@ -91,17 +91,17 @@ foreach(_library ${_list})
|
||||||
if(_libraries_work)
|
if(_libraries_work)
|
||||||
if (BLA_STATIC)
|
if (BLA_STATIC)
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib ${CMAKE_FIND_LIBRRAY_SUFFIXES})
|
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
endif ( WIN32 )
|
endif ( WIN32 )
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib ${CMAKE_FIND_LIBRRAY_SUFFIXES})
|
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
else (APPLE)
|
else (APPLE)
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRRAY_SUFFIXES})
|
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
else (BLA_STATIC)
|
else (BLA_STATIC)
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
# for ubuntu's libblas3gf and liblapack3gf packages
|
# for ubuntu's libblas3gf and liblapack3gf packages
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRRAY_SUFFIXES} .so.3gf)
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES} .so.3gf)
|
||||||
endif ()
|
endif ()
|
||||||
endif (BLA_STATIC)
|
endif (BLA_STATIC)
|
||||||
find_library(${_prefix}_${_library}_LIBRARY
|
find_library(${_prefix}_${_library}_LIBRARY
|
||||||
|
@ -356,7 +356,7 @@ if (BLA_VENDOR MATCHES "ACML.*" OR BLA_VENDOR STREQUAL "All")
|
||||||
BLAS_LIBRARIES
|
BLAS_LIBRARIES
|
||||||
BLAS
|
BLAS
|
||||||
sgemm
|
sgemm
|
||||||
"" "acml_mp;acml_mv;CALBLAS" "" ${BLAS_ACML_GPU_LIB_DIRS}
|
"" "acml;acml_mv;CALBLAS" "" ${BLAS_ACML_GPU_LIB_DIRS}
|
||||||
)
|
)
|
||||||
if( BLAS_LIBRARIES )
|
if( BLAS_LIBRARIES )
|
||||||
break()
|
break()
|
||||||
|
@ -368,7 +368,7 @@ if (BLA_VENDOR MATCHES "ACML.*" OR BLA_VENDOR STREQUAL "All")
|
||||||
BLAS_LIBRARIES
|
BLAS_LIBRARIES
|
||||||
BLAS
|
BLAS
|
||||||
sgemm
|
sgemm
|
||||||
"" "acml_mp;acml_mv" "" ${BLAS_ACML_LIB_DIRS}
|
"" "acml;acml_mv" "" ${BLAS_ACML_LIB_DIRS}
|
||||||
)
|
)
|
||||||
if( BLAS_LIBRARIES )
|
if( BLAS_LIBRARIES )
|
||||||
break()
|
break()
|
||||||
|
|
|
@ -203,7 +203,9 @@ if (BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All")
|
||||||
endif ( NOT LAPACK_LIBRARIES )
|
endif ( NOT LAPACK_LIBRARIES )
|
||||||
endif (BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All")
|
endif (BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All")
|
||||||
# Generic LAPACK library?
|
# Generic LAPACK library?
|
||||||
if (BLA_VENDOR STREQUAL "Generic" OR BLA_VENDOR STREQUAL "All")
|
if (BLA_VENDOR STREQUAL "Generic" OR
|
||||||
|
BLA_VENDOR STREQUAL "ATLAS" OR
|
||||||
|
BLA_VENDOR STREQUAL "All")
|
||||||
if ( NOT LAPACK_LIBRARIES )
|
if ( NOT LAPACK_LIBRARIES )
|
||||||
check_lapack_libraries(
|
check_lapack_libraries(
|
||||||
LAPACK_LIBRARIES
|
LAPACK_LIBRARIES
|
||||||
|
@ -215,7 +217,7 @@ if (BLA_VENDOR STREQUAL "Generic" OR BLA_VENDOR STREQUAL "All")
|
||||||
""
|
""
|
||||||
)
|
)
|
||||||
endif ( NOT LAPACK_LIBRARIES )
|
endif ( NOT LAPACK_LIBRARIES )
|
||||||
endif (BLA_VENDOR STREQUAL "Generic" OR BLA_VENDOR STREQUAL "All")
|
endif ()
|
||||||
#intel lapack
|
#intel lapack
|
||||||
if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
|
if (BLA_VENDOR MATCHES "Intel*" OR BLA_VENDOR STREQUAL "All")
|
||||||
if (_LANGUAGES_ MATCHES C OR _LANGUAGES_ MATCHES CXX)
|
if (_LANGUAGES_ MATCHES C OR _LANGUAGES_ MATCHES CXX)
|
||||||
|
|
Loading…
Reference in New Issue