disable CMK_BROADCAST_USE_CMIREFERENCE when with SMP
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 18 Jan 2012 05:43:53 +0000 (23:43 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 18 Jan 2012 05:43:53 +0000 (23:43 -0600)
src/conv-core/conv-config.h

index a2de8e157b2f39096aa02b37efa03347d09527d2..a14efd911205566360cafc24634b96a9f7c36099 100644 (file)
 #define CMK_SMP_TRACE_COMMTHREAD                               0
 #endif
 
+/**
+    CmiReference broadcast/multicast optimization does not work for SMP
+    due to race condition on memory reference counter, needs lock to protect
+ */
+#if CMK_SMP && CMK_BROADCAST_USE_CMIREFERENCE
+#undef CMK_BROADCAST_USE_CMIREFERENCE
+#define CMK_BROADCAST_USE_CMIREFERENCE                      0
+#endif
+
 #endif