Replies: 5 comments 12 replies
-
I found that it's essential for the CUDA toolkit binaries to be in your |
Beta Was this translation helpful? Give feedback.
-
Hmm, I'm running Changing base image from |
Beta Was this translation helpful? Give feedback.
-
Quickfix for the particular case of running into this problem when using
I had already installed |
Beta Was this translation helpful? Give feedback.
-
Thank you, had to do some other weird things like setting flags, and moving my nvvm folder but got everything working thanks! |
Beta Was this translation helpful? Give feedback.
-
Having said this, for different reasons I had to reinstall locally everything, and I got an idea, before doing the conda install, i decided to hit nvidia-smi, turned out i got 12.2, clearly colliding with ptxas 12.3 for jax, so I figured would a quick easy GeForce driver update fix it towards 12.3? Turns out it did! So now, I hit nvidia-smi again and volila, I have 12.3, and ewhen going into jax, there is now no ptxas collindng issues! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Just wanted to share my solution to the "Couldn't invoke ptxas --version" error that I got after a recent install of jax using cuda-11.3. TLDR, I needed to install nvidia-cuda-toolkit, which provides /usr/bin/ptxas. The often mentioned
export XLA_FLAGS=--xla_gpu_cuda_data_dir=/usr/local/cuda-11.3
didn't work.Details:
With my environment of cuda-11.3 and jaxlib 0.1.66+cuda111, I launched:
and got an error
Couldn't invoke ptxas --version
. (details below)Confusingly, I had:
/usr/share/cuda-11.0/bin/ptxas
but no bin directory under
/usr/share/cuda-11.3
.Setting:
export XLA_FLAGS=--xla_gpu_cuda_data_dir=/usr/local/cuda-11.0
did not help, but doing:
cd /usr/share/cuda-11.3 && ln -s /usr/share/cuda-11.0/bin bin
did work. However, I also found that another package,
cuda-nvcc-11-0
provides ptxas, but only for cuda-11.0. I hadn't had it installed for 11.3:Ultimately, I did:
sudo apt install nvidia-cuda-toolkit
which provides
/usr/bin/ptxas
.Once nvidia-cuda-toolkit is installed, there is no need to do either the:
export XLA_FLAGS=...
or the
cd /usr/share/cuda-11.3 && ln -s /usr/share/cuda-11.0/bin bin
Beta Was this translation helpful? Give feedback.
All reactions