patches to make Fujitsu Compilers works with openMPI
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 7 Oct 2011 18:17:49 +0000 (13:17 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 7 Oct 2011 18:17:49 +0000 (13:17 -0500)
src/arch/mpi-linux-x86_64/cc-mpicxx.h
src/arch/mpi-linux-x86_64/cc-mpicxx.sh

index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..7c1ee09e330a9ecacdd5c8695f433863e4c3ca3b 100644 (file)
@@ -0,0 +1,4 @@
+#ifdef __FCC_VERSION 
+  #undef CMK_THREADS_BUILD_TLS
+  #define CMK_THREADS_BUILD_TLS 0
+#endif
index 1ecaa02539ab9a35e4c4037bb42d298baaca4430..5aae5474a55b8c88fe74409f8ed725040711ff58 100644 (file)
@@ -19,9 +19,12 @@ case "$CMK_REAL_COMPILER" in
 g++)   CMK_AMD64="-m64 -fPIC" ;;
 icpc)  CMK_AMD64="-m64";;
 pgCC)  CMK_AMD64="-DCMK_CC_PGCC=1" ;;
+FCC)   CMK_AMD64="-Kfast -DCMK_CC_PGCC=1 --variadic_macros";;
 esac
 CMK_REAL_C_COMPILER=`$MPICC -show 2>/dev/null | cut -d' ' -f1 `
 
+
+
 CMK_CPP_CHARM="/lib/cpp -P"
 CMK_CPP_C="$MPICC -E"
 CMK_CC="$MPICC $CMK_AMD64 "
@@ -36,6 +39,12 @@ CMK_NATIVE_CXX="$CMK_REAL_COMPILER $CMK_AMD64 "
 CMK_NATIVE_LDXX="$CMK_REAL_COMPILER $CMK_AMD64 "
 CMK_NATIVE_LIBS=""
 
+case "$CMK_REAL_COMPILER" in
+FCC) CMK_NATIVE_LD="$CMK_REAL_C_COMPILER";;
+esac
+
+
+
 # fortran compiler 
 # for Intel Fortran compiler 8.0 and higher which is renamed to ifort from ifc
 # does not work for ifc 7.0