[all-commits] [llvm/llvm-project] 9d09c6: [flang][cuda] Update device descriptor on data tra...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Nov 4 13:22:27 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d09c6fd9c38a0e631e42a902ae215fb2f828da9
      https://github.com/llvm/llvm-project/commit/9d09c6fd9c38a0e631e42a902ae215fb2f828da9
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-11-04 (Mon, 04 Nov 2024)

  Changed paths:
    M flang/include/flang/Runtime/CUDA/memory.h
    M flang/lib/Optimizer/Transforms/CUFOpConversion.cpp
    M flang/runtime/CUDA/memory.cpp
    M flang/test/Fir/CUDA/cuda-data-transfer.fir

  Log Message:
  -----------
  [flang][cuda] Update device descriptor on data transfer (#114838)

When the destination of the data transfer is a global we might need to
sync the descriptor after the data transfer is done. This is the case
when the data transfer is from host/device to device as reallocation
might have happened and the descriptor on the device needs to take the
new values written on the host.

A new entry point is added `CUFDataTransferGlobalDescDesc` with the sync
when needed.



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