Adding an elan-linux architecture. This architecture passes megatest on a Xeon/Elan...
authorIsaac Dooley <idooley2@illinois.edu>
Wed, 25 Jul 2007 17:56:04 +0000 (17:56 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Wed, 25 Jul 2007 17:56:04 +0000 (17:56 +0000)
src/arch/elan-linux/conv-mach.h [new file with mode: 0644]
src/arch/elan-linux/conv-mach.sh [new file with mode: 0644]

diff --git a/src/arch/elan-linux/conv-mach.h b/src/arch/elan-linux/conv-mach.h
new file mode 100644 (file)
index 0000000..03625d2
--- /dev/null
@@ -0,0 +1,62 @@
+/*****************************************************************************
+ * $Source$
+ * $Author: Isaac Dooley
+ * $Date$
+ * $Revision$
+ *****************************************************************************/
+
+#ifndef _CONV_MACH_H
+#define _CONV_MACH_H
+
+#define CMK_DLL_CC  "g++ -shared -O3 -o "
+
+#define CMK_GETPAGESIZE_AVAILABLE                          0
+
+#define CMK_MALLOC_USE_GNU_MALLOC                          1
+#define CMK_MALLOC_USE_OS_BUILTIN                          0
+
+#define CMK_MEMORY_PAGESIZE                                8192
+#define CMK_MEMORY_PROTECTABLE                             1
+
+#define CMK_NODE_QUEUE_AVAILABLE                           0
+
+#define CMK_SHARED_VARS_UNAVAILABLE                        1
+#define CMK_SHARED_VARS_UNIPROCESSOR                       0
+
+#define CMK_THREADS_USE_CONTEXT                            0
+#define CMK_THREADS_USE_PTHREADS                           0
+#define CMK_THREADS_ARE_WIN32_FIBERS                       0
+
+#define CMK_SIGNAL_NOT_NEEDED                              0
+#define CMK_SIGNAL_USE_SIGACTION                           1
+#define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              0
+
+#define CMK_THREADS_REQUIRE_NO_CPV                         0
+#define CMK_THREADS_COPY_STACK                             0
+
+#define CMK_TIMER_USE_RDTSC                                1
+#define CMK_TIMER_USE_GETRUSAGE                            0
+#define CMK_TIMER_USE_SPECIAL                              0
+#define CMK_TIMER_USE_TIMES                                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_NETPOLL                                        1
+
+#define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   1
+#define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     0
+
+#define CMK_DEBUG_MODE                                    0 
+#define CMK_WEB_MODE                                       1
+
+#define CMK_LBDB_ON                                       1
+
+#endif
+
diff --git a/src/arch/elan-linux/conv-mach.sh b/src/arch/elan-linux/conv-mach.sh
new file mode 100644 (file)
index 0000000..7e8f3d0
--- /dev/null
@@ -0,0 +1,40 @@
+CMK_CPP_CHARM="/lib/cpp -P"
+CMK_CPP_C="gcc -E"
+CMK_CC="gcc "
+CMK_CXX="g++ "
+CMK_CXXPP="$CMK_CXX -x c++ -E "
+CMK_RANLIB="ranlib"
+CMK_LIBS="-lckqt -lelan"
+#CMK_LD="$CMK_CC -Wl,--allow-multiple-definition "
+#CMK_LDXX="$CMK_CXX -Wl,--allow-multiple-definition "
+CMK_LD="$CMK_CC "
+CMK_LDXX="$CMK_CXX "
+CMK_LD_SHARED="-shared"
+CMK_LD_LIBRARY_PATH="-Wl,-rpath,$CHARMLIBSO/"
+CMK_XIOPTS=""
+CMK_QT="i386-gcc"
+
+# fortran compiler Absoft or gnu f95
+CMK_CF77="g77 "
+CMK_F77LIBS="-lg2c "
+CMK_CF90=`which f90 2>/dev/null`
+if test -n "$CMK_CF90"
+then
+# absoft
+  CMK_CF90_FIXED="$CMK_CF90 -W132 "
+  CMK_F90LIBS="-L/usr/absoft/lib -L/opt/absoft/lib -lf90math -lfio -lU77 -lf77math "
+  CMK_F90_USE_MODDIR=1
+  CMK_F90_MODINC="-p"
+else
+# gnu f95
+  CMK_CF90=`which f95 2>/dev/null`
+  if test -n "$CMK_CF90"
+  then
+    CMK_FPP="/lib/cpp -P -CC"
+    CMK_CF90="$CMK_CF90 -fpic -fautomatic -fdollar-ok "
+    CMK_CF90_FIXED="$CMK_CF90 -ffixed-form "
+    CMK_F90LIBS="-lgfortran "
+    CMK_F90_USE_MODDIR=1
+    CMK_F90_MODINC="-I"
+  fi
+fi