Skip to content
Snippets Groups Projects
Commit 32dfd76c authored by Mark Grondona's avatar Mark Grondona
Browse files

o use correct number of process in call to qsw_setup_jobinfo()

parent 3edd414f
No related branches found
No related tags found
No related merge requests found
...@@ -296,7 +296,8 @@ step_create ( step_specs *step_specs, struct step_record** new_step_record ) ...@@ -296,7 +296,8 @@ step_create ( step_specs *step_specs, struct step_record** new_step_record )
struct job_record *job_ptr; struct job_record *job_ptr;
bitstr_t *nodeset; bitstr_t *nodeset;
#ifdef HAVE_LIBELAN3 #ifdef HAVE_LIBELAN3
int first, last, i, node_id, nprocs; int first, last, i, node_id;
int nprocs = step_specs->cpu_count;
int node_set_size = QSW_MAX_TASKS; /* overkill but safe */ int node_set_size = QSW_MAX_TASKS; /* overkill but safe */
#endif #endif
...@@ -349,7 +350,6 @@ step_create ( step_specs *step_specs, struct step_record** new_step_record ) ...@@ -349,7 +350,6 @@ step_create ( step_specs *step_specs, struct step_record** new_step_record )
node_record_table_ptr[i].name); node_record_table_ptr[i].name);
} }
} }
nprocs = 1; /* allocate based upon nodeset only */
if (qsw_setup_jobinfo (step_ptr->qsw_job, nprocs, nodeset, step_ptr->cyclic_alloc) < 0) if (qsw_setup_jobinfo (step_ptr->qsw_job, nprocs, nodeset, step_ptr->cyclic_alloc) < 0)
fatal ("step_create: qsw_setup_jobinfo error %m"); fatal ("step_create: qsw_setup_jobinfo error %m");
bit_free (nodeset); bit_free (nodeset);
......
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