diff --git a/openmp/libomptarget/src/api.cpp b/openmp/libomptarget/src/api.cpp --- a/openmp/libomptarget/src/api.cpp +++ b/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);