Skip to content

Commit 0b4249b

Browse files
author
Georgi Mirazchiyski
committed
Update pointer attribute memory type to work with ROCm 6
1 parent 0db8735 commit 0b4249b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/adapters/hip/enqueue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,8 +1687,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMMemcpy2D(
16871687
if (hipRes == hipErrorInvalidValue && pDst)
16881688
dstIsSystemAlloc = true;
16891689

1690-
const unsigned int srcMemType{srcAttribs.memoryType};
1691-
const unsigned int dstMemType{dstAttribs.memoryType};
1690+
const unsigned int srcMemType{srcAttribs.type};
1691+
const unsigned int dstMemType{dstAttribs.type};
16921692

16931693
const bool srcIsHost{(srcMemType == hipMemoryTypeHost) || srcIsSystemAlloc};
16941694
const bool srcIsDevice{srcMemType == hipMemoryTypeDevice};

0 commit comments

Comments
 (0)