https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97332
Bug ID: 97332 Summary: [gcn] GCN_NUM_GANGS/GCN_NUM_WORKERS override compile-time constants Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- In openacc programs, dimensions are either dynamic or hardcoded. If the dimensions are hardcoded, and there are builtins returning the size of these dimensions, the builtins are folded in fold_internal_goacc_dim. Changing the dimensions in the plugin then invalidates the folding. I'm guessing this should be fixed, or at least documented in the plugin (with perhaps even a warning).