[all-commits] [llvm/llvm-project] e52175: [OpenMP][OMPT] Add OMPT callback for device data e...

Michael Halkenhäuser via All-commits all-commits at lists.llvm.org
Mon Feb 26 02:16:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e521752c04a479e3751003645a728667f3199d24
      https://github.com/llvm/llvm-project/commit/e521752c04a479e3751003645a728667f3199d24
  Author: Michael Halkenhäuser <MichaelGerald.Halkenhauser at amd.com>
  Date:   2024-02-26 (Mon, 26 Feb 2024)

  Changed paths:
    M openmp/libomptarget/include/OpenMP/OMPT/Interface.h
    M openmp/libomptarget/src/OpenMP/OMPT/Callback.cpp
    M openmp/libomptarget/src/device.cpp
    M openmp/libomptarget/test/ompt/callbacks.h
    M openmp/libomptarget/test/ompt/target_memcpy.c
    A openmp/libomptarget/test/ompt/target_memcpy_emi.c

  Log Message:
  -----------
  [OpenMP][OMPT] Add OMPT callback for device data exchange 'Device-to-Device' (#81991)

Since there's no `ompt_target_data_transfer_tofrom_device` (within
ompt_target_data_op_t enum) or something other that conveys the meaning
of inter-device data exchange we decided to indicate a Device-to-Device
transfer by using: optype == ompt_target_data_transfer_from_device (=3)

Hence, a device transfer may be identified e.g. by checking for: (optype
== 3) &&
(src_device_num < omp_get_num_devices()) &&
(dest_device_num < omp_get_num_devices())

Fixes: #66478



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