Skip to content

Commit

Permalink
[CUDA] Revert to C++11 for now until CMake is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalobg committed Feb 27, 2024
1 parent ee13056 commit 8cf3363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cuda/CUDAStream.cu
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
exit(e);
}

#define CU(EXPR) if (auto __e = (EXPR); __e != cudaSuccess) error(__FILE__, __LINE__, #EXPR, __e);
#define CU(EXPR) do { auto __e = (EXPR); if (__e != cudaSuccess) error(__FILE__, __LINE__, #EXPR, __e); } while(false)

__host__ __device__ constexpr size_t ceil_div(size_t a, size_t b) { return (a + b - 1)/b; }

Expand Down

0 comments on commit 8cf3363

Please sign in to comment.