when put a token, don't have to pack message if num of nodes is only 1.
authorGengbin Zheng <gzheng@upcrc1.cs.uiuc.edu>
Tue, 27 Apr 2010 05:16:11 +0000 (00:16 -0500)
committerGengbin Zheng <gzheng@upcrc1.cs.uiuc.edu>
Tue, 27 Apr 2010 05:16:11 +0000 (00:16 -0500)
src/conv-ldb/cldb.neighbor.c

index 2b3cba49a41230bcae4d11b6f25fd980c31202ae..d44dc40bf92d8898ae74514d1e2f76a5fa10eece 100644 (file)
@@ -349,7 +349,7 @@ void CldEnqueue(int pe, void *msg, int infofn)
     /* always pack the message because the message may be move away
        to a different processor later by CldGetToken() */
     ifn(msg, &pfn, &len, &queueing, &priobits, &prioptr);
-    if (pfn) {
+    if (pfn && CmiNumNodes()>1) {
        pfn(&msg);
        ifn(msg, &pfn, &len, &queueing, &priobits, &prioptr);
     }