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

feature request: Allow setting nvcc executable via env var. #995

Open
MarcusDunn opened this issue Mar 6, 2024 · 1 comment · May be fixed by #997
Open

feature request: Allow setting nvcc executable via env var. #995

MarcusDunn opened this issue Mar 6, 2024 · 1 comment · May be fixed by #997

Comments

@MarcusDunn
Copy link

The env vars CC and CXX can be set to point to C and c++ compilers respectively, I'd like to be able to set the nvcc executable in a similar way.

CMake uses CUDACXX, which seems reasonable enough and would work for my usecase. I currently just modify PATH.

Somthing analogous to CFLAGS and CXXFLAGS for Cuda would also be nice for completions sake, but I have not found a need for it.

I could probably implement and document this myself if this feature is in scope for the project.

@NobodyXu
Copy link
Collaborator

NobodyXu commented Mar 6, 2024

I will accept a PR to add this, the env is documented in src/lib.rs

@MarcusDunn MarcusDunn linked a pull request Mar 7, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants