[slurm-users] CUDA vs OpenCL

Williams, Gareth (IM&T, Black Mountain) Gareth.Williams at csiro.au
Thu May 6 08:00:03 UTC 2021

The post has me thinking so I did a little searching... AMD have an offering that supports OpenCL and they are not NVIDIA. They use a different approach:
FWIW I did not yet see anything there about cgroups and enforced device visibility/constraints vs playing nicely with environment variables.

For reference, I have no AMD affiliation and little to no direct experience.

It is pretty easy to also find what else supports OpenCL (Wikipedia?). What environment to honor seems to me to mostly be a software choice and most of the software is from vendors, albeit sometimes being open source or using on or relying on open source components or layers.


-----Original Message-----
From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Valerio Bellizzomi
Sent: Thursday, 6 May 2021 5:21 PM
To: slurm-users at lists.schedmd.com
Subject: Re: [slurm-users] CUDA vs OpenCL

On Wed, 2021-04-28 at 10:56 +0200, Valerio Bellizzomi wrote:
> Greetings,
> I see here https://slurm.schedmd.com/gres.html#GPU_Management that 
> CUDA_VISIBLE_DEVICES is available for NVIDIA GPUs, what about OpenCL 
> GPUs?

Lack of followup lets me conclude that there isn't an OpenCL equivalent of CUDA_VISIBLE_DEVICES. It is unfortunate that this open source software is committed to a single gpu supplier.

More information about the slurm-users mailing list