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

Linux build succeeds but examples fail to run #89

Open
cfsterpka opened this issue May 9, 2021 · 1 comment
Open

Linux build succeeds but examples fail to run #89

cfsterpka opened this issue May 9, 2021 · 1 comment
Assignees
Labels

Comments

@cfsterpka
Copy link

Hi,
I'm having an issue producing runable code from GPU fit after compilation. My build environment is as follows:
OS: Ubuntu 20.04 x64
GPU device: NVIDIA GeForce GTX 1070 Mobile
CUDA driver: 460.32.03
cmake 3.14.0
gcc: 5.5.0 (also tried 7.5.0 and 9.3.0)

The build procedure I am using is:
cmake -DCMAKE_BUILD_TYPE=RELEASE -DUSE_CUBLAS=ON -DCUDA_ARCHITECTURES="8.0 8.6+PTX" -DCMAKE_C_COMPILER=gcc-5 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-11.2 ../Gpufit
make

(I modified the cmake file as described here to get cublas to work.)

The build succeeds, however when I try to run the examples via e.g. ./Simple_Example the result is:

terminate called after throwing an instance of 'std::runtime_error'
what(): no kernel image is available for execution on the device
Aborted (core dumped)

I have no problems running other cuda code compiled via nvcc.
Thanks,
Chris

@jkfindeisen jkfindeisen self-assigned this Jun 8, 2021
@jkfindeisen
Copy link
Collaborator

I cannot reproduce the problem. For me, the examples run just fine. Just googled "no kernel image is available for execution on the device" and got https://stackoverflow.com/questions/55538036/cuda-nvcc-no-kernel-image-is-available-for-execution-on-the-device-what-is.

I always use CUDA_ARCHITECTURES=All. Maybe you could try with that?

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

No branches or pull requests

2 participants