to build MS MPI with VC++
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 26 Sep 2009 02:14:10 +0000 (02:14 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 26 Sep 2009 02:14:10 +0000 (02:14 +0000)
src/arch/mpi-win32/conv-mach.h [new file with mode: 0644]
src/arch/mpi-win32/conv-mach.sh [new file with mode: 0644]

diff --git a/src/arch/mpi-win32/conv-mach.h b/src/arch/mpi-win32/conv-mach.h
new file mode 100644 (file)
index 0000000..533d6f7
--- /dev/null
@@ -0,0 +1,71 @@
+/*****************************************************************************
+ * $Source$
+ * $Author$
+ * $Date$
+ * $Revision$
+ *****************************************************************************/
+
+#ifndef _CONV_MACH_H
+#define _CONV_MACH_H
+
+#define CMK_CONVERSE_MPI                                   1
+
+#define CMK_GETPAGESIZE_AVAILABLE                          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_IS_HETERO                                      1
+
+#define CMK_NODE_QUEUE_AVAILABLE                           0
+
+#define CMK_SHARED_VARS_EXEMPLAR                           0
+#define CMK_SHARED_VARS_UNAVAILABLE                        0
+#define CMK_SHARED_VARS_UNIPROCESSOR                       0
+#define CMK_SHARED_VARS_NT_THREADS                         1
+
+#define CMK_SIGNAL_NOT_NEEDED                              1
+#define CMK_SIGNAL_USE_SIGACTION                           0
+#define CMK_SIGNAL_USE_SIGACTION_WITH_RESTART              0
+
+#define CMK_SYNCHRONIZE_ON_TCP_CLOSE                       0
+
+#define CMK_THREADS_USE_JCONTEXT                           0
+#define CMK_THREADS_REQUIRE_NO_CPV                         0
+#define CMK_THREADS_COPY_STACK                             0
+#define CMK_THREADS_ARE_WIN32_FIBERS                       1
+
+#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 __int64
+#define CMK_TYPEDEF_UINT2 unsigned short
+#define CMK_TYPEDEF_UINT4 unsigned int
+#define CMK_TYPEDEF_UINT8 unsigned __int64
+#define CMK_TYPEDEF_FLOAT4 float
+#define CMK_TYPEDEF_FLOAT8 double
+
+#define CMK_64BIT    0
+
+#define CMK_WHEN_PROCESSOR_IDLE_BUSYWAIT                   1
+#define CMK_WHEN_PROCESSOR_IDLE_USLEEP                     0
+
+
+
+#define CMK_WEB_MODE                                       0
+
+#define CMK_LBDB_ON                                       1
+
+#define CMK_COMPILEMODE_ANSI                              1
+
+#define CMK_PCQUEUE_LOCK                                   1
+
+#endif
+
diff --git a/src/arch/mpi-win32/conv-mach.sh b/src/arch/mpi-win32/conv-mach.sh
new file mode 100644 (file)
index 0000000..3f63f56
--- /dev/null
@@ -0,0 +1,24 @@
+HPC_SDK="c:\Program Files\Microsoft HPC Pack 2008 SDK"
+
+CMK_CC="unix2nt_cc -D_CRT_SECURE_NO_DEPRECATE -I `cygpath -d "$HPC_SDK\Include"`"
+CMK_CPP_C="$CMK_CC -E"
+CMK_CXX="unix2nt_cc -D_CRT_SECURE_NO_DEPRECATE  -I `cygpath -d "$HPC_SDK\Include"`"
+CMK_CXXPP=$CMK_CC
+CMK_LD="$CMK_CC -L `cygpath -d "$HPC_SDK\Lib\i386"` -lmsmpi"
+CMK_LDXX="$CMK_CXX -L `cygpath -d "$HPC_SDK\Lib\i386"` -lmsmpi"
+
+CMK_SEQ_CC="$CMK_CC"
+CMK_SEQ_CXX="$CMK_CXX"
+CMK_SEQ_LD="$CMK_LD"
+CMK_SEQ_LDXX="$CMK_LDXX"
+
+CMK_CF77="f77"
+CMK_CF90="f90"
+CMK_AR="unix2nt_ar "
+CMK_RANLIB="echo "
+CMK_LIBS=""
+CMK_XIOPTS=""
+CMK_F90LIBS="-lvast90 -lg2c"
+CMK_MOD_EXT="vo"
+CMK_POST_EXE=".exe"
+CMK_QT="none"