Is there any way to get slurm status to report the actual user instead of the “cryosparcuser” account? As we scale up our cluster and cryosparc usage, it would be great to be able to track users via slurm instead of just seeing the cryosparc user account listed for every job. Seeing a giant list of “cryosparcuser” jobs is not terribly useful, and it take time for admins to go into cryosparc and figure out which job belongs to whom.
If you’re using partitions with SLURM, you could make a lane for each user via cryoSPARC, and have that lane be on the user’s partition. So you could then sort by partition instead of user, and see that. I believe with one of the more recent updates, cryoSPARC added the ability to restrict users to specific lanes.
Very good. This is close enough to what we need. I can add the directive {{ cryosparc_username }} in cluster_script.sh and get better visibility for user job mapping.
available_devs=“”
for devidx in (seq 0 15);
do
if [[ -z (nvidia-smi -i $devidx --query-compute-apps=pid --format=csv,noheader) ]] ; then
if [[ -z “$available_devs” ]] ; then
available_devs=$devidx
else
available_devs=$available_devs,$devidx
fi
fi
done
export CUDA_VISIBLE_DEVICES=$available_devs