Skip to content

Commit a2326e3

Browse files
author
Ralph Castain
committed
Update the scaling test to properly use orterun for orte-dvm tests, and extend by adding params for async mpi init/finalize
1 parent 974dd64 commit a2326e3

File tree

1 file changed

+9
-31
lines changed

1 file changed

+9
-31
lines changed

contrib/scaling/scaling.pl

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,17 @@
2222
my $myresults;
2323
my @csvrow;
2424

25-
my @tests = qw(/bin/true ./orte_no_op ./mpi_no_op ./mpi_no_op);
26-
my @options = ("", "", "", "-mca mpi_add_procs_cutoff 0 -mca pmix_base_async_modex 1");
27-
my @starters = qw(mpirun orte-submit srun aprun orterun);
25+
my @tests = qw(/bin/true ./orte_no_op ./mpi_no_op ./mpi_no_op ./mpi_no_op);
26+
my @options = ("", "", "", "-mca mpi_add_procs_cutoff 0 -mca pmix_base_async_modex 1", "-mca mpi_add_procs_cutoff 0 -mca pmix_base_async_modex 1 -mca async_mpi_init 1 -mca async_mpi_finalize 1");
27+
my @starters = qw(mpirun orterun srun aprun);
2828
my @starteroptions = ("-npernode 1 --novm",
2929
"--hnp file:dvm_uri -pernode",
3030
"--distribution=cyclic",
31-
"-N 1",
32-
"-npernode 1 --novm");
31+
"-N 1");
3332

3433
# Set to true if the script should merely print the cmds
3534
# it would run, but don't run them
36-
my $SHOWME = 0;
35+
my $SHOWME = 1;
3736
# Set to true to suppress most informational messages.
3837
my $QUIET = 0;
3938
# Set to true if we just want to see the help message
@@ -106,7 +105,7 @@
106105
splice @starteroptions, $idx, 1;
107106
# adjust the index
108107
$idx = $idx - 1;
109-
} elsif ($usedvm && $starter ne "orte-submit") {
108+
} elsif ($usedvm && $starter ne "orterun") {
110109
# remove this one from the list
111110
splice @starters, $idx, 1;
112111
splice @starteroptions, $idx, 1;
@@ -124,7 +123,7 @@
124123
splice @starteroptions, $idx, 1;
125124
# adjust the index
126125
$idx = $idx - 1;
127-
} elsif ($usempirun && (($starter ne "mpirun") && ($starter ne "orterun"))) {
126+
} elsif ($usempirun && $starter ne "mpirun") {
128127
# remove this one from the list
129128
splice @starters, $idx, 1;
130129
splice @starteroptions, $idx, 1;
@@ -134,27 +133,6 @@
134133
$idx = $idx + 1;
135134
}
136135

137-
# if both mpirun and orterun are present, then
138-
# we don't need to run both as they are just
139-
# symlinks to each other
140-
$exists = 0;
141-
foreach my $path (@path) {
142-
if ( -x "$path/mpirun") {
143-
$idx=0;
144-
foreach $starter (@starters) {
145-
if ($starter eq "orterun") {
146-
splice @starters, $idx, 1;
147-
splice @starteroptions, $idx, 1;
148-
last;
149-
}
150-
$idx = $idx + 1;
151-
}
152-
if ($exists) {
153-
last;
154-
}
155-
}
156-
}
157-
158136
# bozo check
159137
if (scalar @starters == 0) {
160138
print "No available starters\n";
@@ -292,7 +270,7 @@ ()
292270

293271
foreach $starter (@starters) {
294272
# if we are going to use the dvm, then we
295-
if ($starter eq "orte-submit") {
273+
if ($starter eq "orterun") {
296274
# need to start it
297275
if (-e "dvm_uri") {
298276
system("rm -f dvm_uri");
@@ -350,7 +328,7 @@ ()
350328
}
351329
if ($havedvm) {
352330
if (!$SHOWME) {
353-
$cmd = "orte-submit --hnp file:dvm_uri --terminate";
331+
$cmd = "orterun --hnp file:dvm_uri --terminate";
354332
system($cmd);
355333
}
356334
if (-e "dvm_uri") {

0 commit comments

Comments
 (0)