A small change to the env var to consider the possibility of the extra comm thread...
authorChao Mei <chaomei09@gmail.com>
Wed, 14 Apr 2010 22:21:33 +0000 (17:21 -0500)
committerChao Mei <chaomei09@gmail.com>
Wed, 14 Apr 2010 22:21:33 +0000 (17:21 -0500)
src/arch/lapi/charmrun

index d26247c44d821b0901a45e5548736281eb09e1f6..3fdd4e8254408d48d2826dfd96c376bdfe87d08f 100755 (executable)
@@ -115,8 +115,8 @@ if [ $ppnused -gt 0 ]
 #by splitting the heap into multiple parts where each thread has its
 #own access without locks. However, enabling this var will increase the memory
 #usage, so we only use it when it's a smp run.
-    heaps=$ppnused
-    if [ $ppnused -gt 32 ]
+    heaps=`expr $ppnused + 1`
+    if [ $heaps -gt 32 ]
         then
         heaps=32
     fi