File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
unified-runtime/source/adapters/hip Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -637,15 +637,16 @@ UR_APIEXPORT ur_result_t UR_APICALL urBindlessImagesImageCopyExp(
637
637
CopyExtentBytes, Stream));
638
638
#else
639
639
UR_CHECK_ERROR (hipMemcpyHtoA (
640
- (hipArray_t)pDst, pCopyRegion->dstOffset .x * PixelSizeBytes,
640
+ static_cast <hipArray_t>(pDst),
641
+ pCopyRegion->dstOffset .x * PixelSizeBytes,
641
642
static_cast <const void *>(SrcWithOffset), CopyExtentBytes));
642
643
#endif
643
644
} else if (memType == hipMemoryTypeDevice) {
644
645
void *DstWithOffset =
645
646
static_cast <void *>(static_cast <char *>(pDst) +
646
647
(PixelSizeBytes * pCopyRegion->dstOffset .x ));
647
648
UR_CHECK_ERROR (hipMemcpyHtoDAsync (
648
- ( hipDeviceptr_t) DstWithOffset,
649
+ static_cast < hipDeviceptr_t>( DstWithOffset) ,
649
650
const_cast <void *>(static_cast <const void *>(SrcWithOffset)),
650
651
CopyExtentBytes, Stream));
651
652
} else {
You can’t perform that action at this time.
0 commit comments