GPU usage priority in Ubuntu

I have NVIDIA TITANX GPU in my server. OS: ubuntu 14.04 lts 64 bit. I have created multiple login users in ubuntu. i want set priority for the gpu usage for all users. eg: if user a has highest priority than user b can not use gpu when user a is using. user b can access gpu when user a is not using. multiple user use gpu through ssh.