rocr: Fix hsa_amd_pointer_info regression (#638)

Fix regression when hsa_amd_pointer_info is called on a pointer that was
allocated using non-VMM APIs. The helper function VMemoryPtrInfo should
return error when the address is not found so that PtrInfo does the
lookup via Thunk.
This commit is contained in:
David Yat Sin
2025-08-21 10:25:50 -04:00
کامیت شده توسط GitHub
والد 6bf5648c6d
کامیت 87b348c51d
@@ -995,7 +995,8 @@ hsa_status_t Runtime::VMemoryPtrInfo(const void* ptr, hsa_amd_pointer_info_t* in
/* Allocation not found */
info->type = HSA_EXT_POINTER_TYPE_UNKNOWN;
return HSA_STATUS_SUCCESS;
/* This is a helper function, return error to indicate ptr not found */
return HSA_STATUS_ERROR;
}
hsa_status_t Runtime::PtrInfo(const void* ptr, hsa_amd_pointer_info_t* info, void* (*alloc)(size_t),