[OpenMP][libomptarget] Fix AsyncInfoTy object in omp_target_memcpy
authorKevin Sala Penadés <kevin.sala@bsc.es>
Wed, 2 Nov 2022 16:03:34 +0000 (12:03 -0400)
committerShilei Tian <i@tianshilei.me>
Wed, 2 Nov 2022 16:03:49 +0000 (12:03 -0400)
commit59a41809d85ed0e9e073f6b425cc915f6c231e10
tree48340b33ea33b43afbe0be2f501a07289f61dc02
parent943b4c90a9644dbceea231a86d59520dd3c2a6db
[OpenMP][libomptarget] Fix AsyncInfoTy object in omp_target_memcpy

The AsyncInfoTy should be created in the same device as the async operation will be issued. In omp_target_memcpy, the AsyncInfoTy for the host to destination device transfer was created referring to the source device.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D137225
openmp/libomptarget/src/api.cpp