Skip to content
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

Fix for CUDA Error "no kernel image" #2

Open
pyramid3d opened this issue Feb 20, 2021 · 0 comments
Open

Fix for CUDA Error "no kernel image" #2

pyramid3d opened this issue Feb 20, 2021 · 0 comments

Comments

@pyramid3d
Copy link

pyramid3d commented Feb 20, 2021

When running with a clean compile I get this error:

Starting...
ERROR /data/transfer/HashDAG/src/dag_tracer.cu:135: cuda error "no kernel image is available for execution on the device"

This because my hardware only supports CUDA compute capability 5.0.
Adding the following lines to CMakeLists.txt and clean compiling resolves the issue. This will make sure that various compute capacity images are generated:

if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
  set(CMAKE_CUDA_ARCHITECTURES 35 50 61 72)
endif()

On a side note: Setting the -gencode arch=compute_50,code=sm_50 flags to the correct version is not removing the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant