diff --git a/NEWS b/NEWS index 2b6ad4ab8d8149c2e7f5f13ca847e76b9e8a484c..276e2f498231932600255cb2ffa34545bb9fb3e5 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ documents those changes that are of interest to users and admins. ======================== -- In select/cons_res - fix for function argument type mis-match in getting CPU count for a job, from Ernest Artiaga, BSC. + -- In sched/wiki2 - Report job's tasks_per_node requirement. * Changes in SLURM 1.2.3 ======================== diff --git a/src/plugins/sched/wiki2/get_jobs.c b/src/plugins/sched/wiki2/get_jobs.c index 029e28efb3381db717ab66e2194ef4204713c875..d14308e5c40b0ce64b3e5e08db55b3a9854c86b4 100644 --- a/src/plugins/sched/wiki2/get_jobs.c +++ b/src/plugins/sched/wiki2/get_jobs.c @@ -357,6 +357,14 @@ static void _get_job_comment(struct job_record *job_ptr, field_sep = "?"; } + /* TPN = tasks per node */ + if (job_ptr->details && (job_ptr->details->ntasks_per_node != 0)) { + size += snprintf((buffer + size), (buf_size - size), + "%sTPN:%u", field_sep, + job_ptr->details->ntasks_per_node); + field_sep = "?"; + } + /* COMMENT SET BY MOAB */ if (job_ptr->comment && job_ptr->comment[0]) { size += snprintf((buffer + size), (buf_size - size),