We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db8735 commit 0b4249bCopy full SHA for 0b4249b
source/adapters/hip/enqueue.cpp
@@ -1687,8 +1687,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urEnqueueUSMMemcpy2D(
1687
if (hipRes == hipErrorInvalidValue && pDst)
1688
dstIsSystemAlloc = true;
1689
1690
- const unsigned int srcMemType{srcAttribs.memoryType};
1691
- const unsigned int dstMemType{dstAttribs.memoryType};
+ const unsigned int srcMemType{srcAttribs.type};
+ const unsigned int dstMemType{dstAttribs.type};
1692
1693
const bool srcIsHost{(srcMemType == hipMemoryTypeHost) || srcIsSystemAlloc};
1694
const bool srcIsDevice{srcMemType == hipMemoryTypeDevice};
0 commit comments