OpenMP: Fix omp_get_device_from_uid, minor cleanup (was: Re: [Patch][v2] OpenMP: Add get_device_from_uid/omp_get_uid_from_device routines)

2024-09-20 Thread Tobias Burnus
Hi Thomas, hello all, the attached follow-up patch does: * It fixes an issue (thinko) related to Fortran and \0 terminated, which fails for at least substring strings. * Includes some minor fixes, e.g. ensuring the device is initialized in omp_get_uid_from_device, the superfluous 'omp_', or

Re: [Patch][v2] OpenMP: Add get_device_from_uid/omp_get_uid_from_device routines

2024-09-20 Thread Thomas Schwinge
Hi Tobias! On 2024-09-19T19:11:32+0200, Tobias Burnus wrote: > OpenMP: Add get_device_from_uid/omp_get_uid_from_device routines '[omp_]get_device_from_uid'. > Those TR13/OpenMP 6.0 routines permit a reproducible offloading to > a specific device by mapping an OpenMP device number to a > unique

Re: [Patch][v2] OpenMP: Add get_device_from_uid/omp_get_uid_from_device routines

2024-09-20 Thread Tobias Burnus
Now applied as r15-3730-gbf4a5efa80ef84 / https://gcc.gnu.org/r15-3730-gbf4a5efa80ef84 (with a few minor tailing whitespace/indentation issues fixed). Post-commit comments are still highly welcome. By tomorrow, you will find the  documentation at https://gcc.gnu.org/onlinedocs/libgomp/ (routi

[Patch][v2] OpenMP: Add get_device_from_uid/omp_get_uid_from_device routines

2024-09-19 Thread Tobias Burnus
Minor update – addressing the issues that Andre raised (thanks!): 'Add.' → 'New functions.' in the ChangeLog for 'fortran.c' and otherwise libgomp.texi changes, only: A bunch of typo fixes (preexisting and in the new text). I also added an made-up example UUID for the GPUs, which should help