multcore for darwin x86
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 6 Mar 2009 16:19:06 +0000 (16:19 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 6 Mar 2009 16:19:06 +0000 (16:19 +0000)
src/arch/multicore-darwin-x86/conv-mach.h [new file with mode: 0644]
src/arch/multicore-darwin-x86/conv-mach.sh [new file with mode: 0644]

diff --git a/src/arch/multicore-darwin-x86/conv-mach.h b/src/arch/multicore-darwin-x86/conv-mach.h
new file mode 100644 (file)
index 0000000..2b6faa3
--- /dev/null
@@ -0,0 +1,86 @@
+/*****************************************************************************
+ * $Source$
+ * $Author$
+ * $Date$
+ * $Revision$
+ *****************************************************************************/
+
+#ifndef _CONV_MACH_H
+#define _CONV_MACH_H
+
+#define CMK_SMP                                            1
+#define CMK_MULTICORE                                      1
+
+#define CMK_ASYNC_NOT_NEEDED                               0
+#define CMK_ASYNC_USE_FIOASYNC_AND_FIOSETOWN               0
+#define CMK_ASYNC_USE_FIOASYNC_AND_SIOCSPGRP               0
+#define CMK_ASYNC_USE_FIOSSAIOSTAT_AND_FIOSSAIOOWN         0
+#define CMK_ASYNC_USE_F_SETFL_AND_F_SETOWN                 1
+
+#define CMK_GETPAGESIZE_AVAILABLE                          0
+
+#define CMK_MALLOC_USE_GNU_MALLOC                          0
+#define CMK_MALLOC_USE_OS_BUILTIN                          1
+#define CMK_MALLOC_USE_GNUOLD_MALLOC                       0
+
+#define CMK_MEMORY_PAGESIZE                                4096
+#define CMK_MEMORY_PROTECTABLE                             0
+
+#define CMK_NODE_QUEUE_AVAILABLE                           0
+
+#define CMK_RSH_IS_A_COMMAND                               1
+#define CMK_RSH_NOT_NEEDED                                 0
+#define CMK_RSH_USE_REMSH                                  0
+
+#define CMK_SHARED_VARS_EXEMPLAR                           0
+#define CMK_SHARED_VARS_UNAVAILABLE                        0
+#define CMK_SHARED_VARS_UNIPROCESSOR                       0
+#define CMK_SHARED_VARS_POSIX_THREADS_SMP                  1
+
+#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_NETPOLL                                       1
+
+#define CMK_THREADS_REQUIRE_NO_CPV                         0
+#define CMK_THREADS_COPY_STACK                             0
+
+#define CMK_TIMER_USE_GETRUSAGE                            1
+#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_64BIT                                          0
+
+
+#define CMK_DEBUG_MODE                                    0 
+#define CMK_WEB_MODE                                       1
+
+#define CMK_LBDB_ON                                       1
+
+#define CMK_STACKSIZE_DEFAULT                             65536
+/*
+#define CMK_NO_ISO_MALLOC                                 1
+*/
+#define CMK_USE_KQUEUE                                     1
+
+#define CMK_MACOSX_PTHREAD_HACK                            1
+
+/*#if !CMK_GCC_X86_ASM || !CMK_GCC_X86_ASM_ATOMICINCREMENT */
+#define CMK_PCQUEUE_LOCK                                   1
+/*#endif */
+
+#endif
+
diff --git a/src/arch/multicore-darwin-x86/conv-mach.sh b/src/arch/multicore-darwin-x86/conv-mach.sh
new file mode 100644 (file)
index 0000000..8d4b5d8
--- /dev/null
@@ -0,0 +1,27 @@
+CMK_MACOSX=1
+CMK_DEFS=' -D_REENTRANT '
+
+CMK_CPP_CHARM="/usr/bin/cpp -P"
+CMK_CPP_C="gcc -E"
+CMK_CC="gcc -Wno-long-double -fPIC -dynamic -fno-common $CMK_DEFS "
+CMK_CXX="g++ -Wno-long-double -fPIC -dynamic -fno-common $CMK_DEFS "
+CMK_CXXPP="g++ -x g++ -E "
+CMK_LDXX="$CMK_CXX -multiply_defined suppress $CMK_DEFS "
+CMK_XIOPTS=""
+CMK_QT="generic-light"
+CMK_LIBS="-lckqt"
+CMK_RANLIB="ranlib"
+
+# Assumes GNU fortran compiler:
+CMK_CF77="g77"
+CMK_CF90="g90"
+
+# setting for shared lib
+# need -lstdc++ for c++ reference, and it needs to be put at very last 
+# of command line.
+# Mac environment varaible
+test -z "$MACOSX_DEPLOYMENT_TARGET" && export MACOSX_DEPLOYMENT_TARGET=10.3
+CMK_SHARED_SUF="dylib"
+CMK_LD_SHARED=" -dynamic -dynamiclib -undefined dynamic_lookup "
+CMK_LD_SHARED_LIBS="-lstdc++"
+CMK_LD_SHARED_ABSOLUTE_PATH=true