Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
code
pugs
Commits
fc7ce71d
Commit
fc7ce71d
authored
6 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Add initial ParMETIS CMake configuration
Would probably require efforts for user defined location of libraries
parent
23744d1d
No related branches found
No related tags found
1 merge request
!11
Feature/mpi
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+29
-0
29 additions, 0 deletions
CMakeLists.txt
with
29 additions
and
0 deletions
CMakeLists.txt
+
29
−
0
View file @
fc7ce71d
...
...
@@ -220,6 +220,34 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
endif
()
#------------------------------------------------------
# Search for ParMETIS
if
(
${
MPI_FOUND
}
)
find_path
(
PARMETIS_INCLUDE_DIR parmetis.h
PATH_SUFFIX include parmetis
NO_DEFAULT_PATH
DOC
"Custom include directory for parmetis.h"
)
find_path
(
PARMETIS_INCLUDE_DIR parmetis.h
PATH_SUFFIX include parmetis
)
if
(
EXISTS
"
${
PARMETIS_INCLUDE_DIR
}
/parmetis.h"
)
message
(
"-- Found parmetis.h in
${
PARMETIS_INCLUDE_DIR
}
"
)
find_library
(
LIB_PARMETIS parmetis
)
if
(
"
${
LIB_PARMETIS
}
"
STREQUAL
"LIB_PARMETIS-NOTFOUND"
)
message
(
FATAL_ERROR
"Could not find parmetis library"
)
endif
()
find_library
(
LIB_METIS metis
)
if
(
"
${
LIB_PARMETIS
}
"
STREQUAL
"LIB_METIS-NOTFOUND"
)
message
(
FATAL_ERROR
"Could not find metis library"
)
endif
()
set
(
PARMETIS_LIBRARIES
${
LIB_PARMETIS
}
${
LIB_METIS
}
)
message
(
"-- Found parmetis/metis libraries
${
PARMETIS_LIBRARIES
}
"
)
else
()
message
(
FATAL_ERROR
"Could not find parmetis.h"
)
endif
()
endif
()
# -----------------------------------------------------
link_libraries
(
"-rdynamic"
)
...
...
@@ -234,6 +262,7 @@ add_executable(
target_link_libraries
(
pastis
kokkos
${
PARMETIS_LIBRARIES
}
${
MPI_CXX_LINK_FLAGS
}
${
MPI_CXX_LIBRARIES
}
PastisUtils
PastisMesh
)
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