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
2c74b63d
Commit
2c74b63d
authored
7 years ago
by
PRUVOST Florent
Browse files
Options
Downloads
Patches
Plain Diff
add BLAS_SEQ/PAR_COMPILER_FLAGS and BLAS_SEQ/PAR_LINKER_FLAGS variables handling
parent
6404d32f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/find/FindBLASEXT.cmake
+33
-9
33 additions, 9 deletions
modules/find/FindBLASEXT.cmake
with
33 additions
and
9 deletions
modules/find/FindBLASEXT.cmake
+
33
−
9
View file @
2c74b63d
...
...
@@ -18,14 +18,20 @@
#
# The following variables have been added to manage links with sequential or multithreaded
# versions:
# BLAS_INCLUDE_DIRS - BLAS include directories
# BLAS_LIBRARY_DIRS - Link directories for BLAS libraries
# BLAS_SEQ_LIBRARIES - BLAS component libraries to be linked (sequential)
# BLAS_PAR_LIBRARIES - BLAS component libraries to be linked (multithreaded)
# BLASEXT_FOUND - if a BLAS has been found
# BLASEXT_LIBRARIES - Idem BLAS_LIBRARIES
# BLASEXT_INCLUDE_DIRS - Idem BLAS_INCLUDE_DIRS
# BLASEXT_LIBRARY_DIRS - Idem BLAS_LIBRARY_DIRS
# BLAS_INCLUDE_DIRS - BLAS include directories
# BLAS_LIBRARY_DIRS - Link directories for BLAS libraries
# BLAS_SEQ_LIBRARIES - BLAS component libraries to be linked (sequential)
# BLAS_SEQ_COMPILER_FLAGS - uncached list of required compiler flags (including -I for mkl headers).
# BLAS_SEQ_LINKER_FLAGS - uncached list of required linker flags (excluding -l
# and -L)
# BLAS_PAR_LIBRARIES - BLAS component libraries to be linked (multithreaded)
# BLAS_PAR_COMPILER_FLAGS - uncached list of required compiler flags (including -I for mkl headers)
# BLAS_PAR_LINKER_FLAGS - uncached list of required linker flags (excluding -l
# and -L)
# BLASEXT_FOUND - if a BLAS has been found
# BLASEXT_LIBRARIES - Idem BLAS_LIBRARIES
# BLASEXT_INCLUDE_DIRS - Idem BLAS_INCLUDE_DIRS
# BLASEXT_LIBRARY_DIRS - Idem BLAS_LIBRARY_DIRS
#=============================================================================
# Copyright 2012-2013 Inria
...
...
@@ -200,6 +206,12 @@ if(BLA_VENDOR MATCHES "Intel*")
find_package_blas
(
0
)
if
(
BLAS_FOUND
)
set
(
BLAS_SEQ_LIBRARIES
"
${
BLAS_LIBRARIES
}
"
)
if
(
BLAS_COMPILER_FLAGS
)
set
(
BLAS_SEQ_COMPILER_FLAGS
"
${
BLAS_COMPILER_FLAGS
}
"
)
endif
()
if
(
BLAS_LINKER_FLAGS
)
set
(
BLAS_SEQ_LINKER_FLAGS
"
${
BLAS_LINKER_FLAGS
}
"
)
endif
()
else
()
set
(
BLAS_SEQ_LIBRARIES
"
${
BLAS_SEQ_LIBRARIES-NOTFOUND
}
"
)
endif
()
...
...
@@ -212,6 +224,12 @@ if(BLA_VENDOR MATCHES "Intel*")
find_package_blas
(
0
)
if
(
BLAS_FOUND
)
set
(
BLAS_PAR_LIBRARIES
"
${
BLAS_LIBRARIES
}
"
)
if
(
BLAS_COMPILER_FLAGS
)
set
(
BLAS_PAR_COMPILER_FLAGS
"
${
BLAS_COMPILER_FLAGS
}
"
)
endif
()
if
(
BLAS_LINKER_FLAGS
)
set
(
BLAS_PAR_LINKER_FLAGS
"
${
BLAS_LINKER_FLAGS
}
"
)
endif
()
else
()
set
(
BLAS_PAR_LIBRARIES
"
${
BLAS_PAR_LIBRARIES-NOTFOUND
}
"
)
endif
()
...
...
@@ -280,10 +298,16 @@ else()
endif
()
# Reset pure BLAS cmake variables to the sequential case (arbitrary default)
if
(
BLAS_SEQ_LIBRARIES
)
set
(
BLAS_LIBRARIES
"
${
BLAS_SEQ_LIBRARIES
}
"
)
endif
()
if
(
BLAS_SEQ_COMPILER_FLAGS
)
set
(
BLAS_COMPILER_FLAGS
"
${
BLAS_SEQ_COMPILER_FLAGS
}
"
)
endif
()
if
(
BLAS_SEQ_LINKER_FLAGS
)
set
(
BLAS_LINKER_FLAGS
"
${
BLAS_SEQ_LINKER_FLAGS
}
"
)
endif
()
# extract libs paths
# remark: because it is not given by find_package(BLAS)
...
...
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