[all-commits] [llvm/llvm-project] af60d5: [flang][CUDA] Keep host literals from using unifie...

Zhen Wang via All-commits all-commits at lists.llvm.org
Fri Jun 12 16:25:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af60d56719aa770dda70d19f37b0451b222e89e4
      https://github.com/llvm/llvm-project/commit/af60d56719aa770dda70d19f37b0451b222e89e4
  Author: Zhen Wang <zhenw at nvidia.com>
  Date:   2026-06-12 (Fri, 12 Jun 2026)

  Changed paths:
    M flang/lib/Semantics/expression.cpp
    A flang/test/Semantics/cuf-generic-literal-host.cuf
    A flang/test/Semantics/cuf28.cuf

  Log Message:
  -----------
  [flang][CUDA] Keep host literals from using unified-memory generic distance (#201257)

Fix CUDA generic resolution under `-gpu=mem:unified` so unattributed
literals and expression temporaries are not treated as unified-memory
actuals.

Previously, a host scalar literal such as `1.0` could score as
compatible with a `DEVICE` dummy and incorrectly select the
device-scalar overload. This could pass a host stack address to a device
helper and fail at runtime. The fix applies the unified/managed memory
distance columns only to symbol-backed actuals.



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