https://gcc.gnu.org/g:cf838e189b6a841148a8406689eb1a838e362f45

commit r17-6526-gcf838e189b6a841148a8406689eb1a838e362f45
Author: Thomas Schwinge <[email protected]>
Date:   Wed Nov 11 10:59:05 2026 +0100

    Remove 'CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE' from GCC's 'cuda.h'
    
    Subversion r271128 (Git commit 1f4c5b9bb2eb81880e2bc725435d596fcd2bdfef)
    "[OpenACC, libgomp, v6, stage1] Async-rework update" added a few 'CUresult'
    codes to GCC's 'cuda.h', including 
'CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE'.
    That one, however, isn't defined in CUDA 8.0, which GCC's 'cuda.h' currently
    corresponds to ('#define CUDA_VERSION 8000').  To avoid potential diverge in
    behavior for '-DPLUGIN_NVPTX_INCLUDE_SYSTEM_CUDA_H' configurations, remote 
the
    unused 'CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE' from GCC's 'cuda.h'.
    
            include/
            * cuda/cuda.h (CUresult): Remove
            'CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE'.

Diff:
---
 include/cuda/cuda.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/cuda/cuda.h b/include/cuda/cuda.h
index 3397f0f5cec2..007075494eb3 100644
--- a/include/cuda/cuda.h
+++ b/include/cuda/cuda.h
@@ -63,7 +63,6 @@ typedef enum {
   CUDA_ERROR_NOT_FOUND = 500,
   CUDA_ERROR_NOT_READY = 600,
   CUDA_ERROR_LAUNCH_FAILED = 719,
-  CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE = 720,
   CUDA_ERROR_NOT_PERMITTED = 800,
   CUDA_ERROR_NOT_SUPPORTED = 801,
   CUDA_ERROR_UNKNOWN = 999

Reply via email to