[all-commits] [llvm/llvm-project] e2e49e: [flang][cuda] Record implicit pinned attribution i...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Tue Sep 22 04:34:39 PDT 2026


  Branch: refs/heads/users/ergawy/pinned-implicit-modfile
  Home:   https://github.com/llvm/llvm-project
  Commit: e2e49e7d1f785d8eb533604da6aa33bb370f7f30
      https://github.com/llvm/llvm-project/commit/e2e49e7d1f785d8eb533604da6aa33bb370f7f30
  Author: ergawy <kareem.ergawy at gmail.com>
  Date:   2026-09-22 (Tue, 22 Sep 2026)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/CUDA/cuda-pinned-implicit-modfile.cuf

  Log Message:
  -----------
  [flang][cuda] Record implicit pinned attribution in module files

Under -gpu=mem:pinned an unattributed ALLOCATABLE is attributed as pinned by
the compiler, the same way -gpu=mem:managed attributes one as managed, but
only the latter recorded that it had done so. The module file therefore spelled
an implicitly applied PINNED the same as one the user wrote, and a reader
treated it as a user requirement: adding -gpu=mem:pinned to a module's build
rejected its OpenACC-only consumers over an attribute the user never wrote.

Record the attribution for pinned as well, so it is written as
PINNED(IMPLICIT) and consumers can tell the two apart.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list