The provided PTX was compiled with an unsupported toolchain Windows

I am new to CUDA an recently i installed it on my windows pc.

I have been running a small test with some memcpy’s and they weren’t working. 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 same but with other functions like memcpy and launchkernel):

Program hit cudaErrorUnsupportedPtxVersion (error 222) due to "the provided PTX was compiled with an unsupported toolchain." on CUDA API call to cudaMalloc.

My nvcc version:

> nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:24:09_Pacific_Daylight_Time_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0

Other command i found:

> nvidia-smi
Fri May  7 14:30:55 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.14       Driver Version: 470.14       CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name            TCC/WDDM | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ... WDDM  | 00000000:01:00.0  On |                  N/A |
| N/A   58C    P3    24W /  N/A |   1417MiB /  6144MiB |     33%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

Any help is greatly appreciated!

1 Like

Had the same error, for me what fixed it was adding a flag to the nvcc compiler:

nvcc.exe -arch=sm_75 hello_world.cu

3 Likes