https://gcc.gnu.org/g:a5d8ce023ea62e87209c97cec27abd962d8bddb9
commit r17-6528-ga5d8ce023ea62e87209c97cec27abd962d8bddb9 Author: Thomas Schwinge <[email protected]> Date: Wed Nov 11 11:01:59 2026 +0100 Align 'CU_MEMHOSTALLOC_DEVICEMAP' in GCC's 'cuda.h' to CUDA definition Minor fix-up for commit 131d18e928a3ea1ab2d3bf61aa92d68a8a254609 "libgomp/nvptx: Prepare for reverse-offload callback handling": CUDA defines 'CU_MEMHOSTALLOC_DEVICEMAP' as plain '0x02', not '0x02U'. To avoid potential diverge in behavior for '-DPLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' configurations, align 'CU_MEMHOSTALLOC_DEVICEMAP' in GCC's 'cuda.h'. include/ * cuda/cuda.h (CU_MEMHOSTALLOC_DEVICEMAP): '#define' to '0x02'. Diff: --- include/cuda/cuda.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/cuda/cuda.h b/include/cuda/cuda.h index d3cf192a253c..b41538f0b0fc 100644 --- a/include/cuda/cuda.h +++ b/include/cuda/cuda.h @@ -123,7 +123,8 @@ enum { #define CU_LAUNCH_PARAM_END ((void *) 0) #define CU_LAUNCH_PARAM_BUFFER_POINTER ((void *) 1) #define CU_LAUNCH_PARAM_BUFFER_SIZE ((void *) 2) -#define CU_MEMHOSTALLOC_DEVICEMAP 0x02U + +#define CU_MEMHOSTALLOC_DEVICEMAP 0x02 enum { CU_STREAM_DEFAULT = 0,
