Net Charmrun mpiexec: fail noisily if node count cannot be detected
authorPhil Miller <mille121@illinois.edu>
Wed, 2 Feb 2011 05:01:21 +0000 (23:01 -0600)
committerPhil Miller <mille121@illinois.edu>
Wed, 2 Feb 2011 05:01:21 +0000 (23:01 -0600)
src/arch/net/charmrun/charmrun.c

index 5569155b6370c41599a8717044ec089a5be01fa6..2ed7670bda5aca26a7c16dd98f6db1da3b722e77 100644 (file)
@@ -4014,6 +4014,7 @@ void rsh_script(FILE *f, int nodeno, int rank0no, char **argv, int restart)
     fprintf(f,"CmiNumNodes=$OMPI_COMM_WORLD_SIZE\n");
     fprintf(f,"test -z \"$CmiNumNodes\" && CmiNumNodes=$MPIRUN_NPROCS\n");
     fprintf(f,"test -z \"$CmiNumNodes\" && CmiNumNodes=$PMI_SIZE\n");
+    fprintf(f,"test -z \"$CmiNumNodes\" && (Echo Could not detect node count from environment ; Exit 1\n");
     fprintf(f,"export CmiNumNodes\n");
   }
 #ifdef HSTART