updated argc before calling MPI_Init in case argc and argv do not agree.
[charm.git] / src / arch / net-linux-cell / conv-mach.sh
1 #CELL_SDK_DIR="/opt/IBM/cell-sdk-1.1"
2 #CELL_SDK_DIR="/opt/ibm/cell-sdk/prototype"
3
4 CMK_CPP_CHARM='/usr/lib/cpp'
5 CMK_CPP_C='ppu32-gcc -E'
6 CMK_CXXPP='ppu32-g++ -E'
7 #CMK_CC="ppu32-gcc -fPIC -w -I$CELL_SDK_DIR/sysroot/usr/include -L$CELL_SDK_DIR/sysroot/usr/lib"
8 CMK_CC="ppu32-gcc -fPIC -w"
9 #CMK_CXX="ppu32-g++ -fPIC -w  -I$CELL_SDK_DIR/sysroot/usr/include -L$CELL_SDK_DIR/sysroot/usr/lib"
10 CMK_CXX="ppu32-g++ -fPIC -w"
11 #CMK_LD="$CMK_CC -L$CELL_SDK_DIR/sysroot/usr/lib"
12 CMK_LD="$CMK_CC"
13 #CMK_LDXX="$CMK_CXX -L$CELL_SDK_DIR/sysroot/usr/lib"
14 CMK_LDXX="$CMK_CXX"
15
16 CMK_SEQ_CC=$CMK_CC
17 CMK_SEQ_CXX=$CMK_CXX
18 CMK_SEQ_LD=$CMK_LD
19 CMK_SEQ_LDXX=$CMK_LDXX
20
21 #CMK_SPE_CC="spu-gcc -W -Wall -Winline -Wno-main -Wl,-N -I$CELL_SDK_DIR/sysroot/usr/spu/include -L$CELL_SDK_DIR/sysroot/usr/spu/lib"
22 CMK_SPE_CC="spu-gcc -W -Wall -Winline -Wno-main -Wl,-N"
23 #CMK_SPE_CXX="spu-g++ -W -Wall -Winline -Wno-main -Wl,-N -I$CELL_SDK_DIR/sysroot/usr/spu/include -L$CELL_SDK_DIR/sysroot/usr/spu/lib"
24 CMK_SPE_CXX="spu-g++ -W -Wall -Winline -Wno-main -Wl,-N"
25 #CMK_SPE_LD="spu-gcc -Wl,-N -L$CELL_SDK_DIR/sysroot/usr/spu/lib"
26 CMK_SPE_LD="spu-gcc -Wl,-N"
27 #CMK_SPE_LDXX="spu-g++ -Wl,-N -L$CELL_SDK_DIR/sysroot/usr/spu/lib"
28 CMK_SPE_LDXX="spu-g++ -Wl,-N"
29 #CMK_SPERT_LIBS="-lcellspu $CELL_SDK_DIR/sysroot/usr/spu/lib/libc.a $CELL_SDK_DIR/sysroot/usr/spu/lib/libsim.a"
30 #CMK_SPERT_LIBS="-lcellspu $CELL_SDK_DIR/sysroot/usr/spu/lib/libsim.a"
31 CMK_SPERT_LIBS="-lcellspu"
32 CMK_SPE_AR='spu-ar'
33 CMK_PPU_EMBEDSPU='ppu32-embedspu'
34
35 CMK_RANLIB='ppu-ranlib'
36 CMK_AR='ppu-ar -r'
37 #CMK_LIBS='-lckqt -lcellppu -lspe'
38 CMK_LIBS='-lckqt -lcellppu -lspe2'
39 CMK_LD_SHARED='-shared'
40
41 CMK_NATIVE_CC='gcc'
42 CMK_NATIVE_LD='gcc'
43 CMK_NATIVE_CXX='g++'
44 CMK_NATIVE_LDXX='g++'
45
46 CMK_CF77='xlf77_r'
47 CMK_CF90='xlf90_r -qsuffix=f=f90'
48 CMK_QT='aix32-gcc'
49 CMK_F90LIBS=''
50
51 ## DMK - Accel Support for this architecture (CBEA, aka "Cell")
52 CMK_CELL=1
53 CMK_PPU_CC="ppu32-gcc -fPIC -w $OPTS"
54 CMK_PPU_CXX="ppu32-g++ -fPIC -w $OPTS"
55 CMK_SPU_CC="spu-gcc -W -Winline -Wno-main $OPTS"
56 CMK_SPU_CXX="spu-g++ -W -Winline $OPTS"
57 CMK_SPU_LD="spu-gcc -Wl,-N"
58 CMK_SPU_LDXX="spu-g++ -Wl,-N"
59 CMK_SPU_AR="spu-ar"
60 CMK_PPU_EMBEDSPU="ppu32-embedspu"
61 CMK_SPERT_LIBS="-lcellspu"