[Openmp-commits] [PATCH] D137225: [OpenMP][libomptarget] Fix AsyncInfoTy object in omp_target_memcpy

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 2 09:04:00 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG59a41809d85e: [OpenMP][libomptarget] Fix AsyncInfoTy object in omp_target_memcpy (authored by kevinsala, committed by tianshilei1992).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137225/new/

https://reviews.llvm.org/D137225

Files:
  openmp/libomptarget/src/api.cpp


Index: openmp/libomptarget/src/api.cpp
===================================================================
--- openmp/libomptarget/src/api.cpp
+++ openmp/libomptarget/src/api.cpp
@@ -190,7 +190,7 @@
       Rc = SrcDev.retrieveData(Buffer, SrcAddr, Length, AsyncInfo);
     }
     if (Rc == OFFLOAD_SUCCESS) {
-      AsyncInfoTy AsyncInfo(SrcDev);
+      AsyncInfoTy AsyncInfo(DstDev);
       Rc = DstDev.submitData(DstAddr, Buffer, Length, AsyncInfo);
     }
     free(Buffer);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137225.472638.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221102/a059061d/attachment.bin>


More information about the Openmp-commits mailing list