How to make a gpu exclusive to a user

Hi community, do you folks know how to make an NVIDIA gpu device exclusive to a user? I know I can make it exclusive to a process by setting the exclusive mode using nvidia-smi, but how I can further make it exclusive to a user even when no process is running on it?

You can investigate linux device permissions. I don’t have a specific recipe for you, it will require some research and experimentation.

Otherwise things like job schedulers can do this (control access to a GPU).