🐛[Bug Report]: Disallow gpus=non-zero with cpus=0
🐛 Describe the bug
Requesting 1 GPU without any CPU cores is a non-viable option combination. I think we should explicitly disallow this. It maybe possible to run GPU jobs with minimal resources in some cases - however we do NOT want to get into a badly packed node, where all the CPUs are allocated to other jobs, and the 1-gpu, 0-CPU also ends up using cores without explicitly requesting.
$ cscope job-gen task slurm --partition h200 --gpus-per-task 1 --cpus-per-task=0 { "cpus_per_task": 12, "gpus_per_task": 1, "memory": "124G", "tasks_per_node": 1, "slurm_partition": "h200", "mem_gb": 124 }
System information
No response
https://github.com/facebookresearch/clusterscope/pull/109 addresses this by allowing only one of CPU/GPU request based on what's provided by --cpus-per-task or --gpus-per-task
https://github.com/facebookresearch/clusterscope/pull/112 fixes it for the python lib entrypoint and add some tests to the job-gen request validator for CLI and lib