[all-commits] [llvm/llvm-project] 9c5451: [flang][cuda] Allocate the dst descriptor in data ...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Jun 10 09:43:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c54512c3ef1d9035b75a6c3005300cd84e33ef9
      https://github.com/llvm/llvm-project/commit/9c54512c3ef1d9035b75a6c3005300cd84e33ef9
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M flang-rt/lib/cuda/memory.cpp
    M flang-rt/unittests/Runtime/CUDA/Memory.cpp

  Log Message:
  -----------
  [flang][cuda] Allocate the dst descriptor in data transfer (#143437)

In a test like: 

```
integer, allocatable, device :: da(:)
allocate(a(200))
a = 2
da = a ! da is not allocated before data transfer is initiated. Allocate it with a
```

The reference compiler will allocate the data for the `da` descriptor so
the data transfer can be done properly.



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