File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -659,8 +659,6 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageCopyExp(
659
659
enqueueEventsWait (hQueue, Stream, numEventsInWaitList, phEventWaitList);
660
660
661
661
// We have to use a different copy function for each image dimensionality.
662
- // All the async copy function should be treated as synchronous because of
663
- // the explicit call to cuStreamSynchronize at the end
664
662
665
663
if (imageCopyFlags == UR_EXP_IMAGE_COPY_FLAG_HOST_TO_DEVICE) {
666
664
if (pImageDesc->type == UR_MEM_TYPE_IMAGE1D) {
@@ -834,6 +832,10 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageCopyExp(
834
832
}
835
833
} else {
836
834
// imageCopyFlags == UR_EXP_IMAGE_COPY_FLAG_DEVICE_TO_DEVICE
835
+
836
+ // All the following async copy function calls should be treated as
837
+ // synchronous because of the explicit call to cuStreamSynchronize at
838
+ // the end
837
839
if (pImageDesc->type == UR_MEM_TYPE_IMAGE1D) {
838
840
CUDA_MEMCPY2D cpy_desc = {};
839
841
cpy_desc.srcXInBytes = srcOffset.x ;
You can’t perform that action at this time.
0 commit comments