Enable MPI_SMP.
[charm.git] / src / arch / mpi-bluegeneq / conv-mach.sh
blob91fb4ff0cd4558b93e6517b1ce3300192615dea9
1 BGQ_TYPICAL_FLOOR=/bgsys/drivers/ppcfloor
3 # if no floor set, use typical floor path
4 if test -z "$BGQ_FLOOR"
5 then
6 BGQ_FLOOR=$BGQ_TYPICAL_FLOOR
7 fi
9 # if no install path (for experimental) set, use floor
10 if test -z "$BGQ_INSTALL"
11 then
12 BGQ_INSTALL=$BGQ_TYPICAL_FLOOR
15 BGQ_BIN=$BGQ_FLOOR/gnu-linux/bin
16 BGQ_INC="-I$BGQ_INSTALL/comm/xl/include -I$BGQ_INSTALL/spi/include -I$BGQ_INSTALL -I$BGQ_INSTALL/spi/include/kernel/cnk/"
18 BGQ_LIB="-L$BGQ_INSTALL/comm/xl/lib -lmpich -lopa -lmpl -ldl -L$BGQ_INSTALL/comm/sys-fast/lib -lpami -L$BGQ_INSTALL/spi/lib -lSPI -lSPI_cnk -lpthread -lrt"
20 # test if compiler binary present
21 if test ! -x $BGQ_BIN/powerpc64-bgq-linux-g++
22 then
23 echo "ERROR: Invalid BGQ_INSTALL or BGQ_FLOOR, C/C++ compiler missing"
24 exit 1
27 OPTS_CPP="$OPTS_CPP"
28 GCC_OPTS="-Wno-deprecated -mminimal-toc $BGQ_INC"
29 OPTS_LD="$OPTS_LD"
31 CMK_CPP_CHARM="$BGQ_BIN/powerpc64-bgq-linux-cpp -P"
32 CMK_CPP_C="$BGQ_BIN/powerpc64-bgq-linux-cpp -E "
33 CMK_CXX="$BGQ_BIN/powerpc64-bgq-linux-g++ $GCC_OPTS "
34 CMK_GCXX="$BGQ_BIN/powerpc64-bgq-linux-g++ $GCC_OPTS "
35 CMK_CC="$BGQ_BIN/powerpc64-bgq-linux-gcc $GCC_OPTS "
36 CMK_CXXPP="$BGQ_BIN/powerpc64-bgq-linux-g++ -E "
37 CMK_CF77="$BGQ_BIN/powerpc64-bgq-linux-gfortran "
38 CMK_CF90='f90'
39 CMK_RANLIB="$BGQ_BIN/powerpc64-bgq-linux-ranlib "
40 CMK_AR="$BGQ_BIN/powerpc64-bgq-linux-ar q "
41 CMK_SYSLIBS="$BGQ_LIB"
42 CMK_LIBS='-lckqt'
43 #CMK_LD="$BGQ_INSTALL/comm/gcc/bin/mpicc"
44 #CMK_LDXX="$BGQ_INSTALL/comm/gcc/bin/mpicxx"
45 CMK_LD="$CMK_CC"
46 CMK_LDXX="$CMK_CXX"
47 CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
48 #CMK_SEQ_LIBS=''
49 #CMK_SEQ_CC="$BGQ_BIN/powerpc64-bgq-linux-gcc -Wno-deprecated "
50 #CMK_SEQ_LD="$CMK_SEQ_CC"
51 #CMK_SEQ_CXX="$BGQ_BIN/powerpc64-bgq-linux-g++ -Wno-deprecated "
52 #CMK_SEQ_LDXX="$CMK_SEQ_CXX"
53 CMK_NATIVE_CC='gcc '
54 CMK_NATIVE_LD='gcc '
55 CMK_NATIVE_CXX='g++ -Wno-deprecated '
56 CMK_NATIVE_LDXX='g++'
57 CMK_F90LIBS='-lf90math -lfio -lU77 -lf77math '
58 CMK_MOD_NAME_ALLCAPS=1
59 CMK_MOD_EXT="mod"
60 CMK_F90_USE_MODDIR=1
61 CMK_F90_MODINC="-p"
62 CMK_QT="generic64"