-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compilation error ptxas fatal : Value 'sm_30' is not defined for option 'gpu-name' #747
Comments
I am facing the same issue as well! Any pointers on how to resolve this issue? |
Downgrading nvcc to 10.2 solved it for me. |
I also have the same issue using cuda 11.4 & 11.7 |
Based on the line: It seems like it's detecting a cuda compiler version of 10.1. My usual CUDA install is done via the normal .run method, installed in /usr/local/cuda...., so You might have an old installation of nvidia-cuda-toolkit installed via apt-get (like me). To check, run: I suspect you have that package installed and the version is 10.1, so you'll want to remove it.
|
This solved it for me |
Hi,
Reinstalling
Don't understand why this would happen considering After uninstalling nvidia-cuda-toolkit again, I tried to follow: https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_local Any ideas? |
@Zador-Pataki |
I add this content in my CMakeLists.txt and it can work.
|
This worked. I had manually installed cuda-12.1 from the nvidia website. However, the package "nvidia-cuda-toolkit" still makes it point to 10.1. |
same issue competently unrelated to the project (just trying to compile the most basic openmp on gpu) |
31/5000 |
you can add these into CMakeLists.txt to solve this: |
This is much more reasonable for me and worked! |
I'm receiving the following build error on Ubuntu 22.04.
instant-ngp$ cmake . -B build
Is there any way to fix this ?
The text was updated successfully, but these errors were encountered: