Skip to content

Commit

Permalink
Use __restrict__ for CUDA (#5079)
Browse files Browse the repository at this point in the history
  • Loading branch information
frederick-vs-ja authored Nov 14, 2024
1 parent 6e56c12 commit 44a276f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stl/inc/yvals_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__) ^^^
Expand Down

0 comments on commit 44a276f

Please sign in to comment.