[all-commits] [llvm/llvm-project] b5ce7a: [flang][cuda] Avoid generating data transfer when ...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Sep 10 14:07:47 PDT 2024


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

  Changed paths:
    M flang/lib/Evaluate/tools.cpp
    M flang/test/Lower/CUDA/cuda-data-transfer.cuf

  Log Message:
  -----------
  [flang][cuda] Avoid generating data transfer when calling size intrinsic (#108081)

cuf.data_transfer was wrongly generated when calling the `size`
intrinsic on a device allocatable variable. Since the descriptor is
available on the host, there is no transfer needed.

Add `DescriptorInquiry` in the `CollectCudaSymbolsHelper` to filter out
symbols that are not needed for the transfer decision to be made.



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