[slurm-users] [External] Re: Whether I can replace value of the variable when use srun

Chaofeng Zhang zhangcf1 at lenovo.com
Thu Aug 30 10:25:06 MDT 2018


Sorry, for the variable replacement,  for 17.02,  even I don’t set CUDA_VISIBLE_DEVICES=NoDevFiles  in the srun, it is the same result.

From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Chaofeng Zhang
Sent: Friday, August 31, 2018 12:16 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: [External] Re: [slurm-users] Whether I can replace value of the variable when use srun

I found it is a bug in slurm 17.11.7, if I run the same command in 17.02, it can be replaced,  the below is the command run under slurm 17.02
[root at head ~]# export CUDA_VISIBLE_DEVICES=0,1
[root at head ~]# srun -N1 -n1 --nodelist=head --export=CUDA_VISIBLE_DEVICES=NoDevFiles,ALL env|grep CUDA
CUDA_VISIBLE_DEVICES=NoDevFiles
CUDA_HOME=/usr/local/cuda

From: Chaofeng Zhang
Sent: Friday, August 31, 2018 12:13 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com<mailto:slurm-users at lists.schedmd.com>>
Subject: Whether I can replace value of the variable when use srun

export  CUDA_VISIBLE_DEVICES=0,1
srun -N1 -n1 --nodelist=head --export=CUDA_VISIBLE_DEVICES=NoDevFiles,ALL env|grep CUDA

The srun result is CUDA_VISIBLE_DEVICES=0,1,  how could I replace CUDA_VISIBLE_DEVICES with NoDevFiles.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180830/6cb5be3f/attachment-0001.html>


More information about the slurm-users mailing list