https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125877
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Thomas Schwinge <[email protected]>: https://gcc.gnu.org/g:7759d1aaa500e36de9f87c0dc5e453787e07f051 commit r17-1993-g7759d1aaa500e36de9f87c0dc5e453787e07f051 Author: Thomas Schwinge <[email protected]> Date: Tue Jun 30 08:55:08 2026 +0200 OpenMP: Add omp_get_device_distances routine: Initialize NUMA node for NVIDIA GPUs [PR125877] Fix-up for commit 8af1592882509fbead16e30fd2d056330a9609e4 "OpenMP: Add omp_get_device_distances routine [PR125877]". Without this, 'libgomp/plugin/plugin-nvptx.c:GOMP_OFFLOAD_get_numa_node' returns random junk: /* Initialized to 0; to distinguish, save with offset. */ if (dev->numa_node != 0) return dev->numa_node > 0 ? dev->numa_node - 1 : dev->numa_node; PR libgomp/125877 libgomp/ * plugin/plugin-nvptx.c (nvptx_open_device): Initialize 'numa_node'.
