-
Notifications
You must be signed in to change notification settings - Fork 184
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
Ensure cuda/stream_ref can be used without a CUDA compiler #3370
Conversation
/ok to test |
/ok to test |
throw ::std::runtime_error("Failed to query stream."); | ||
# else | ||
::std::terminate(); | ||
# else |
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.
This seems like a typo. This change is needed to make builds succeed for me.
# else | |
# endif |
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.
I'm puzzled why this wasn't caught in CI, we are indeed not testing non-CUDA compilers at all .... Maybe we are not reaching that path anymore due to other PR now avoiding to include this header earlier if we are not in a CUDA compiler ?
@@ -9,7 +9,7 @@ | |||
//===----------------------------------------------------------------------===// | |||
|
|||
#ifndef _CUDA_STREAM_REF | |||
#define _CUDA_STREAM_REF | |||
# define _CUDA_STREAM_REF |
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.
Do we need to indent all these macros? I would prefer to leave those unchanged in this PR.
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.
Isn't that some effect of a recent clang-format update ?
I think this issue is fixed by #3472. @caugonnet Feel free to close if you agree. |
Description
Implementing
::cuda::__throw_cuda_error
without a CUDA compiler has some challenging, so instead we make it possible to include cuda/stream_ref without itChecklist