MPI: suppress mpich2 unused parameter warnings

pull/1/head
Thorsten Liebig 2011-03-08 14:44:19 +01:00
parent f630abf813
commit 0735f97eac
1 changed files with 11 additions and 9 deletions

View File

@ -153,8 +153,15 @@ HEADERS += Common/operator_base.h \
Common/processfieldprobe.h \ Common/processfieldprobe.h \
Common/processfields_sar.h Common/processfields_sar.h
MPI_SUPPORT { QMAKE_CXXFLAGS_RELEASE = -O3 \
DEFINES += MPI_SUPPORT -g \
-march=native
QMAKE_CXXFLAGS_DEBUG = -O0 \
-g \
-march=native
MPI_SUPPORT {
DEFINES += MPI_SUPPORT
INCLUDEPATH += /usr/include/mpi INCLUDEPATH += /usr/include/mpi
LIBS += -lmpi -lmpi++ LIBS += -lmpi -lmpi++
HEADERS += FDTD/operator_mpi.h \ HEADERS += FDTD/operator_mpi.h \
@ -163,14 +170,9 @@ MPI_SUPPORT {
SOURCES += FDTD/operator_mpi.cpp \ SOURCES += FDTD/operator_mpi.cpp \
FDTD/engine_mpi.cpp \ FDTD/engine_mpi.cpp \
FDTD/openems_fdtd_mpi.cpp FDTD/openems_fdtd_mpi.cpp
}
QMAKE_CXXFLAGS_RELEASE = -O3 \ QMAKE_CXXFLAGS_RELEASE += -Wno-unused-parameter #needed because mpich2 produces tons of unused parameter
-g \ }
-march=native
QMAKE_CXXFLAGS_DEBUG = -O0 \
-g \
-march=native
# add git revision # add git revision
QMAKE_CXXFLAGS += -DGIT_VERSION=\\\"`git describe --tags`\\\" QMAKE_CXXFLAGS += -DGIT_VERSION=\\\"`git describe --tags`\\\"