diff --git a/projects/clr/hipamd/src/hip_memory.cpp b/projects/clr/hipamd/src/hip_memory.cpp index 7a08b3932a..3bee6c2721 100644 --- a/projects/clr/hipamd/src/hip_memory.cpp +++ b/projects/clr/hipamd/src/hip_memory.cpp @@ -3379,6 +3379,9 @@ hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, const void ((memObj->getMemFlags() & kManagedAlloc) == kManagedAlloc) ? true : false; attributes->allocationFlags = memObj->getUserData().flags; attributes->device = memObj->getUserData().deviceId; + if (attributes->isManaged) { + attributes->type = hipMemoryTypeManaged; + } HIP_RETURN(hipSuccess); }