Closed edopao closed 8 months ago
Does the environment have an installation of cupy-rocm
or just cupy-cuda
? When we wrote that code, there was no clean/documented way to have cupy for both gpu types. Not sure if that changed.
cupy-cuda11x 13.0.0
>>> import cupy as cp
>>> cp.cuda.get_hipcc_path()
'/usr/bin/hipcc'
Maybe we should use this variable cp.cuda.runtime.is_hip
Yes, that seems to work!
I encountered an issue when running GT4Py with
gtfn_gpu
backend on Clariden. I run on a GPU node with Nvidia A100, but this code will select the ROCM cupy device:I suspect that CUDA was installed on Clariden with support for both Nvidia and AMD GPUs, depending on the type of node allocated by Slurm.
You can run this test:
It will produce this output: