Net Charmrun mpiexec: fail noisily if rank cannot be detected
authorPhil Miller <mille121@illinois.edu>
Wed, 2 Feb 2011 04:54:53 +0000 (22:54 -0600)
committerPhil Miller <mille121@illinois.edu>
Wed, 2 Feb 2011 04:54:53 +0000 (22:54 -0600)
src/arch/net/charmrun/charmrun.c

index 887b17997f59718b8467d06453ab129ca3d31252..5569155b6370c41599a8717044ec089a5be01fa6 100644 (file)
@@ -3985,6 +3985,7 @@ void rsh_script(FILE *f, int nodeno, int rank0no, char **argv, int restart)
     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,"test -z \"$CmiMyNode\" && (Echo Could not detect rank from environment ; Exit 1\n");
     fprintf(f,"export CmiMyNode\n");
   }
 #ifdef HSTART