Skip to content

Commit

Permalink
Make __cuda/api_wrapper.h safe to include from host TU
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jan 14, 2025
1 parent 06a54a0 commit cb1346d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libcudacxx/include/cuda/std/__cuda/api_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@
# pragma system_header
#endif // no system header

#if _CCCL_CUDA_COMPILER(CLANG)
#if _CCCL_HAS_CUDA_COMPILER
# include <cuda_runtime_api.h>
#endif // _CCCL_CUDA_COMPILER(CLANG)

#include <cuda/std/__exception/cuda_error.h>
# include <cuda/std/__exception/cuda_error.h>

#if _CCCL_HAS_CUDA_COMPILER
# define _CCCL_TRY_CUDA_API(_NAME, _MSG, ...) \
{ \
const ::cudaError_t __status = _NAME(__VA_ARGS__); \
Expand Down

0 comments on commit cb1346d

Please sign in to comment.