From ea1f545fccfc89b8589984af0c55cb2e0ce6f3c3 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Wed, 17 Mar 2021 17:15:22 -0500 Subject: [PATCH] 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: 4197461b7fd96041bc9b1dc215449937c240e642] --- projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp index e9f72adb31..74f997a1cc 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp @@ -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);