-
Notifications
You must be signed in to change notification settings - Fork 126
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
clang: Disable unused-function warnings for 3rd-party NCCL library #599
Conversation
If you're going to express opinions, at least act on them. "I am not a fan of warnings. I would request that all warnings in our own code are resolved, while it is OK to disable warnings in 3rd-party code after checking them once." --@frankseide |
Relax. |
Sorry, did not realize that this was meant for me. Looking now. |
Thanks @frankseide |
Reverting for now as this seems to break NCCL compilation with CUDA with g++ |
Also confirmed on my local machine, I think the CXXFLAGS overwrite is removing some options? |
Feel free to revert; I'll try again on that machine. Funny thing is I tried passing CXXFLAGS through too and that's still broken?? |
Could it be it's removing options from the Make? Like Fpic? |
Actually you just need to update your NCCL submodule: https://github.com/NVIDIA/nccl/blob/master/makefiles/common.mk |
Downgraded on purpose, higher version have a bug for models above 2GB, unfortunately. Mentioned this in Rikhards issue. We may need to make a special branch in our fork? |
Ugh yeah I just re-read #597. Is a special branch of NCCL overkill for compiler warnings on clang? |
Actually a lot of warnings from clang are unused functions inside NCCL. Not all of them, but it's a start.