avoid calling packing function in CldEnqueue when destPE and srcPE are on same node.
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 7 Oct 2008 04:35:58 +0000 (04:35 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 7 Oct 2008 04:35:58 +0000 (04:35 +0000)
src/conv-ldb/cldb.rand.c

index c6dafb25061b0ee8a99b957657e5908c4e1b07b8..c037b4899da3746b3fe6647ef530c50a178c8a02 100644 (file)
@@ -68,7 +68,7 @@ void CldEnqueue(int pe, void *msg, int infofn)
     CsdEnqueueGeneral(msg, queueing, priobits, prioptr);
   } else {
     ifn(msg, &pfn, &len, &queueing, &priobits, &prioptr);
-    if (pfn) {
+    if (pfn && CmiNodeOf(pe) != CmiMyNode()) {
       pfn(&msg);
       ifn(msg, &pfn, &len, &queueing, &priobits, &prioptr);
     }