Skip to content
Snippets Groups Projects
Commit eb89ea1d authored by Alexander Peyser's avatar Alexander Peyser Committed by Ben Cumming
Browse files

Add SYSTEM_BGQ in cmake to handle broken mpi header (#131)

Compiles on bgq

define MPICH2_CONST const for BGQ

Add SYSTEM_BGQ to cmake to handle mpi headers
parent 1963634e
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,9 @@ if(WITH_CUDA) ...@@ -88,6 +88,9 @@ if(WITH_CUDA)
list(APPEND EXTERNAL_LIBRARIES ${CUDA_LIBRARIES}) list(APPEND EXTERNAL_LIBRARIES ${CUDA_LIBRARIES})
endif() endif()
# BGQ systems
set(SYSTEM_BGQ OFF CACHE BOOL "Flags for BlueGene Q")
# MPI support # MPI support
set(WITH_MPI OFF CACHE BOOL "use MPI for distrubuted parallelism") set(WITH_MPI OFF CACHE BOOL "use MPI for distrubuted parallelism")
if(WITH_MPI) if(WITH_MPI)
...@@ -97,6 +100,10 @@ if(WITH_MPI) ...@@ -97,6 +100,10 @@ if(WITH_MPI)
# unfortunate workaround for C++ detection in system mpi.h # unfortunate workaround for C++ detection in system mpi.h
add_definitions(-DMPICH_SKIP_MPICXX=1 -DOMPI_SKIP_MPICXX=1) add_definitions(-DMPICH_SKIP_MPICXX=1 -DOMPI_SKIP_MPICXX=1)
set_property(DIRECTORY APPEND_STRING PROPERTY COMPILE_OPTIONS "${MPI_C_COMPILE_FLAGS}") set_property(DIRECTORY APPEND_STRING PROPERTY COMPILE_OPTIONS "${MPI_C_COMPILE_FLAGS}")
if(SYSTEM_BGQ)
add_definitions(-DMPICH2_CONST=const)
endif()
endif() endif()
# Internal profiler support # Internal profiler support
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment