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 b0d7ed7 commit e5ac2a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
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
1 change: 0 additions & 1 deletion src/cuda/model.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ register_flag_optional(CUDA_EXTRA_FLAGS


macro(setup)
set(CMAKE_CUDA_STANDARD 17)

# XXX CMake 3.18 supports CMAKE_CUDA_ARCHITECTURES/CUDA_ARCHITECTURES but we support older CMakes
if(POLICY CMP0104)
Expand Down

0 comments on commit e5ac2a3

Please sign in to comment.