-
Notifications
You must be signed in to change notification settings - Fork 59
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
tuner: Fix missing config.h include #362
tuner: Fix missing config.h include #362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that #351 has the same fix and integrates with clang-tidy to prevent this in perpetuity.
Why did this pass distcheck given the unguarded usage of ncclInvalidUsage here? |
I think it's because tl;dr |
Incorrect. The first include in any |
890e1c3
to
8476fb9
Compare
The failure looks like a real issue:
|
To make autoconf config.h useful, it needs to be the first include in any .c file. Fix a couple of occurances that were missed. With those fixups, there's no need for the bandaid includes in some of the header files, so remove those as well. Signed-off-by: Brian Barrett <[email protected]>
Fail compilation if neither definition was found rather than having a fall-through case. Signed-off-by: Raghu Raja <[email protected]>
8476fb9
to
b13a103
Compare
Without this, we were incorrectly including neuron headers instead of CUDA ones when HAVE_CUDA was not defined. Also fail compilation if neither definition was found rather than having a fall-through case.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.