# Slurm: Gres vs --gpus configuration, syntax preference on A100

**URL:** <https://ask.cyberinfrastructure.org/t/slurm-gres-vs-gpus-configuration-syntax-preference-on-a100/1652>\
**Category:** Discussion Zone\
**Tags:** systems, intel, slurm, gpu, qow, researcher, nvidia, amd\
**Created:** [November 30, 2020, 7:41pm UTC](https://ask.cyberinfrastructure.org/t/slurm-gres-vs-gpus-configuration-syntax-preference-on-a100/1652 "2020-11-30T19:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stryder](https://ask.cyberinfrastructure.org/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@stryder](https://ask.cyberinfrastructure.org/u/stryder)\
**Post date:** [November 30, 2020, 7:41pm UTC](https://ask.cyberinfrastructure.org/t/slurm-gres-vs-gpus-configuration-syntax-preference-on-a100/1652/1 "2020-11-30T19:41:40Z")

</div>

Previously many sites used the GRES syntax for user facing commands to request GPU using slurm. Now with the newer --gpus syntax is there a preference? Can the two co-exist at the same time for users bringing older codes into new systems or does it have to be one or the other?

For those implementing A100 in slurm, what have you used? Do you rely on the nvml library or utility to find the GPUs on a node or do you explicitly configure the GPU into slurm.conf or gres.conf?

---

<div class="post-metadata">

**Author:** ![stryder](https://ask.cyberinfrastructure.org/letter_avatar_proxy/v4/letter/s/f07891/32.png) [@stryder](https://ask.cyberinfrastructure.org/u/stryder)\
**Post date:** [November 30, 2020, 7:42pm UTC](https://ask.cyberinfrastructure.org/t/slurm-gres-vs-gpus-configuration-syntax-preference-on-a100/1652/2 "2020-11-30T19:42:22Z")

</div>

I see a few sites with more than one cluster and “old” vs “new” syntax such as [https://researchcomputing.princeton.edu/pytorch](https://researchcomputing.princeton.edu/pytorch)
