Correct hsa_agent_iterate_isas return code for CPUs.

When no isa's are available no callbacks should be invoked.  This
is not an error and should return success.

Change-Id: Ie4048aa8cbe5c3fdf5431f6a865021549ecf8a13


[ROCm/ROCR-Runtime commit: 4197461b7f]
此提交包含在:
Sean Keely
2021-03-17 17:15:22 -05:00
父節點 465ada0234
當前提交 ea1f545fcc
+1 -1
查看文件
@@ -1547,7 +1547,7 @@ hsa_status_t hsa_agent_iterate_isas(
const Isa *isa_object = agent_object->isa();
if (!isa_object) {
return HSA_STATUS_ERROR_INVALID_AGENT;
return HSA_STATUS_SUCCESS;
}
return callback(Isa::Handle(isa_object), data);