Hi Sergio, You can try with the environment variable CUDA_VISIBLE_DEVICES set by the gres part of slurmd.
Regards, Carles Fenoy On Fri, Feb 17, 2012 at 10:12 AM, Sergio Iserte Agut <[email protected]> wrote: > Hello, > I'm wondering if I can show the allocated GPUs such as I can show the > allocated nodes. > For instance, we have 1 node, called *compute1*, with 12 CPUs and 4 GPUs: > > *$ salloc -N1 --gres=gpu:2 bash* > *$ echo $SLURM_NODELIST* > *> compute1* > * > * > Which GPUs has been allocated? > > Regards! > * > * > * > * > > > -- -- Carles Fenoy
