mpi solaris for amd64
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 12 Apr 2007 18:29:06 +0000 (18:29 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 12 Apr 2007 18:29:06 +0000 (18:29 +0000)
src/arch/mpi-sol-x86_64/conv-mach.h [new file with mode: 0644]
src/arch/mpi-sol-x86_64/conv-mach.sh [new file with mode: 0644]

diff --git a/src/arch/mpi-sol-x86_64/conv-mach.h b/src/arch/mpi-sol-x86_64/conv-mach.h
new file mode 100644 (file)
index 0000000..047b952
--- /dev/null
@@ -0,0 +1,66 @@
+/*****************************************************************************
+ * $Source$
+ * $Author$
+ * $Date$
+ * $Revision$
+ *****************************************************************************/
+
+#ifndef _CONV_MACH_H
+#define _CONV_MACH_H
+
+#define CMK_AMD64                                          1
+#define CMK_CONVERSE_MPI                                   1
+
+#define CMK_DEFAULT_MAIN_USES_COMMON_CODE                  1
+
+#define CMK_GETPAGESIZE_AVAILABLE                          1
+
+#define CMK_IS_HETERO                                      0
+
+#define CMK_MALLOC_USE_GNU_MALLOC                          0
+#define CMK_MALLOC_USE_OS_BUILTIN                          1
+
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
+#define CMK_NODE_QUEUE_AVAILABLE                           0
+
+#define CMK_SHARED_VARS_EXEMPLAR                           0
+#define CMK_SHARED_VARS_UNAVAILABLE                        1
+#define CMK_SHARED_VARS_UNIPROCESSOR                       0
+
+#define CMK_SIGNAL_NOT_NEEDED                              0
+#define CMK_SIGNAL_USE_SIGACTION                           0
+#define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              1
+
+#define CMK_THREADS_REQUIRE_NO_CPV                         0
+
+#define CMK_TIMER_USE_GETRUSAGE                            0
+#define CMK_TIMER_USE_SPECIAL                              1
+#define CMK_TIMER_USE_TIMES                                0
+#define CMK_TIMER_USE_RDTSC                               0
+
+#define CMK_THREADS_USE_CONTEXT                            1
+#define CMK_THREADS_USE_PTHREADS                           0
+#define CMK_THREADS_ARE_WIN32_FIBERS                       0
+
+#define CMK_TYPEDEF_INT2 short
+#define CMK_TYPEDEF_INT4 int
+#define CMK_TYPEDEF_INT8 long long
+#define CMK_TYPEDEF_UINT2 unsigned short
+#define CMK_TYPEDEF_UINT4 unsigned int
+#define CMK_TYPEDEF_UINT8 unsigned long long
+#define CMK_TYPEDEF_FLOAT4 float
+#define CMK_TYPEDEF_FLOAT8 double
+
+#define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   1
+#define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     0
+
+
+#define CMK_WEB_MODE                                       1
+#define CMK_DEBUG_MODE                                     0
+
+#define CMK_LBDB_ON                                       1
+
+#endif
+
diff --git a/src/arch/mpi-sol-x86_64/conv-mach.sh b/src/arch/mpi-sol-x86_64/conv-mach.sh
new file mode 100644 (file)
index 0000000..f427da6
--- /dev/null
@@ -0,0 +1,53 @@
+
+# user enviorn var: MPICXX and MPICC
+# or, use the definition in file $CHARMINC/MPIOPTS
+if test -x "$CHARMINC/MPIOPTS"
+then
+  . $CHARMINC/MPIOPTS
+else
+  MPICXX_DEF=mpiCC
+  MPICC_DEF=mpicc
+fi
+
+test -z "$MPICXX" && MPICXX=$MPICXX_DEF
+test -z "$MPICC" && MPICC=$MPICC_DEF
+test "$MPICXX" != "$MPICXX_DEF" && /bin/rm -f $CHARMINC/MPIOPTS
+if test ! -f "$CHARMINC/MPIOPTS"
+then
+  echo MPICXX_DEF=$MPICXX > $CHARMINC/MPIOPTS
+  echo MPICC_DEF=$MPICC >> $CHARMINC/MPIOPTS
+  chmod +x $CHARMINC/MPIOPTS
+fi
+
+CMK_REAL_COMPILER=`$MPICXX -show 2>/dev/null | cut -d' ' -f1 `
+case "$CMK_REAL_COMPILER" in
+g++) CMK_AMD64="-m64 -fPIC" ;;
+esac
+
+CMK_CPP_CHARM="/lib/cpp -P"
+CMK_CPP_C="$MPICC -E"
+CMK_CC="$MPICC $CMK_AMD64 "
+CMK_CXX="$MPICXX $CMK_AMD64 "
+CMK_CXXPP="$MPICXX -E $CMK_AMD64 "
+
+CMK_SYSLIBS="-lmpich "
+CMK_LIBS="-lckqt $CMK_SYSLIBS "
+CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
+
+CMK_NATIVE_CC="gcc $CMK_AMD64 "
+CMK_NATIVE_LD="gcc $CMK_AMD64 "
+CMK_NATIVE_CXX="g++ $CMK_AMD64 "
+CMK_NATIVE_LDXX="g++ $CMK_AMD64 "
+CMK_NATIVE_LIBS=""
+
+# fortran compiler 
+CMK_CF77="f77"
+CMK_CF90="f90"
+CMK_F90LIBS="-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math "
+CMK_F77LIBS="-lg2c "
+CMK_F90_USE_MODDIR=1
+CMK_F90_MODINC="-p"
+
+CMK_QT='generic64'
+CMK_RANLIB="ranlib"
+