Net Charmrun: support PMI_ID under mpiexec
authorPhil Miller <mille121@illinois.edu>
Wed, 2 Feb 2011 04:53:30 +0000 (22:53 -0600)
committerPhil Miller <mille121@illinois.edu>
Wed, 2 Feb 2011 04:53:30 +0000 (22:53 -0600)
src/arch/net/charmrun/charmrun.c

index 6ba330dea4ae2b2c575bccb80320cb168569843f..887b17997f59718b8467d06453ab129ca3d31252 100644 (file)
@@ -3984,6 +3984,7 @@ void rsh_script(FILE *f, int nodeno, int rank0no, char **argv, int restart)
     fprintf(f,"CmiMyNode=$OMPI_COMM_WORLD_RANK\n");
     fprintf(f,"test -z \"$CmiMyNode\" && CmiMyNode=$MPIRUN_RANK\n");
     fprintf(f,"test -z \"$CmiMyNode\" && CmiMyNode=$PMI_RANK\n");
+    fprintf(f,"test -z \"$CmiMyNode\" && CmiMyNode=$PMI_ID\n");
     fprintf(f,"export CmiMyNode\n");
   }
 #ifdef HSTART