|
22 | 22 | my $myresults;
|
23 | 23 | my @csvrow;
|
24 | 24 |
|
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); |
28 | 28 | my @starteroptions = ("-npernode 1 --novm",
|
29 | 29 | "--hnp file:dvm_uri -pernode",
|
30 | 30 | "--distribution=cyclic",
|
31 |
| - "-N 1", |
32 |
| - "-npernode 1 --novm"); |
| 31 | + "-N 1"); |
33 | 32 |
|
34 | 33 | # Set to true if the script should merely print the cmds
|
35 | 34 | # it would run, but don't run them
|
36 |
| -my $SHOWME = 0; |
| 35 | +my $SHOWME = 1; |
37 | 36 | # Set to true to suppress most informational messages.
|
38 | 37 | my $QUIET = 0;
|
39 | 38 | # Set to true if we just want to see the help message
|
|
106 | 105 | splice @starteroptions, $idx, 1;
|
107 | 106 | # adjust the index
|
108 | 107 | $idx = $idx - 1;
|
109 |
| - } elsif ($usedvm && $starter ne "orte-submit") { |
| 108 | + } elsif ($usedvm && $starter ne "orterun") { |
110 | 109 | # remove this one from the list
|
111 | 110 | splice @starters, $idx, 1;
|
112 | 111 | splice @starteroptions, $idx, 1;
|
|
124 | 123 | splice @starteroptions, $idx, 1;
|
125 | 124 | # adjust the index
|
126 | 125 | $idx = $idx - 1;
|
127 |
| - } elsif ($usempirun && (($starter ne "mpirun") && ($starter ne "orterun"))) { |
| 126 | + } elsif ($usempirun && $starter ne "mpirun") { |
128 | 127 | # remove this one from the list
|
129 | 128 | splice @starters, $idx, 1;
|
130 | 129 | splice @starteroptions, $idx, 1;
|
|
134 | 133 | $idx = $idx + 1;
|
135 | 134 | }
|
136 | 135 |
|
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 |
| - |
158 | 136 | # bozo check
|
159 | 137 | if (scalar @starters == 0) {
|
160 | 138 | print "No available starters\n";
|
|
292 | 270 |
|
293 | 271 | foreach $starter (@starters) {
|
294 | 272 | # if we are going to use the dvm, then we
|
295 |
| - if ($starter eq "orte-submit") { |
| 273 | + if ($starter eq "orterun") { |
296 | 274 | # need to start it
|
297 | 275 | if (-e "dvm_uri") {
|
298 | 276 | system("rm -f dvm_uri");
|
|
350 | 328 | }
|
351 | 329 | if ($havedvm) {
|
352 | 330 | if (!$SHOWME) {
|
353 |
| - $cmd = "orte-submit --hnp file:dvm_uri --terminate"; |
| 331 | + $cmd = "orterun --hnp file:dvm_uri --terminate"; |
354 | 332 | system($cmd);
|
355 | 333 | }
|
356 | 334 | if (-e "dvm_uri") {
|
|
0 commit comments