SLACKHA / pyJac

Creates C and CUDA analytical Jacobians for chemical kinetics ODE systems
http://slackha.github.io/pyJac/
MIT License
52 stars 23 forks source link

nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture' #38

Closed Tom-Y-Liu closed 4 years ago

Tom-Y-Liu commented 4 years ago

When I try to generate a python wrapper, it returns error information as follow: nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture'

My cuda version is 11.0, and using a GTX 1050ti gpu.

Any idea how to solve this?

Thanks!

image

kyleniemeyer commented 4 years ago

Hi there,

This looks like an nvcc issue; the options are listed on the docs: https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#virtual-architecture-feature-list

(nvcc has changed the available keywords for that option)

KN

On Aug 11, 2020, at 12:38 PM, T.L notifications@github.com wrote:

When I try to generate a python wrapper, it returns error information as follow: nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture'

My cuda version is 11.0, and using a GTX 1050ti gpu.

Any idea how to solve this?

Thanks!

https://user-images.githubusercontent.com/55120383/89941196-aed03e00-dbe8-11ea-971c-3f226d5a774a.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SLACKHA/pyJac/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABOPYAW4E4DA4KNQPXBDJ3SAGM4PANCNFSM4P3OI56Q.

Tom-Y-Liu commented 4 years ago

Hi there, This looks like an nvcc issue; the options are listed on the docs: https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#virtual-architecture-feature-list (nvcc has changed the available keywords for that option) KN On Aug 11, 2020, at 12:38 PM, T.L @.***> wrote: When I try to generate a python wrapper, it returns error information as follow: nvcc fatal : Value 'sm_20' is not defined for option 'gpu-architecture' My cuda version is 11.0, and using a GTX 1050ti gpu. Any idea how to solve this? Thanks! https://user-images.githubusercontent.com/55120383/89941196-aed03e00-dbe8-11ea-971c-3f226d5a774a.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#38>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABOPYAW4E4DA4KNQPXBDJ3SAGM4PANCNFSM4P3OI56Q.

Hi Kyle, Em... I am new to nvcc, how can I fix this issue? I do find "'nvcc': ['-arch=sm_20', '--ptxas-options=-v'" in the 'pyjacob_cuda_setup.py.in' file. But, no matter how I adjust the arch value, it still reports 'sm_20' error.

Tom-Y-Liu commented 4 years ago

Update: I changed all the 'sm_20' in the libgen.py file and in the 'pyjacob_cuda_setup.py.in' into 'sm_61'. The error fixed.

But new error information shows up as follows:

cl : Command line warning D9002 : ignoring unknown option '-fPIC' fatal error C1083: Cannot open include file: 'helper_cuda.h': No such file or directory

Tom-Y-Liu commented 4 years ago

Final Update: Using Linux instead of Windows, everything solved.