Windows with MS MPI, compiler Gnu compiler Mingw
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 9 Oct 2009 05:19:56 +0000 (05:19 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 9 Oct 2009 05:19:56 +0000 (05:19 +0000)
src/arch/mpi-cygwin/conv-mach-smp.h [new file with mode: 0644]
src/arch/mpi-cygwin/conv-mach-smp.sh [new file with mode: 0644]
src/arch/mpi-cygwin/conv-mach.h [new file with mode: 0644]
src/arch/mpi-cygwin/conv-mach.sh [new file with mode: 0644]

diff --git a/src/arch/mpi-cygwin/conv-mach-smp.h b/src/arch/mpi-cygwin/conv-mach-smp.h
new file mode 100644 (file)
index 0000000..9e1e787
--- /dev/null
@@ -0,0 +1,13 @@
+
+#define CMK_SMP                                                   1
+
+#undef CMK_NODE_QUEUE_AVAILABLE
+#define CMK_NODE_QUEUE_AVAILABLE                           1
+
+/* Win32 version always uses shared variables for now.
+#undef CMK_SHARED_VARS_UNAVAILABLE
+#undef CMK_SHARED_VARS_NT_THREADS
+#define CMK_SHARED_VARS_UNAVAILABLE                        0
+#define CMK_SHARED_VARS_NT_THREADS                         1
+*/
+
diff --git a/src/arch/mpi-cygwin/conv-mach-smp.sh b/src/arch/mpi-cygwin/conv-mach-smp.sh
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/arch/mpi-cygwin/conv-mach.h b/src/arch/mpi-cygwin/conv-mach.h
new file mode 100644 (file)
index 0000000..34bf32f
--- /dev/null
@@ -0,0 +1,75 @@
+/*****************************************************************************
+ * $Source$
+ * $Author$
+ * $Date$
+ * $Revision$
+ *****************************************************************************/
+
+#ifndef _CONV_MACH_H
+#define _CONV_MACH_H
+
+#define CMK_CONVERSE_MPI                                   1
+
+#define CMK_ASYNC_NOT_NEEDED                               1
+#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                 0
+
+#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                                8192
+#define CMK_MEMORY_PROTECTABLE                             0
+
+#define CMK_NODE_QUEUE_AVAILABLE                           0
+
+#define CMK_CONV_HOST_CSH_UNAVAILABLE                     1
+
+#define CMK_SHARED_VARS_EXEMPLAR                           0
+#define CMK_SHARED_VARS_UNAVAILABLE                        1
+#define CMK_SHARED_VARS_UNIPROCESSOR                       0
+#define CMK_SHARED_VARS_NT_THREADS                         0
+
+#define CMK_SIGNAL_NOT_NEEDED                              1
+#define CMK_SIGNAL_USE_SIGACTION                           0
+#define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              0
+
+#define CMK_THREADS_REQUIRE_NO_CPV                         0
+#define CMK_THREADS_COPY_STACK                             0
+#define CMK_THREADS_ARE_WIN32_FIBERS                       1
+#define CMK_THREADS_USE_CONTEXT                            0
+#define CMK_THREADS_USE_JCONTEXT                           0
+
+#define CMK_TIMER_USE_GETRUSAGE                            0
+#define CMK_TIMER_USE_SPECIAL                              0
+#define CMK_TIMER_USE_TIMES                                0
+#define CMK_TIMER_USE_WIN32API                             1
+
+#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
+
+#undef CMK_IMMEDIATE_MSG
+#define CMK_IMMEDIATE_MSG                                  0
+
+#define CMK_DEBUG_MODE                                    0
+#define CMK_WEB_MODE                                       1
+
+#define CMK_NO_ISO_MALLOC                                 1
+
+#define CMK_LBDB_ON                                       1
+
+#endif
+
diff --git a/src/arch/mpi-cygwin/conv-mach.sh b/src/arch/mpi-cygwin/conv-mach.sh
new file mode 100644 (file)
index 0000000..a2a38ec
--- /dev/null
@@ -0,0 +1,28 @@
+HPC_SDK="c:\Program Files\Microsoft HPC Pack 2008 SDK"
+HPC_SDK=`cygpath -d "$HPC_SDK"`
+
+CMK_CPP_CHARM="/lib/cpp -P"
+CMK_CPP_C="gcc -E "
+CMK_CXXPP="g++ -x c++ -E "
+CMK_CC="gcc -mno-cygwin -I/usr/local/mingw/include -I `cygpath -u "$HPC_SDK\Include"`"
+CMK_CXX="g++ -mno-cygwin -I/usr/local/mingw/include -I `cygpath -u "$HPC_SDK\Include"`"
+CMK_LD="$CMK_CC -L/usr/local/mingw/lib "
+CMK_LDXX="$CMK_CXX -L/usr/local/mingw/lib "
+CMK_LIBS=""
+CMK_SYSLIBS="`cygpath -u "$HPC_SDK\Lib\i386"`/msmpi.lib -lwsock32 -lpsapi"
+CMK_QT="none"
+
+CMK_NATIVE_CC="gcc "
+CMK_NATIVE_CXX="g++ "
+CMK_NATIVE_LD="gcc "
+CMK_NATIVE_LDXX="g++ "
+CMK_SEQ_LIBS="$CMK_SEQ_LIBS -lwsock32"
+
+CMK_CF77="f77"
+CMK_CF90="f90"
+CMK_RANLIB="ranlib"
+CMK_XIOPTS=""
+CMK_F90LIBS="-lvast90 -lg2c"
+CMK_MOD_EXT="vo"
+CMK_POST_EXE=".exe"
+