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

Detect CUDA and nvcc compiler #31

Closed
lahwaacz opened this issue May 5, 2023 · 2 comments
Closed

Detect CUDA and nvcc compiler #31

lahwaacz opened this issue May 5, 2023 · 2 comments

Comments

@lahwaacz
Copy link

lahwaacz commented May 5, 2023

Can you add information for the detection of Nvidia's CUDA compiler (nvcc)? See https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#nvcc-identification-macro

It would be nice to also be able to detect the CUDA compilation phases (host and device code generation). A caveat is that clang can also compile CUDA and uses different macros, see https://www.llvm.org/docs/CompileCudaWithLLVM.html#detecting-clang-vs-nvcc-from-code

@jfalcou
Copy link
Owner

jfalcou commented May 5, 2023

Sounds like a good idea.

@jfalcou
Copy link
Owner

jfalcou commented May 20, 2023

Will give it a shot as we migrate to Github Action, we will then reuse the nvidia docker directly.

@jfalcou jfalcou closed this as completed in cf54075 Mar 5, 2024
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

2 participants