The patch below should fix the problem and will appear in SLURM version 2.3.4
diff --git a/src/common/gres.c b/src/common/gres.c
index 4837db5..3ea29fa 100644
--- a/src/common/gres.c
+++ b/src/common/gres.c
@@ -977,7 +977,7 @@ extern int gres_plugin_node_config_unpack(Buf
buffer, char*
tmp_name, gres_context[j].gres_name);
continue;
}
- if (gres_context[j].has_file && !has_file) {
+ if (gres_context[j].has_file && !has_file && count) {
error("gres_plugin_node_config_unpack: gres/%s"
" lacks File parameter for node %s",
tmp_name, node_name);
Quoting Tommi T <[email protected]>:
> Hello
>
> Slurmctld logs following error message of nodes which doesn't have
> gres configured on Nodename-line:
>
>
> [2012-01-10T15:02:24] error: gres_plugin_node_config_unpack:
> gres/gpu lacks File parameter for node nXX
>
> nXX
>
> cat /etc/slurm/gres.conf
> name=gpu count=0
>
>
>
> Nodes which doesn't have GPU will log this line every time when new
> job is launched:
>
>
> gres/gpu unable to set CUDA_VISIBLE_DEVICES, no device files configured
>
>
> BR,
>
> Tommi
>
>