CuPy GPU Linux CUDA help #10902
-
Hi, I'm currently trying to get spaCy to utilize the GPU (8 x NVIDIA RTX A5000 PCIe 4.0 GPU) on a X86 Linux machine running Ubuntu 20.04.4. I get an error when running I can install the packages, but when the code runs and calls import cupy
arr = cupy.zeros((5,)) Gives the error
I then tried set The command
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It probably isn't necessary to set If you're sure that CUDA is installed correctly, I'd suggest going through the cupy install instructions to see if there are any useful tips for similar environments or similar error messages: https://docs.cupy.dev/en/stable/install.html In particular, be sure that you don't have more than one cupy package installed, since it doesn't work if you have both |
Beta Was this translation helpful? Give feedback.
It probably isn't necessary to set
LD_LIBRARY_PATH
if you only have one version of CUDA installed and you've installed in a standard way (through your package manager likeapt
) and you're sure it's in yourPATH
. If you can callnvcc --version
your path is probably okay.If you're sure that CUDA is installed correctly, I'd suggest going through the cupy install instructions to see if there are any useful tips for similar environments or similar error messages:
https://docs.cupy.dev/en/stable/install.html
In particular, be sure that you don't have more than one cupy package installed, since it doesn't work if you have both
cupy
andcupy-cuda113
installed.