summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorAlexey Ozeritsky <aozeritsky@gmail.com>2010-12-16 11:40:58 (GMT)
committerAlexey Ozeritsky <aozeritsky@gmail.com>2010-12-16 11:40:58 (GMT)
commitcabafa37fbd4a8b02e90667476d7568caddff178 (patch)
treef60c31491dc78a497956646d5dbc3b63d879d56e /Modules/FindBLAS.cmake
parent4f007638141bafc8747e809916e10df9f2ee651b (diff)
downloadCMake-cabafa37fbd4a8b02e90667476d7568caddff178.zip
CMake-cabafa37fbd4a8b02e90667476d7568caddff178.tar.gz
CMake-cabafa37fbd4a8b02e90667476d7568caddff178.tar.bz2
ACML find fixes (issue 0011219)
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake13
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 17b070b..b605164 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -237,13 +237,24 @@ endif (BLA_VENDOR STREQUAL "IBMESSL" OR BLA_VENDOR STREQUAL "All")
#BLAS in acml library?
if (BLA_VENDOR STREQUAL "ACML" OR BLA_VENDOR STREQUAL "All")
+ # Either acml or acml_mp should be in LD_LIBRARY_PATH but not both
if(NOT BLAS_LIBRARIES)
check_fortran_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
- "acml"
+ "acml;acml_mv"
+ ""
+ )
+ endif(NOT BLAS_LIBRARIES)
+ if(NOT BLAS_LIBRARIES)
+ check_fortran_libraries(
+ BLAS_LIBRARIES
+ BLAS
+ sgemm
+ ""
+ "acml_mp;acml_mv"
""
)
endif(NOT BLAS_LIBRARIES)