Fixes and updates to BlueGene/Q support
[alexxy/gromacs.git] / cmake / Platform / BlueGeneQ-static-XL-C.cmake
index a814ac765f2beee6a80861cbeca4819810af0a44..3999635f62a71c2d933209762a6da1e79399a3c7 100644 (file)
@@ -73,17 +73,11 @@ include(BlueGeneQ-static)
 __BlueGeneQ_set_static_flags(XL C)
 __BlueGeneQ_set_static_flags(XL CXX)
 
-# This suppression stops the following information message from
-# almost every source file at -O3:
-#   1500-036: (I) The NOSTRICT option (default at OPT(3)) has the potential to alter the semantics of a program.  Please refer to documentation on the STRICT/NOSTRICT option for more information.
-set(COMPILER_SUPPRESSION "-qsuppress=1500-036")
-
 set(CMAKE_SYSTEM_NAME BlueGeneQ-static CACHE STRING "Cross-compiling for BlueGene/Q" FORCE)
 # xl.ndebug is appropriate for production calculations. For debugging,
-# use xl to add back error checks and assertions
-set(CMAKE_C_COMPILER /bgsys/drivers/ppcfloor/comm/xl.ndebug/bin/mpixlc_r)
-set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG ${COMPILER_SUPPRESSION}" CACHE STRING "Compiler optimization flags")
-set(CMAKE_CXX_COMPILER /bgsys/drivers/ppcfloor/comm/xl.ndebug/bin/mpixlcxx_r)
-set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG ${COMPILER_SUPPRESSION}" CACHE STRING "Compiler optimization flags")
+# use xl to add back error checks and assertions. Using the
+# thread-safe compiler version is required, so use (e.g.)
+# CMAKE_C_COMPILER=/bgsys/drivers/ppcfloor/comm/xl.ndebug/bin/mpixlc_r
+# CMAKE_CXX_COMPILER=/bgsys/drivers/ppcfloor/comm/xl.ndebug/bin/mpixlcxx_r
 
 mark_as_advanced(CMAKE_XL_CreateExportList) # No idea what spams this