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

Merge remote-tracking branch 'origin/slurm-2.5'

parents f63ebbec 8d99170f
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,9 @@ documents those changes that are of interest to users and admins.
-- launch/poe - Fix for hostlist file support with repeated host names.
-- priority/multifactor2 - Prevent possible divide by zero.
-- srun - Don't check for executable if --test-only flag is used.
-- energy - On a single node only use the last task for gathering energy.
Since we don't currently track energy usage per task (only per step).
Otherwise we get double the energy.
* Changes in Slurm 2.5.6
========================
......
......@@ -1695,6 +1695,18 @@ _wait_for_any_task(slurmd_job_t *job, bool waitflag)
if (jobacct) {
jobacctinfo_setinfo(jobacct,
JOBACCT_DATA_RUSAGE, &rusage);
/* Since we currently don't track energy
usage per task (only per step). We take
into account only the last poll of the last task.
Odds are it is the only one with
information anyway, but just to be safe we
will zero out the previous value since this
one will over ride it.
If this ever changes in the future this logic
will need to change.
*/
if (jobacct->energy.consumed_energy)
job->jobacct->energy.consumed_energy = 0;
jobacctinfo_aggregate(job->jobacct, jobacct);
jobacctinfo_destroy(jobacct);
}
......
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