multicore on aix configuration
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 7 Apr 2009 21:18:22 +0000 (21:18 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 7 Apr 2009 21:18:22 +0000 (21:18 +0000)
src/arch/multicore-aix-ppc/conv-mach.h [new file with mode: 0644]
src/arch/multicore-aix-ppc/conv-mach.sh [new file with mode: 0644]

diff --git a/src/arch/multicore-aix-ppc/conv-mach.h b/src/arch/multicore-aix-ppc/conv-mach.h
new file mode 100644 (file)
index 0000000..3afe7c9
--- /dev/null
@@ -0,0 +1,81 @@
+/*****************************************************************************
+ * $Source$
+ * $Author$
+ * $Date$
+ * $Revision$
+ *****************************************************************************/
+
+#ifndef _CONV_MACH_H
+#define _CONV_MACH_H
+
+#define CMK_AIX                                            1
+#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                          1
+
+#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_RSH_IS_A_COMMAND                               1
+#define CMK_RSH_NOT_NEEDED                                 0
+#define CMK_RSH_USE_REMSH                                  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_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                           0
+#define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              1
+
+#define CMK_THREADS_REQUIRE_NO_CPV                         0
+#define CMK_THREADS_COPY_STACK                             0
+
+#define CMK_TIMER_USE_RDTSC                                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_WHEN_PROCESSOR_IDLE_BUSYWAIT                   0
+#define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     1
+
+#define CMK_DEBUG_MODE                                    0 
+#define CMK_WEB_MODE                                       1
+
+#define CMK_LBDB_ON                                       1
+
+#define CMK_ISATTY_DECL                                    1
+
+/*#define CMK_MMAP_PROBE                                      1 */
+
+/*#define CMK_PCQUEUE_LOCK                                   1  */
+/*#define CMK_USE_TLS_THREAD                                 1 */
+
+#endif
+
+
diff --git a/src/arch/multicore-aix-ppc/conv-mach.sh b/src/arch/multicore-aix-ppc/conv-mach.sh
new file mode 100644 (file)
index 0000000..52500ea
--- /dev/null
@@ -0,0 +1,21 @@
+CMK_DEFS=' -D_REENTRANT -D_THREAD_SAFE '
+CMK_CPP_CHARM='/usr/lib/cpp'
+CMK_CPP_C="xlc -E $CMK_DEFS "
+CMK_CC="xlc_r -qcpluscmt $CMK_DEFS "
+CMK_CXX="xlC_r -qstaticinline $CMK_DEFS "
+CMK_LD="xlc_r -brtl -bmaxdata:0x80000000 -bmaxstack:0x80000000 $CMK_DEFS "
+CMK_LDXX="xlC_r -brtl -bmaxdata:0x80000000 -bmaxstack:0x80000000 $CMK_DEFS "
+CMK_CXXPP="xlC -E $CMK_DEFS "
+CMK_RANLIB='ranlib'
+CMK_LIBS='-lckqt -lhC -lpthreads'
+CMK_LD_SHARED='-G'
+CMK_QT='aix-light'
+CMK_XIOPTS=''
+
+CMK_NATIVE_CXX='xlC -D_H_UNISTD -DYY_NEVER_INTERACTIVE=1 -qstaticinline '
+CMK_NATIVE_LDXX='xlC'
+
+CMK_CF77='xlf77_r'
+CMK_CF90='xlf90_r -qsuffix=f=f90'
+CMK_F90LIBS='-lxlf90_r -lhC'
+