[all-commits] [llvm/llvm-project] 5f62ba: [flang][cuda] Fix ignore_tkr(m) to also cover CUDA...

Zhen Wang via All-commits all-commits at lists.llvm.org
Tue Apr 14 20:01:27 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f62bae5666c3cad5439587fa0f330b92467241a
      https://github.com/llvm/llvm-project/commit/5f62bae5666c3cad5439587fa0f330b92467241a
  Author: Zhen Wang <zhenw at nvidia.com>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    M flang/docs/Directives.md
    M flang/include/flang/Support/Fortran.h
    M flang/lib/Support/Fortran.cpp
    M flang/test/Semantics/cuf10.cuf

  Log Message:
  -----------
  [flang][cuda] Fix ignore_tkr(m) to also cover CUDA unified attribute (#192131)

The ignore_tkr(m) directive suppresses CUDA managed attribute checking
on dummy arguments, but it was not covering the unified attribute. This
caused a spurious error when passing a plain host array to a unified
dummy with ignore_tkr(m):
```
error: dummy argument 'x=' has ATTRIBUTES(UNIFIED) but its associated actual argument has no CUDA data attribute
```
Extend the IgnoreTKR::Managed check in AreCompatibleCUDADataAttrs to
accept Unified in addition to Managed and no-attribute.



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