I've given this out a few times. Let's add an entry about vis nodes to our documentation. Here's the slurm prologue we use to attach the gpu to the display.
if [[ "$SLURM_LOCALID" == "0" && "$SLURM_JOB_GRES" == *"vis"* ]]; then
if [ -n "$CUDA_VISIBLE_DEVICES" ]; then
FIRSTGPU=$(echo $CUDA_VISIBLE_DEVICES | tr ',' "\n" | head -1)
setsid /usr/bin/X :${FIRSTGPU} -noreset >& /dev/null &
sleep 2
if [ -n "$DISPLAY" ]; then
echo "export OLDDISPLAY=$DISPLAY"
fi
echo "export DISPLAY=:$FIRSTGPU"
fi
fi
I've given this out a few times. Let's add an entry about
vis
nodes to our documentation. Here's the slurm prologue we use to attach the gpu to the display.┆Issue is synchronized with this Asana task by Unito