I am looking for the commands that will restrict the user foo to use up to 10 Cores and 2 GPUs only,
nodeA 5 core + nodeB 5core + 1 GPU from nodeA + 1 GPU from nodeB
If he submitting job with 11 core reject the job,
If he submitting multiple 10 Core job with 1 or 2 GPU then if resource free within the 5 core + 5 core + 1 GPU + 1 GPU then allow the job to executed if not put it in the queue.