| Summary: | gres:shard GPUs are not exclusive with gres:gpu | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | wookayin |
| Component: | GPU | Assignee: | Jacob Jenson <jacob> |
| Status: | OPEN --- | QA Contact: | |
| Severity: | 6 - No support contract | ||
| Priority: | --- | CC: | michael |
| Version: | 23.11.x | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| Site: | -Other- | Slinky Site: | --- |
| Alineos Sites: | --- | Atos/Eviden Sites: | --- |
| Confidential Site: | --- | Coreweave sites: | --- |
| Cray Sites: | --- | DS9 clusters: | --- |
| Google sites: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | NoveTech Sites: | --- |
| Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Tzag Elita Sites: | --- |
| Linux Distro: | --- | Machine Name: | |
| CLE Version: | Version Fixed: | ||
| Target Release: | --- | DevPrio: | --- |
| Emory-Cloud Sites: | --- | ||
|
Description
wookayin
2023-04-08 08:10:27 MDT
The documentation says
> Note the same GPU can be allocated either as a GPU type of GRES or as a shard type of GRES, but not both. In other words, once a GPU has been allocated as a gres/gpu resource it will not be available as a gres/shard. Likewise, once a GPU has been allocated as a gres/shard resource it will not be available as a gres/gpu.
and the behavior is not like this description, so I guess this is simply a bug.
I found that the `AutoDetect=nvml` line in gres.conf makes a difference -- with this line added, everything works as expected; a gres/gpu allocated GPU won't be available to gres/shard and vice versa. Not sure why the resource allocation works unexpectedly rather than an error, or what exactly happens under the hood without this config option (there is no warning/error), but this can be still confusing. I am having this issue as well. It's possible to use up all the available shards and then consume the GPUs as a separate resource, leading to an overuse of resources. Slurm 22.05.3 on Rocky 8.8 Kind regards, Michael I have re-visited this issue on 24.11.1 and it now seems to have been resolved. I tried to submit a --gpus=1 and --gres=shard:1 job at the same time and they would not run together. I think this is the correct behaviour. Kind regards, Michael |