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.

RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain.

See original GitHub issue

We are attempting to train a neural net using Colab’s GPU offerings. When getting paired with an A100 GPU, we experience the following issue:

RuntimeError: CUDA error: the provided PTX was compiled with an unsupported toolchain.
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.

To verify that it wasn’t something to do with the actual program we were running, we ran the same program on a GCP instance and with a Colab V100. In both cases, the program ran fine without issue/as expected.

To further verify that the program wasn’t the issue, we ran the following code snippet:

import torch
torch.tensor([0,1],device="cuda")

And had the same issue.

Is anyone else experiencing this issue?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:31 (8 by maintainers)

github_iconTop GitHub Comments

8reactions
craigcitrocommented, Nov 24, 2021

For anyone here for JAX issues: a quick workaround until we can get a fix out is to run

!pip install https://storage.googleapis.com/jax-releases/cuda111/jaxlib-0.1.71+cuda111-cp37-none-manylinux2010_x86_64.whl

and then restart your kernel (ctrl-m . or Runtime -> Restart runtime).

7reactions
x4nth055commented, Dec 2, 2021

Fun fact: Now I’m no longer getting an A100 after the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"provided PTX was compiled with an unsupported toolchain ...
Hello all, This morning, I was suddenly facing a provided PTX was compiled with an unsupported toolchain error. I came across this post...
Read more >
the provided PTX was compiled with an unsupported toolchain
When I run a python file, containing a machine learning model, I get the following error. (pytorch) [s.1915438@cl1 aneurysm]$ srun python ...
Read more >
CUDA - the provided PTX was compiled with an unsupported ...
This indicates that the provided PTX was compiled with an unsupported toolchain. The most common reason for this, is the PTX was generated...
Read more >
[Solved] A problem with hashcat
Whenever I try to run hashcat I get this error. Code: cuLinkAddData(): the provided PTX was compiled with an unsupported toolchain.
Read more >
the provided PTX was compiled with an unsupported toolchain
I tried running cuda-memcheck tst.exe and oh surprise there were errors. This is one of the error i get (The rest are the...
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