We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ced494 commit 53d95bcCopy full SHA for 53d95bc
thrust/system/cuda/detail/core/util.h
@@ -652,7 +652,10 @@ namespace core {
652
}
653
654
#define CUDA_CUB_RET_IF_FAIL(e) \
655
- if (cub::Debug((e), __FILE__, __LINE__)) return e;
+ do { \
656
+ auto const error = (e); \
657
+ if (cub::Debug(error, __FILE__, __LINE__)) return error; \
658
+ } while(0);
659
660
// uninitialized
661
// -------
0 commit comments