You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Value 'sm_89' is not defined for option 'gpu-architecture' error #440
My version)
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Tue_Mar__8_18:36:24_Pacific_Standard_Time_2022
Cuda compilation tools, release 11.6, V11.6.124
Build cuda_11.6.r11.6/compiler.31057947_0
Python 3.8.18
window 11
When I run hello_gpu.py, an error appears.
nvcc fatal : Value 'sm_89' is not defined for option 'gpu-architecture'
Traceback (mostrecentcalllast):
File"hello_gpu.py", line8, in<module>mod=SourceModule("""
File "C:\Users\mypath\anaconda3\envs\mypath\lib\site-packages\pycuda-2022.2.2-py3.8-win-amd64.egg\pycuda\compiler.py", line 355, in __init__
cubin = compile(
File "C:\Users\mypath\anaconda3\envs\mypath\lib\site-packages\pycuda-2022.2.2-py3.8-win-amd64.egg\pycuda\compiler.py", line 304, in compile
return compile_plain(source, options, keep, nvcc, cache_dir, target)
File "C:\Users\mypath\anaconda3\envs\mypath\lib\site-packages\pycuda-2022.2.2-py3.8-win-amd64.egg\pycuda\compiler.py", line 154, in compile_plain
raise CompileError(
pycuda.driver.CompileError: nvcc compilation of C:\Users\mypath\AppData\Local\Temp\tmpy1bccsgl\kernel.cu failed
[command: nvcc --cubin -arch sm_89 -m64 -IC:\Users\mypath\anaconda3\envs\mypath\lib\site-packages\pycuda-2022.2.2-py3.8-win-amd64.egg\pycuda\cuda kernel.cu]
[stdout:
nvcc fatal : Value 'sm_89' is not defined for option 'gpu-architecture'
For what reason? Environment variables are set.
Should I upgrade cuda vesrion?
If you have a solution, please tell me.
Activity