File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -529,6 +529,7 @@ ur_result_t migrateImageToDevice(ur_mem_handle_t Mem,
529
529
if (Image.ImageDesc .type == UR_MEM_TYPE_IMAGE2D) {
530
530
memset (&CpyDesc2D, 0 , sizeof (CpyDesc2D));
531
531
CpyDesc2D.srcMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_HOST;
532
+ CpyDesc2D.srcHost = Image.HostPtr ;
532
533
CpyDesc2D.dstMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_ARRAY;
533
534
CpyDesc2D.dstArray = ImageArray;
534
535
CpyDesc2D.WidthInBytes = PixelSizeBytes * Image.ImageDesc .width ;
@@ -537,6 +538,7 @@ ur_result_t migrateImageToDevice(ur_mem_handle_t Mem,
537
538
} else if (Image.ImageDesc .type == UR_MEM_TYPE_IMAGE3D) {
538
539
memset (&CpyDesc3D, 0 , sizeof (CpyDesc3D));
539
540
CpyDesc3D.srcMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_HOST;
541
+ CpyDesc3D.srcHost = Image.HostPtr ;
540
542
CpyDesc3D.dstMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_ARRAY;
541
543
CpyDesc3D.dstArray = ImageArray;
542
544
CpyDesc3D.WidthInBytes = PixelSizeBytes * Image.ImageDesc .width ;
You can’t perform that action at this time.
0 commit comments