[all-commits] [llvm/llvm-project] c19b9c: [flang][CUDA] Only apply implicit managed attribut...
Zhen Wang via All-commits
all-commits at lists.llvm.org
Mon May 4 10:09:31 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c19b9cf35a0fbcc97f57d4f0e61756388ee79c96
https://github.com/llvm/llvm-project/commit/c19b9cf35a0fbcc97f57d4f0e61756388ee79c96
Author: Zhen Wang <zhenw at nvidia.com>
Date: 2026-05-04 (Mon, 04 May 2026)
Changed paths:
M flang/lib/Semantics/resolve-names.cpp
A flang/test/Lower/CUDA/cuda-gpu-managed-without-fcuda.f90
Log Message:
-----------
[flang][CUDA] Only apply implicit managed attribute when CUDA Fortran is enabled (#195353)
The implicit-managed tagging added in #175648 was intended for CUDA
Fortran allocatables. However, the gate was just
LanguageFeature::CudaManaged, so the tagging also fires on
non-CUDA-Fortran translation units when -gpu=mem:managed is in effect.
This patch adds a LanguageFeature::CUDA check so the implicit tagging
only fires for CUDA Fortran TUs (driver-set -fcuda or .cuf/.CUF source).
Adds a regression test that bbc -gpu=managed without -fcuda on a .f90
source must not produce any cuf.* ops or #cuf.cuda<managed> attributes.
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