Skip to content

Commit 776317a

Browse files
author
Hugh Delaney
committed
Add missing HostPtr arg
Removed in error.
1 parent 3c66fbe commit 776317a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/adapters/cuda/memory.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ ur_result_t migrateImageToDevice(ur_mem_handle_t Mem,
529529
if (Image.ImageDesc.type == UR_MEM_TYPE_IMAGE2D) {
530530
memset(&CpyDesc2D, 0, sizeof(CpyDesc2D));
531531
CpyDesc2D.srcMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_HOST;
532+
CpyDesc2D.srcHost = Image.HostPtr;
532533
CpyDesc2D.dstMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_ARRAY;
533534
CpyDesc2D.dstArray = ImageArray;
534535
CpyDesc2D.WidthInBytes = PixelSizeBytes * Image.ImageDesc.width;
@@ -537,6 +538,7 @@ ur_result_t migrateImageToDevice(ur_mem_handle_t Mem,
537538
} else if (Image.ImageDesc.type == UR_MEM_TYPE_IMAGE3D) {
538539
memset(&CpyDesc3D, 0, sizeof(CpyDesc3D));
539540
CpyDesc3D.srcMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_HOST;
541+
CpyDesc3D.srcHost = Image.HostPtr;
540542
CpyDesc3D.dstMemoryType = CUmemorytype_enum::CU_MEMORYTYPE_ARRAY;
541543
CpyDesc3D.dstArray = ImageArray;
542544
CpyDesc3D.WidthInBytes = PixelSizeBytes * Image.ImageDesc.width;

0 commit comments

Comments
 (0)