]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libgomp/plugin/plugin-nvptx.c: Change false to NULL to fix C23 wrong-return-type...
authorTobias Burnus <tburnus@baylibre.com>
Mon, 18 Nov 2024 10:06:58 +0000 (11:06 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Mon, 18 Nov 2024 10:06:58 +0000 (11:06 +0100)
libgomp/ChangeLog:

PR libgomp/117626
* plugin/plugin-nvptx.c (nvptx_open_device): Use 'CUDA_CALL_ERET'
with 'NULL' as error return instead of 'CUDA_CALL' that returns false.

libgomp/plugin/plugin-nvptx.c

index e9a9d798fe6b88623a774c6521e27ae940951c9f..f6d7f067571464543623952a6e142c5aee17eb6b 100644 (file)
@@ -595,8 +595,10 @@ nvptx_open_device (int n)
       GOMP_PLUGIN_debug (0, "Setting \"native\" GPU thread stack size"
                         " ('CU_LIMIT_STACK_SIZE') to %u bytes\n",
                         native_gpu_thread_stack_size);
-      CUDA_CALL (cuCtxSetLimit,
-                CU_LIMIT_STACK_SIZE, (size_t) native_gpu_thread_stack_size);
+      CUDA_CALL_ERET (NULL,
+                     cuCtxSetLimit,
+                     CU_LIMIT_STACK_SIZE,
+                     (size_t) native_gpu_thread_stack_size);
     }
 
   /* OpenMP "soft stacks".  */