set Max_mem max_send
authorYanhua Sun <yanhuas@jyc1.(none)>
Thu, 23 Feb 2012 07:30:29 +0000 (01:30 -0600)
committerYanhua Sun <yanhuas@jyc1.(none)>
Thu, 23 Feb 2012 07:30:29 +0000 (01:30 -0600)
src/arch/gemini_gni/machine.c

index 12ac402978d0e1835f5b41a2623e19512264a86d..d4b182d012f89a7b2c7f7b8694ef954ca124d221 100644 (file)
@@ -1254,10 +1254,10 @@ static void set_limit()
         int numpes = CmiNumPesOnPhysicalNode(mynode);
         int numprocesses = numpes / CmiMyNodeSize();
         int totalmem = 1024*1024*1024*0.9;
-        int mem_max = totalmem / numprocesses;
-        int send_max = mem_max / 2;
+        MAX_REG_MEM  = totalmem / numprocesses;
+        MAX_BUFF_SEND = MAX_REG_MEM/ 2;
        if(CmiMyPe() == 0)
-           printf("mem_max = %d, send_max =%d\n", mem_max, send_max);
+           printf("mem_max = %d, send_max =%d\n", MAX_REG_MEM, MAX_BUFF_SEND);
     }
 }