[Openmp-commits] [openmp] [OpenMP][OMPT] Add OMPT callback for device data exchange 'Device-to-Device' (PR #81991)

Jan Patrick Lehr via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 16 12:41:35 PST 2024


jplehr wrote:

> 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

Do we have a place to document this decision other than this PR / commit message?

https://github.com/llvm/llvm-project/pull/81991


More information about the Openmp-commits mailing list