Use a scope block for CUDA_CUB_RET_IF_FAIL macro
MODIFY
thrust/system/cuda/detail/core/util.h
thrust/system/cuda/detail/core/util.h
@@ -652,10 +652,10 @@ namespace core {
}
#define CUDA_CUB_RET_IF_FAIL(e) \
- do { \
+ { \
auto const error = (e); \
if (cub::Debug(error, __FILE__, __LINE__)) return error; \
- } while(0);
+ }
// uninitialized
// -------

Use a scope block for CUDA_CUB_RET_IF_FAIL macro