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

Cannot set NVCC FLAGS by environment variable #298

Open
brooks0517 opened this issue Feb 28, 2021 · 1 comment
Open

Cannot set NVCC FLAGS by environment variable #298

brooks0517 opened this issue Feb 28, 2021 · 1 comment

Comments

@brooks0517
Copy link

cannot pass nvcc(cuda) flags to gloo by environment variable, such as '-D_GLIBCXX_USE_CXX11_ABI=0'.
It's not convenient when compile gloo as third party, such as when compiling PyTorch.

@yichi-yang
Copy link

It seems this line blocks propagation of CMAKE_{C,CXX}_FLAGS (e.g. -D_GLIBCXX_USE_CXX11_ABI=0). You can try commenting it out to get it to compile with PyTorch. There is a related issue in the PyTorch repo. It will be helpful if someone can point out on which platform do we need the set(CUDA_PROPAGATE_HOST_FLAGS OFF) line?

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