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
799474c3
Commit
799474c3
authored
7 years ago
by
MARAIT Gilles
Browse files
Options
Downloads
Patches
Plain Diff
Add component OpenMP for MUMPS to compile with multithreading
parent
adcf989e
No related branches found
Branches containing commit
No related tags found
1 merge request
!7
Add component OpenMP for MUMPS to compile with multithreading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/find/FindMUMPS.cmake
+25
-0
25 additions, 0 deletions
modules/find/FindMUMPS.cmake
with
25 additions
and
0 deletions
modules/find/FindMUMPS.cmake
+
25
−
0
View file @
799474c3
...
...
@@ -30,6 +30,7 @@
# - PTSCOTCH: to activate detection of MUMPS linked with PTSCOTCH
# - METIS: to activate detection of MUMPS linked with METIS
# - PARMETIS: to activate detection of MUMPS linked with PARMETIS
# - OPENMP: to activate detection of MUMPS linked with OPENMP
#
# This module finds headers and mumps library.
# Results are reported in variables:
...
...
@@ -80,6 +81,7 @@ set(MUMPS_LOOK_FOR_SCOTCH OFF)
set
(
MUMPS_LOOK_FOR_PTSCOTCH OFF
)
set
(
MUMPS_LOOK_FOR_METIS OFF
)
set
(
MUMPS_LOOK_FOR_PARMETIS OFF
)
set
(
MUMPS_LOOK_FOR_OPENMP OFF
)
if
(
MUMPS_FIND_COMPONENTS
)
foreach
(
component
${
MUMPS_FIND_COMPONENTS
}
)
...
...
@@ -105,6 +107,9 @@ if( MUMPS_FIND_COMPONENTS )
if
(
${
component
}
STREQUAL
"PARMETIS"
)
set
(
MUMPS_LOOK_FOR_PARMETIS ON
)
endif
()
if
(
${
component
}
STREQUAL
"OPENMP"
)
set
(
MUMPS_LOOK_FOR_OPENMP ON
)
endif
()
endforeach
()
endif
()
...
...
@@ -245,6 +250,19 @@ if (NOT PARMETIS_FOUND AND MUMPS_LOOK_FOR_PARMETIS)
endif
()
endif
()
# MUMPS may depends on OPENMP
#------------------------------
if
(
NOT OPENMP_FOUND AND MUMPS_LOOK_FOR_OPENMP
)
if
(
NOT MUMPS_FIND_QUIETLY
)
message
(
STATUS
"Looking for MUMPS - Try to detect OPENMP"
)
endif
()
if
(
MUMPS_FIND_REQUIRED
)
find_package
(
OpenMP REQUIRED
)
else
()
find_package
(
OpenMP
)
endif
()
endif
()
# Looking for MUMPS
# -----------------
...
...
@@ -561,6 +579,7 @@ if(MUMPS_LIBRARIES)
endif
()
endforeach
()
set
(
REQUIRED_LIBS
"
${
MUMPS_LIBRARIES
}
"
)
# SCALAPACK
if
(
MUMPS_LOOK_FOR_MPI AND SCALAPACK_FOUND
)
if
(
SCALAPACK_INCLUDE_DIRS
)
...
...
@@ -652,6 +671,10 @@ if(MUMPS_LIBRARIES)
endforeach
()
list
(
APPEND REQUIRED_LIBS
"
${
PARMETIS_LIBRARIES
}
"
)
endif
()
# OpenMP
if
(
MUMPS_LOOK_FOR_OPENMP AND OPENMP_FOUND
)
list
(
APPEND REQUIRED_LDFLAGS
"
${
OpenMP_C_FLAGS
}
"
)
endif
()
# Fortran
if
(
CMAKE_C_COMPILER_ID MATCHES
"GNU"
)
find_library
(
...
...
@@ -727,9 +750,11 @@ if(MUMPS_LIBRARIES)
"See the explanation in FindMUMPS.cmake."
)
endif
()
endif
()
set
(
CMAKE_REQUIRED_INCLUDES
)
set
(
CMAKE_REQUIRED_FLAGS
)
set
(
CMAKE_REQUIRED_LIBRARIES
)
endif
(
MUMPS_LIBRARIES
)
if
(
MUMPS_LIBRARIES
)
...
...
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