SWDEV-348820 - Fix hipPointerAttribute_t incompatibility

- Use hipPointerAttribute_t.type instead of hipPointerAttribute_t.memoryType

Change-Id: I3bf1c0758bdae987213ba7de62247dd420ef4cc9


[ROCm/hipother commit: 6767dbd769]
此提交包含在:
Rakesh Roy
2022-08-04 17:27:12 +05:30
提交者 Rakesh Roy
父節點 42dc455ced
當前提交 2c1a3a1dbc
+3 -3
查看文件
@@ -2227,13 +2227,13 @@ inline static hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attribut
#endif
switch (memType) {
case cudaMemoryTypeDevice:
attributes->memoryType = hipMemoryTypeDevice;
attributes->type = hipMemoryTypeDevice;
break;
case cudaMemoryTypeHost:
attributes->memoryType = hipMemoryTypeHost;
attributes->type = hipMemoryTypeHost;
break;
case cudaMemoryTypeManaged:
attributes->memoryType = hipMemoryTypeManaged;
attributes->type = hipMemoryTypeManaged;
break;
default:
return hipErrorInvalidValue;