Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Core Modules
dune-common
Commits
f1cd4a76
Commit
f1cd4a76
authored
1 year ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Remove dependency on other MR
parent
028d595a
No related branches found
No related tags found
1 merge request
!1315
Provide dedicated include for metis and parmetis headers
Pipeline
#68770
passed
1 year ago
Stage: .pre
Stage: test
Stage: code_quality
Stage: downstream
Pipeline: Dune Nightly Test
#68777
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/modules/AddMPIFlags.cmake
+3
-7
3 additions, 7 deletions
cmake/modules/AddMPIFlags.cmake
config.h.cmake
+9
-0
9 additions, 0 deletions
config.h.cmake
with
12 additions
and
7 deletions
cmake/modules/AddMPIFlags.cmake
+
3
−
7
View file @
f1cd4a76
...
...
@@ -24,11 +24,8 @@ set_package_properties("MPI" PROPERTIES
if
(
MPI_C_FOUND
)
set
(
HAVE_MPI
${
MPI_C_FOUND
}
)
dune_register_package_flags
(
COMPILE_DEFINITIONS
"HAVE_MPI=1;MPICH_SKIP_MPICXX=1;OMPI_SKIP_MPICXX=1;MPI_NO_CPPBIND=1;MPIPP_H;_MPICC_H"
LIBRARIES
MPI::MPI_C
)
dune_register_package_flags
(
COMPILE_DEFINITIONS
"HAVE_MPI=1"
LIBRARIES MPI::MPI_C
)
endif
()
# adds MPI flags to the targets
...
...
@@ -39,8 +36,7 @@ function(add_dune_mpi_flags)
if
(
MPI_C_FOUND
)
foreach
(
target
${
targets
}
)
target_link_libraries
(
${
target
}
PUBLIC MPI::MPI_C
)
target_compile_definitions
(
${
target
}
PUBLIC
HAVE_MPI=1 MPICH_SKIP_MPICXX=1 OMPI_SKIP_MPICXX=1 MPI_NO_CPPBIND=1 MPIPP_H _MPICC_H
)
target_compile_definitions
(
${
target
}
PUBLIC
"HAVE_MPI=1"
)
endforeach
(
target
)
endif
()
endfunction
(
add_dune_mpi_flags
)
This diff is collapsed.
Click to expand it.
config.h.cmake
+
9
−
0
View file @
f1cd4a76
...
...
@@ -36,6 +36,15 @@
/* Define if you have LAPACK library. */
#cmakedefine HAVE_LAPACK 1
/* Deactivate cxx bindings for MPI */
#if defined(HAVE_MPI) && HAVE_MPI
#define MPICH_SKIP_MPICXX 1
#define OMPI_SKIP_MPICXX 1
#define MPI_NO_CPPBIND 1
#define MPIPP_H
#define _MPICC_H
#endif
/* Define to 1 if you have the Threading Building
Blocks
(
TBB
)
library */
#cmakedefine HAVE_TBB 1
...
...
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