[all-commits] [llvm/llvm-project] d4fe91: [flang][cuda] Add CUFAllocDelay pass to defer devi...
Zhen Wang via All-commits
all-commits at lists.llvm.org
Wed Jul 1 18:34:07 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d4fe91df8e575032b706194d06fcdd33ff3708c0
https://github.com/llvm/llvm-project/commit/d4fe91df8e575032b706194d06fcdd33ff3708c0
Author: Zhen Wang <zhenw at nvidia.com>
Date: 2026-07-01 (Wed, 01 Jul 2026)
Changed paths:
M flang/include/flang/Optimizer/Transforms/Passes.td
M flang/lib/Optimizer/Transforms/CMakeLists.txt
A flang/lib/Optimizer/Transforms/CUDA/CUFAllocDelay.cpp
A flang/test/Transforms/CUF/cuf-alloc-delay.fir
Log Message:
-----------
[flang][cuda] Add CUFAllocDelay pass to defer device descriptor allocation (#206882)
Add a new MLIR pass that delays cuf.alloc operations for allocatable
descriptor (box) types from function entry to just before their first
use. This defers cudaMallocManaged calls so that programs can call
cudaSetDevice or initialize communication libraries before any CUDA
context is created.
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