Hi Tobias, On Sun, Jan 11, 2026 at 10:14 PM Tobias Burnus <[email protected]> wrote: > > After some investigation, I've prepared the > > following patch for acc_init_device, which I believe can share most of > > its implementation with acc_init. > > I would like to leave the review of the actual patch to Thomas, who > knows OpenACC better than me. > > However, I miss the Fortran changes to > libgomp/{openacc_lib.h,openacc.f90}. Even though the added libgomp.texi > change talks about Fortran. > > Note: The entries in the map file that end with an underscore are for > Fortran – and the '_8_' to be compatible with -fdefault-integer-8. In > any case, the patch adds acc_init_device_h_ to the .map file but don't > actually provide it. (openacc.f90 creates both an .o files that is > linked to libgomp.{a,so} and module files – i.e. it contains actual > code; openacc_lib.h only declares the added routine). >
Thanks for the review! I did indeed forget to add the fortran related implementation (which includes the _h invariant) and test cases. The new patch adds both of them. Yuao
0001-libgomp-add-acc_init_device.patch
Description: Binary data
