Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 26ea29d3 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

set BLAS_VENDOR_FOUND also whit pkg-config

parent d3ec3296
No related branches found
No related tags found
No related merge requests found
......@@ -366,16 +366,43 @@ if( PKG_CONFIG_EXECUTABLE AND NOT BLAS_GIVEN_BY_USER )
# try different blas
if (BLA_VENDOR STREQUAL "Intel10_64lp")
pkg_search_module(BLAS mkl-${MKL_STR_BLA_STATIC}-lp64-iomp)
if (BLAS_FOUND)
set (BLAS_VENDOR_FOUND "Intel MKL")
endif()
elseif(BLA_VENDOR STREQUAL "Intel10_64lp_seq")
pkg_search_module(BLAS mkl-${MKL_STR_BLA_STATIC}-lp64-seq)
if (BLAS_FOUND)
set (BLAS_VENDOR_FOUND "Intel MKL")
endif()
elseif(BLA_VENDOR STREQUAL "Open")
pkg_search_module(BLAS openblas)
if (BLAS_FOUND)
set (BLAS_VENDOR_FOUND "Openblas")
endif()
elseif(BLA_VENDOR STREQUAL "Generic")
pkg_search_module(BLAS blas)
if (BLAS_FOUND)
set (BLAS_VENDOR_FOUND "Netlib or other Generic libblas")
endif()
else()
pkg_search_module(BLAS blas)
pkg_search_module(BLAS openblas)
pkg_search_module(BLAS mkl-${MKL_STR_BLA_STATIC}-lp64-seq)
if (NOT BLAS_FOUND)
pkg_search_module(BLAS mkl-${MKL_STR_BLA_STATIC}-lp64-seq)
if (BLAS_FOUND)
set (BLAS_VENDOR_FOUND "Intel MKL")
endif()
endif()
if (NOT BLAS_FOUND)
pkg_search_module(BLAS openblas)
if (BLAS_FOUND)
set (BLAS_VENDOR_FOUND "Openblas")
endif()
endif()
if (NOT BLAS_FOUND)
pkg_search_module(BLAS blas)
if (BLAS_FOUND)
set (BLAS_VENDOR_FOUND "Netlib or other Generic libblas")
endif()
endif()
endif()
if (NOT BLAS_FIND_QUIETLY)
......
......@@ -396,16 +396,43 @@ if(BLAS_FOUND)
# try different blas
if (BLA_VENDOR STREQUAL "Intel10_64lp")
pkg_search_module(LAPACK mkl-${MKL_STR_BLA_STATIC}-lp64-iomp)
if (LAPACK_FOUND)
set (LAPACK_VENDOR_FOUND "Intel MKL")
endif()
elseif(BLA_VENDOR STREQUAL "Intel10_64lp_seq")
pkg_search_module(LAPACK mkl-${MKL_STR_BLA_STATIC}-lp64-seq)
if (LAPACK_FOUND)
set (LAPACK_VENDOR_FOUND "Intel MKL")
endif()
elseif(BLA_VENDOR STREQUAL "Open")
pkg_search_module(LAPACK openblas)
if (LAPACK_FOUND)
set (LAPACK_VENDOR_FOUND "Openblas")
endif()
elseif(BLA_VENDOR STREQUAL "Generic")
pkg_search_module(LAPACK lapack)
if (LAPACK_FOUND)
set (LAPACK_VENDOR_FOUND "Netlib or other Generic liblapack")
endif()
else()
pkg_search_module(LAPACK lapack)
pkg_search_module(LAPACK openblas)
pkg_search_module(LAPACK mkl-${MKL_STR_BLA_STATIC}-lp64-seq)
if (NOT LAPACK_FOUND)
pkg_search_module(LAPACK mkl-${MKL_STR_BLA_STATIC}-lp64-seq)
if (LAPACK_FOUND)
set (LAPACK_VENDOR_FOUND "Intel MKL")
endif()
endif()
if (NOT LAPACK_FOUND)
pkg_search_module(LAPACK openblas)
if (LAPACK_FOUND)
set (LAPACK_VENDOR_FOUND "Openblas")
endif()
endif()
if (NOT LAPACK_FOUND)
pkg_search_module(LAPACK lapack)
if (LAPACK_FOUND)
set (LAPACK_VENDOR_FOUND "Netlib or other Generic liblapack")
endif()
endif()
endif()
if (NOT LAPACK_FIND_QUIETLY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment