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

CUDA-enabled card failed #116

Open
salsoman opened this issue Sep 20, 2024 · 0 comments
Open

CUDA-enabled card failed #116

salsoman opened this issue Sep 20, 2024 · 0 comments

Comments

@salsoman
Copy link

Hi,
I am trying to build nifty reg on an ubuntu 22.04lts server with a6000 gpus which have peoperly functional nvidia-smi nvcc --version responses, and work for other GPU applications, but cmake keeps failing with the error

-- Found CUDA: /usr/local/cuda (found version "12.3")
CMake Warning at reg-lib/cuda/CMakeLists.txt:25 (message):
The code to check the presence of a CUDA-enabled card failed.

And attempts to ignore this and continue with make gives the following fatal error:

In file included from /data2/niftyreg/reg-lib/Platform.cpp:7:
/data2/niftyreg/reg-lib/cuda/CUDAContextSingletton.h:5:10: fatal error: cuda.h: No such file or directory
5 | #include "cuda.h"
| ^~~~~~~~
compilation terminated.

cuda.h for verion 12.3 is present under /usr/local/cuda-12.3/include/cuda.h

Any advice on how to compile would be greatly appreciated!

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