Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
82d02f51
Commit
82d02f51
authored
8 years ago
by
Alexander Peyser
Browse files
Options
Downloads
Patches
Plain Diff
Fix MPI cmake for BGQ
Remove redundant MPI set
parent
71aa4b18
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+11
-8
11 additions, 8 deletions
CMakeLists.txt
with
11 additions
and
8 deletions
CMakeLists.txt
+
11
−
8
View file @
82d02f51
...
...
@@ -127,20 +127,23 @@ endif()
#----------------------------------------------------------
# MPI support
#----------------------------------------------------------
option
(
NMC_WITH_MPI
"use MPI for distrubuted parallelism"
OFF
)
option
(
NMC_WITH_MPI
"use MPI for distributed parallelism"
OFF
)
if
(
NMC_WITH_MPI
)
find_package
(
MPI REQUIRED
)
# BGQ specific flags
if
(
${
NMC_SYSTEM_TYPE
}
MATCHES
"BGQ"
)
# On BGQ, set CXX to the mpi wrapper, and pass it a static
add_definitions
(
-DMPICH2_CONST=const
)
set
(
MPI_FOUND TRUE
)
endif
()
if
(
NOT MPI_FOUND
)
find_package
(
MPI REQUIRED
)
endif
()
include_directories
(
SYSTEM
${
MPI_C_INCLUDE_PATH
}
)
add_definitions
(
-DNMC_HAVE_MPI
)
# unfortunate workaround for C++ detection in system mpi.h
add_definitions
(
-DMPICH_SKIP_MPICXX=1 -DOMPI_SKIP_MPICXX=1
)
set_property
(
DIRECTORY APPEND_STRING PROPERTY COMPILE_OPTIONS
"
${
MPI_C_COMPILE_FLAGS
}
"
)
# BGQ specific flags
if
(
${
NMC_SYSTEM_TYPE
}
MATCHES
"BGQ"
)
add_definitions
(
-DMPICH2_CONST=const
)
endif
()
endif
()
#----------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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