https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99005

            Bug ID: 99005
           Summary: libgomp runtime does not support AMD GPU offloading
                    for OpenACC directives
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kd486 at cam dot ac.uk
  Target Milestone: ---

Created attachment 50143
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50143&action=edit
Sample code with single OpenACC directive in for loop

Simple Gfortran compiled OpenACC code crashes. Code used attached and compiled
with:
gfortran -fopenacc -Wall -Wextra -foffload=amdgcn-amdhsa="-march=gfx900" -c
mymodule.f90

The server has an AMD EPYC 7742 CPU with 4 Vega 20 AMD GPUs.

Runtime error:

 ./main 

libgomp: GCN fatal error: Run-time could not be initialized
Runtime message: HSA_STATUS_ERROR_OUT_OF_RESOURCES: The runtime failed to
allocate the necessary resources. This error may also occur when the core
runtime library needs to spawn threads or create internal OS-specific events.

Code runs fine without GPU offloading, or with offloading with PGI compiler.

Reply via email to