Skip to content

Value 'sm_89' is not defined for option 'gpu-architecture' error #440

Description

@Yangjaehong

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 (most recent call last):
  File "hello_gpu.py", line 8, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions