mpi-bluegeneq-smp changes.
[charm.git] / src / arch / mpi-bluegeneq / cc-xlc.sh
1 XLC_TYPICAL_PRE=/opt/ibmcmp/
2 if test -d /soft/compilers/ibmcmp-may2012
3 then
4 XLC_TYPICAL_PRE=/soft/compilers/ibmcmp-may2012
5 fi
6
7 XLC_PRE=$XLC_TYPICAL_PRE/vacpp/bg/12.1
8
9 XLF_TYPICAL_PRE=/soft/compilers/ibmcmp-feb2012/xlf/bg/14.1
10
11 XLC_TYPICAL_POST=bin/bg
12 XLC_POST=$XLC_TYPICAL_POST
13
14 # if no floor set, use typical floor path
15 if test -n "$BGQ_XLC_PRE"
16 then
17   XLC_PRE=$BGQ_XLC_PRE
18 fi
19
20 XLC_F=$XLF_TYPICAL_PRE
21 CMK_CC="$XLC_PRE/${XLC_POST}xlc_r -qcpluscmt -qhalt=e $BGQ_INC"
22 CMK_CXX="$XLC_PRE/${XLC_POST}xlC_r -qhalt=e $BGQ_INC"
23 CMK_LD="$CMK_CC"
24 CMK_LDXX="$CMK_CXX"
25 CMK_CF77="$XLC_F/${XLC_POST}xlf_r "
26 CMK_CF90="$XLC_F/${XLC_POST}xlf90_r  -qsuffix=f=f90" 
27 CMK_CF90_FIXED="$XLC_F/${XLC_POST}xlf90_r " 
28 CMK_C_OPTIMIZE='-O3 -Q'
29 CMK_CXX_OPTIMIZE='-O3 -Q'
30 CMK_AR='ar cq'
31 CMK_NM='nm '
32 CMK_QT="aix"
33 #CMK_NATIVE_CC="/opt/ibmcmp/vacpp/bg/9.0/bin/xlc"
34 #CMK_NATIVE_CXX="/opt/ibmcmp/vacpp/bg/9.0/bin/xlC"
35 CMK_NATIVE_LD="$CMK_NATIVE_CC"
36 CMK_NATIVE_LDXX="$CMK_NATIVE_CXX"
37 CMK_RANLIB="ranlib"
38 CMK_F90LIBS="-L$XLC_F/lib -lxlf90 -lxlopt -lxl -lxlfmath"