Skip to content
Snippets Groups Projects
Commit f34dec24 authored by Tim McMullan's avatar Tim McMullan Committed by Tim Wickberg
Browse files

Fix a gpus_per_task parsing issue in srun.

This only occurs when using --gpus-per-task with multiple gpu types in
combination with --cpus-per-gpu.

Bug 13713
parent 4af11d9f
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,8 @@ documents those changes that are of interest to users and administrators.
-- slurmrestd/operations - fix memory leak when resolving bad path.
-- sacctmgr - improve performance of query generation for archive load.
-- sattach - allow connecting to interactive steps with JOBID.interactive
-- Fix for --gpus-per-task parsing when using --cpus-per-gpu and multiple gpu
types in the same request.
 
* Changes in Slurm 21.08.8
==========================
......
......@@ -236,14 +236,14 @@ static job_step_create_request_msg_t *_create_job_step_create_request(
tok = strtok_r(tmp_str, ",", &save_ptr);
while (tok) {
int tmp;
int tmp = 0;
sep = xstrchr(tok, ':');
if (sep)
tmp =+ atoi(sep + 1);
tmp += atoi(sep + 1);
else
tmp =+ atoi(tok);
tmp += atoi(tok);
if (tmp > 0)
gpus_per_task =+ tmp;
gpus_per_task += tmp;
tok = strtok_r(NULL, ",", &save_ptr);
}
xfree(tmp_str);
......
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