Skip to content
Snippets Groups Projects
Commit 64bc3c55 authored by Moe Jette's avatar Moe Jette
Browse files

Fix for srun --cpu_bind=help to work properly. Was reporting error if

task/affinity configured instead of when NOT configured. Patch from
Martin Perry
parent 42fe905d
No related branches found
No related tags found
No related merge requests found
...@@ -389,7 +389,7 @@ void slurm_sprint_mem_bind_type(char *str, mem_bind_type_t mem_bind_type) ...@@ -389,7 +389,7 @@ void slurm_sprint_mem_bind_type(char *str, mem_bind_type_t mem_bind_type)
void slurm_print_cpu_bind_help(void) void slurm_print_cpu_bind_help(void)
{ {
if (_have_task_affinity()) { if (!_have_task_affinity()) {
printf("CPU bind options not supported with current " printf("CPU bind options not supported with current "
"configuration\n"); "configuration\n");
} else { } else {
......
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