diff options
author | Tobias Burnus <tburnus@baylibre.com> | 2024-11-18 11:06:58 +0100 |
---|---|---|
committer | Tobias Burnus <tburnus@baylibre.com> | 2024-11-18 11:06:58 +0100 |
commit | e7e3d1838f7cfb4a9fca711d735d8f5ea47d16dc (patch) | |
tree | c29e2a504cdeddcfd13008feaa87ed85b127fc80 | |
parent | 45a3277149d95a51cf9109cab87ee39a7dce73e2 (diff) | |
download | gcc-e7e3d1838f7cfb4a9fca711d735d8f5ea47d16dc.zip gcc-e7e3d1838f7cfb4a9fca711d735d8f5ea47d16dc.tar.gz gcc-e7e3d1838f7cfb4a9fca711d735d8f5ea47d16dc.tar.bz2 |
libgomp/plugin/plugin-nvptx.c: Change false to NULL to fix C23 wrong-return-type error [PR117626]
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.
-rw-r--r-- | libgomp/plugin/plugin-nvptx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c index e9a9d79..f6d7f06 100644 --- a/libgomp/plugin/plugin-nvptx.c +++ b/libgomp/plugin/plugin-nvptx.c @@ -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". */ |