Simplify pointer info version check.
Change-Id: I0ed363f1261ffc041547f313970ca67298ace56c
This commit is contained in:
@@ -687,8 +687,8 @@ hsa_status_t Runtime::PtrInfo(void* ptr, hsa_amd_pointer_info_t* info, void* (*a
|
||||
|
||||
hsa_amd_pointer_info_t retInfo;
|
||||
|
||||
// check output struct is at least as large as the first info revision.
|
||||
if (info->size < 40) return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
// check output struct has an initialized size.
|
||||
if (info->size == 0) return HSA_STATUS_ERROR_INVALID_ARGUMENT;
|
||||
|
||||
bool returnListData =
|
||||
((alloc != nullptr) && (num_agents_accessible != nullptr) && (accessible != nullptr));
|
||||
|
||||
مرجع در شماره جدید
Block a user