Enable MPI_SMP.
[charm.git] / src / arch / mpi-bluegeneq / cc-xlc.sh
index 3011e32c8477f4a42f6a8fb26a241fb9d2585b12..5809d3692483fbf9a0a0af3a5c6e55db095e4557 100644 (file)
@@ -1,5 +1,12 @@
-XLC_TYPICAL_PRE=/opt/ibmcmp/vacpp/bg/9.0/
-XLC_PRE=$XLC_TYPICAL_PRE
+XLC_TYPICAL_PRE=/opt/ibmcmp/
+if test -d /soft/compilers/ibmcmp-may2012
+then
+XLC_TYPICAL_PRE=/soft/compilers/ibmcmp-may2012
+fi
+
+XLC_PRE=$XLC_TYPICAL_PRE/vacpp/bg/12.1
+
+XLF_TYPICAL_PRE=/soft/compilers/ibmcmp-feb2012/xlf/bg/14.1
 
 XLC_TYPICAL_POST=bin/bg
 XLC_POST=$XLC_TYPICAL_POST
 
 XLC_TYPICAL_POST=bin/bg
 XLC_POST=$XLC_TYPICAL_POST
@@ -10,16 +17,16 @@ then
   XLC_PRE=$BGQ_XLC_PRE
 fi
 
   XLC_PRE=$BGQ_XLC_PRE
 fi
 
-XLC_F=$XLC_PRE/xlf/bg/11.1/
-CMK_CC="$XLC_PRE/${XLC_POST}xlc -qcpluscmt -qhalt=e $BGQ_INC -qminimaltoc"
-CMK_CXX="$XLC_PRE/${XLC_POST}xlC -qhalt=e $BGQ_INC -qminimaltoc"
+XLC_F=$XLF_TYPICAL_PRE
+CMK_CC="$XLC_PRE/${XLC_POST}xlc_r -qcpluscmt -qhalt=e $BGQ_INC"
+CMK_CXX="$XLC_PRE/${XLC_POST}xlC_r -qhalt=e $BGQ_INC"
 CMK_LD="$CMK_CC"
 CMK_LDXX="$CMK_CXX"
 CMK_LD="$CMK_CC"
 CMK_LDXX="$CMK_CXX"
-CMK_CF77="$XLC_F/${XLC_POST}xlf "
-CMK_CF90="$XLC_F/${XLC_POST}xlf90  -qsuffix=f=f90" 
-CMK_CF90_FIXED="$XLC_PRE/xlf/8.1/${XLC_POST}xlf90 " 
-CMK_C_OPTIMIZE='-O3 -Q  -qminimaltoc'
-CMK_CXX_OPTIMIZE='-O3 -Q -qminimaltoc'
+CMK_CF77="$XLC_F/${XLC_POST}xlf_r "
+CMK_CF90="$XLC_F/${XLC_POST}xlf90_r  -qsuffix=f=f90" 
+CMK_CF90_FIXED="$XLC_F/${XLC_POST}xlf90_r " 
+CMK_C_OPTIMIZE='-O3 -Q'
+CMK_CXX_OPTIMIZE='-O3 -Q'
 CMK_AR='ar cq'
 CMK_NM='nm '
 CMK_QT="aix"
 CMK_AR='ar cq'
 CMK_NM='nm '
 CMK_QT="aix"