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:
@@ -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),
|
||||
|
||||
مرجع در شماره جدید
Block a user