Commit 106e5afe authored by Tomas Härdin's avatar Tomas Härdin

Use -std=c++03 when building mpi-speed-test

This is needed because OpenMPI on trusty fails with this error:

/usr/lib/openmpi/include/mpi_portable_platform.h:374:34: error: invalid suffix on literal; C++11 requires a space between literal and string macro [-Werror=literal-suffix]
              _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)"."_STRINGIFY(__GNUC_PATCHLEVEL__)
parent 7885fdd9
......@@ -518,6 +518,11 @@ endif ()
add_subdirectory(tools/ssp)
add_executable(mpi-speed-test src/mpi-speed-test.cpp)
if (NOT WIN32)
# OpenMPI on trusty won't compile with -std=c++11 or later
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796985
set_target_properties(mpi-speed-test PROPERTIES COMPILE_FLAGS -std=c++03)
endif ()
install(TARGETS mpi-speed-test DESTINATION bin)
# CPack setup
......
......@@ -2,6 +2,7 @@
#include <memory.h>
#include <string>
#include <sys/time.h>
#include <stdlib.h>
//#define USE_ISEND //using MPI_Send() is actually faster on granular
......
Markdown is supported
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