[all-commits] [llvm/llvm-project] 152592: [flang][cuda] Allow host variables to be defined i...
Zhen Wang via All-commits
all-commits at lists.llvm.org
Tue Apr 14 13:11:54 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 152592b346a8edddd4b6d6ac59494f81fdb7eb2c
https://github.com/llvm/llvm-project/commit/152592b346a8edddd4b6d6ac59494f81fdb7eb2c
Author: Zhen Wang <zhenw at nvidia.com>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
M flang/lib/Semantics/definable.cpp
A flang/test/Semantics/cuf26.cuf
Log Message:
-----------
[flang][cuda] Allow host variables to be defined in device subprograms under -gpu=unified (#192118)
When `-gpu=unified` (or `-gpu=mem:unified`) is enabled, host variables
should be definable in device subprograms because HMM/ATS makes all host
memory accessible from the GPU.
The definability check in `WhyNotDefinableBase` was unconditionally
rejecting host variables in device contexts. This fix skips that check
when `CudaUnified` is enabled.
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