Skip to content

Commit 44a276f

Browse files
Use __restrict__ for CUDA (#5079)
1 parent 6e56c12 commit 44a276f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stl/inc/yvals_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2017,7 +2017,7 @@ compiler option, or define _ALLOW_RTCc_IN_STL to suppress this error.
20172017
#endif // ^^^ !defined(__cpp_static_call_operator) ^^^
20182018

20192019
#ifdef __CUDACC__ // TRANSITION, CUDA 12.4 doesn't recognize __restrict
2020-
#define _RESTRICT
2020+
#define _RESTRICT __restrict__
20212021
#else // ^^^ defined(__CUDACC__) / !defined(__CUDACC__) vvv
20222022
#define _RESTRICT __restrict
20232023
#endif // ^^^ !defined(__CUDACC__) ^^^

0 commit comments

Comments
 (0)