From 64bc3c558e2dcf7d5f4ace8ed021f208c3945423 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Mon, 17 Jan 2011 17:13:59 +0000 Subject: [PATCH] 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 --- src/common/slurm_resource_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/slurm_resource_info.c b/src/common/slurm_resource_info.c index 80dd2caec67..6029c2b8b06 100644 --- a/src/common/slurm_resource_info.c +++ b/src/common/slurm_resource_info.c @@ -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) { - if (_have_task_affinity()) { + if (!_have_task_affinity()) { printf("CPU bind options not supported with current " "configuration\n"); } else { -- GitLab