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

            Bug ID: 128366
           Summary: [17 Regression][gcn]
                    libgomp.oacc-c-c++-common/vprop-2.c: Could not
                    allocate memory for GCN kernel arena since
                    r17-5759-g08f4049fce9362
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: ams at gcc dot gnu.org
  Target Milestone: ---
            Target: gcn

$ gcc -foffload=amdgcn-amdhsa -fopenacc -O2 libgomp.oacc-c-c++-common/vprop-2.c
$ ./a.out

libgomp: GCN fatal error: Could not allocate memory for GCN kernel arena
Runtime message: HSA_STATUS_ERROR_INVALID_ALLOCATION: The requested allocation
is not valid.

As bisecting shows:

Since r17-5759-g08f4049fce9362
Author: Andrew Stubbs
Date:   Thu Oct 29 16:00:00 2026 +0000
    amdgcn, libgomp: Avoid power-of-two stack stride in GCN plugin


(It fails here for -O2 -O1 and -O0, albeit in between I had PASS for -O0 and
only fails for -O2, no idea whether by chance or some later patch made it work
again with -O0. - The weekend automatic run had it also for -O0.)

Reply via email to