From 4692c35f349ec88c2f50be34af4d878adf2ed897 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Tue, 12 Nov 2024 15:47:32 +0800 Subject: [PATCH] Use `__restrict__` for CUDA --- stl/inc/yvals_core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stl/inc/yvals_core.h b/stl/inc/yvals_core.h index d242f28ea92..a904ea7d01e 100644 --- a/stl/inc/yvals_core.h +++ b/stl/inc/yvals_core.h @@ -2017,7 +2017,7 @@ compiler option, or define _ALLOW_RTCc_IN_STL to suppress this error. #endif // ^^^ !defined(__cpp_static_call_operator) ^^^ #ifdef __CUDACC__ // TRANSITION, CUDA 12.4 doesn't recognize __restrict -#define _RESTRICT +#define _RESTRICT __restrict__ #else // ^^^ defined(__CUDACC__) / !defined(__CUDACC__) vvv #define _RESTRICT __restrict #endif // ^^^ !defined(__CUDACC__) ^^^