https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106316
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> --- I note that the OpenMP example document has a similar example at https://github.com/OpenMP/examples-internal/pull/329 for OpenMP-Examples Issue https://github.com/OpenMP/spec/issues/3332 For that example, GCC produces device code, which according to the testcase it shouldn't. Result: The Fortran example currently fails with nvptx as Fortran 'print' is not yet supported. (Scheduled to become available. The C 'printf' is available and AMDGCN also has both.) Note: Issue/PR is unfortunately not publicly accessible. The example is not in the 5.2.1 example document, scheduled to be released really soon (for SC22, i.e. mid-Nov 22). It might become publicly available next year for SC23.