Skip to content

Commit

Permalink
Modify to avoid exit(0)
Browse files Browse the repository at this point in the history
exit(0) currently doesn't work with CHPL_LAUNCHER=slurm-srun and
CHPL_COMM=ofi, so avoid it.

Signed-off-by: John H. Hartman <[email protected]>
  • Loading branch information
jhh67 committed Jan 8, 2025
1 parent 9d1bb98 commit a866456
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/runtime/jhh/numColocales.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
use OS.POSIX;
use IO.FormattedIO;

var status = "Success";
var value = getenv("CHPL_RT_LOCALES_PER_NODE");
if value {
var n = string.createCopyingBuffer(value):int;
if n != here.numColocales {
writef("CHPL_RT_LOCALES_PER_NODE != here.numColocales (%i != %i)\n",
n, here.numColocales);
exit(0);
status = "Failure";
}
}
writeln("Success");
writeln(status);

0 comments on commit a866456

Please sign in to comment.