use context thread by default.
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 9 Nov 2007 22:06:57 +0000 (22:06 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 9 Nov 2007 22:06:57 +0000 (22:06 +0000)
enforce pcqueue lock for smp.

src/arch/mpi-linux-x86_64/conv-mach-smp.h
src/arch/mpi-linux-x86_64/conv-mach.h

index 3cbbd6d2b06106163050f360aa3d96e79e46037f..a485f098e72be6e875c30641a22b38cdf7df87da 100644 (file)
@@ -12,9 +12,6 @@
 #define CMK_MALLOC_USE_GNU_MALLOC                          1
 #define CMK_MALLOC_USE_OS_BUILTIN                          0
 
-#undef CMK_THREADS_USE_CONTEXT
-#define CMK_THREADS_USE_CONTEXT                            1
-
 #undef CMK_NODE_QUEUE_AVAILABLE
 #define CMK_NODE_QUEUE_AVAILABLE                           1
 
@@ -28,6 +25,6 @@
 #undef CMK_SYNCHRONIZE_ON_TCP_CLOSE
 #define CMK_SYNCHRONIZE_ON_TCP_CLOSE                       1
 
-#define  CMK_USE_MFENCE                                    1
-#define  CMK_PCQUEUE_LOCK                                  0
+/*#define  CMK_USE_MFENCE                                    1 */
+#define  CMK_PCQUEUE_LOCK                                  1
 
index 572879b83d120c02685648a4256bbde0365a72d8..80eff2219d10ce8c37b43b375d8c466773837dee 100644 (file)
@@ -40,7 +40,7 @@
 #define CMK_TIMER_USE_TIMES                                0
 #define CMK_TIMER_USE_RDTSC                               0
 
-#define CMK_THREADS_USE_CONTEXT                            0
+#define CMK_THREADS_USE_CONTEXT                            1
 #define CMK_THREADS_USE_PTHREADS                           0
 
 #define CMK_TYPEDEF_INT2 short