question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New jaxlib wheels cause `ptxas` error

See original GitHub issue

Hi everyone! I’ve been using (and enjoying 😁) JAX on an university cluster for quite a while, without much problems until now.

Unfortunately since the new jaxlib wheels 0.1.66 and 0.1.67 have been released I’m not able to upgrade and keep a functioning install.

Here’s the error I get after upgrading

>>> import jax, jaxlib
>>> print(jax.version.__version__, jaxlib.version.__version__)
0.2.13 0.1.67
>>> a = jax.numpy.ones((100,100))**2
2021-05-20 10:09:06.617783: E external/org_tensorflow/tensorflow/stream_executor/gpu/asm_compiler.cc:93] You are using ptxas 8.x, but TF requires ptxas 9.x (and strongly prefers >= 9.2.88).  Compilation of XLA kernels below will likely fail.

You do not need to update CUDA; cherry-picking the ptxas binary is sufficient.
2021-05-20 10:09:06.630330: F external/org_tensorflow/tensorflow/compiler/xla/service/gpu/nvptx_compiler.cc:478] ptxas returned an error during compilation of ptx to sass: 'Internal: ptxas exited with non-zero error code 65280, output: ptxas /tmp/tempfile-kinsler-56b28778-3690660-5c2bf4b9c1e23, line 5; fatal   : Unsupported .version 6.0; current version is '5.0'
ptxas fatal   : Ptx assembly aborted due to errors
'  If the error message indicates that a file could not be written, please verify that sufficient filesystem space is provided.
Aborted (core dumped)

Reverting back to jaxlib 0.1.65 fixes the problem. The CUDA installation is non-standard (the cluster uses environment modules and I don’t have admin rights), but by setting the appropriate environment variables and paths I’ve got everything working until the new wheels came out. For completeness, here’s my nvcc

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Jan_28_19:32:09_PST_2021
Cuda compilation tools, release 11.2, V11.2.142
Build cuda_11.2.r11.2/compiler.29558016_0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkinspcommented, May 24, 2021

#6820 should have fixed this issue, although you’ll either need to rebuild jaxlib from source or wait for us to make a new release. Hope that helps!

0reactions
astanziolacommented, May 27, 2021

@hawkinsp That is amazing!! Thank you very much for helping with this, as soon as the new release is out I’ll check it out (I can’t compile on the cluster)

Read more comments on GitHub >

github_iconTop Results From Across the Web

problems installing JAX on a GCP deep learning VM with GPU
Inside python 3.7 I type 'import jax' but t I get this error: ... We pushed the new wheels, so this should now...
Read more >
JAX 是一个 TensorFlow 的简化库,它结合了 Autograd 和 XLA
Trying to pip install with other Linux architectures may lead to jaxlib not being installed alongside jax , although jax may successfully install...
Read more >
Install Alpa — Alpa 0.2.2.dev12 documentation
This page provides instructions to install alpa from Python wheels or from source ... Building the latest Alpa-modified jaxlib requires new C++17 standards....
Read more >
How to install trax, jax, jaxlib on M1 Mac on macOS 12?
I then created a new environment with python 3.9. Installation went fine, but then ran into the same error importing layers: RuntimeError: This ......
Read more >
【4.5.6】结构预测--alphafold - Sam' Note
Change jaxlib==0.1.69+cuda<111> version if this is not supported in your ... ptxas returned an error during compilation of ptx to sass: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found