Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
morse_cmake
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
morse_cmake
Commits
26ea29d3
Commit
26ea29d3
authored
6 years ago
by
PRUVOST Florent
Browse files
Options
Downloads
Patches
Plain Diff
set BLAS_VENDOR_FOUND also whit pkg-config
parent
d3ec3296
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/find/FindBLAS.cmake
+30
-3
30 additions, 3 deletions
modules/find/FindBLAS.cmake
modules/find/FindLAPACK.cmake
+30
-3
30 additions, 3 deletions
modules/find/FindLAPACK.cmake
with
60 additions
and
6 deletions
modules/find/FindBLAS.cmake
+
30
−
3
View file @
26ea29d3
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
modules/find/FindLAPACK.cmake
+
30
−
3
View file @
26ea29d3
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment