From cb1346ddd5e9e93891c77c766947153d931a561f Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Tue, 14 Jan 2025 09:57:03 +0100 Subject: [PATCH] Make `__cuda/api_wrapper.h` safe to include from host TU --- libcudacxx/include/cuda/std/__cuda/api_wrapper.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libcudacxx/include/cuda/std/__cuda/api_wrapper.h b/libcudacxx/include/cuda/std/__cuda/api_wrapper.h index 61dc291b1ce..d6d6a9d256b 100644 --- a/libcudacxx/include/cuda/std/__cuda/api_wrapper.h +++ b/libcudacxx/include/cuda/std/__cuda/api_wrapper.h @@ -21,13 +21,11 @@ # pragma system_header #endif // no system header -#if _CCCL_CUDA_COMPILER(CLANG) +#if _CCCL_HAS_CUDA_COMPILER # include -#endif // _CCCL_CUDA_COMPILER(CLANG) -#include +# include -#if _CCCL_HAS_CUDA_COMPILER # define _CCCL_TRY_CUDA_API(_NAME, _MSG, ...) \ { \ const ::cudaError_t __status = _NAME(__VA_ARGS__); \