Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Use a scope block for CUDA_CUB_RET_IF_FAIL macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowe authored and alliepiper committed Aug 28, 2020
1 parent 53d95bc commit a0948e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thrust/system/cuda/detail/core/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
// -------
Expand Down

0 comments on commit a0948e3

Please sign in to comment.