Skip to content
Snippets Groups Projects
Commit af9d934f authored by Danny Auble's avatar Danny Auble
Browse files

CRAY - Fix issue where multi-prog is used but doesn't have any arguments

on any of the commands.
parent 084787c0
No related branches found
No related tags found
No related merge requests found
...@@ -455,7 +455,9 @@ extern void multi_prog_parse(stepd_step_rec_t *job, uint32_t **gtid) ...@@ -455,7 +455,9 @@ extern void multi_prog_parse(stepd_step_rec_t *job, uint32_t **gtid)
job->mpmd_set->command[j] = xstrdup(tmp_cmd[i]); job->mpmd_set->command[j] = xstrdup(tmp_cmd[i]);
job->mpmd_set->start_pe[j] = i; job->mpmd_set->start_pe[j] = i;
job->mpmd_set->total_pe[j]++; job->mpmd_set->total_pe[j]++;
} else if (!strcmp(tmp_cmd[i-1], tmp_cmd[i]) && } else if (tmp_cmd[i-1] && tmp_cmd[i] &&
tmp_args[i-1] && tmp_args[i] &&
!strcmp(tmp_cmd[i-1], tmp_cmd[i]) &&
!strcmp(tmp_args[i-1], tmp_args[i]) && !strcmp(tmp_args[i-1], tmp_args[i]) &&
!strchr(tmp_args[i-1], '%')) { !strchr(tmp_args[i-1], '%')) {
if ((ranks_node_id[i] == job->nodeid) && if ((ranks_node_id[i] == job->nodeid) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment