From c8bb2905d3fd239cb00b7aba092cbe6add311497 Mon Sep 17 00:00:00 2001 From: Sean Keely Date: Wed, 10 Nov 2021 22:07:43 -0600 Subject: [PATCH] Correct node id assertion in pointer info. Size of the node map was used as the max node id previously. This is wrong when RVD is used. Change-Id: Ic632ec96891b92186e5b68cd53f81414db34f59f [ROCm/ROCR-Runtime commit: 19454fcf26b20577577adf5506e547f42021a0f1] --- .../rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp index 70cf00a86b..4673ae093b 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -861,7 +861,7 @@ hsa_status_t Runtime::PtrInfo(const void* ptr, hsa_amd_pointer_info_t* info, voi if (returnListData) { uint32_t count = 0; for (HSAuint32 i = 0; i < thunkInfo.NMappedNodes; i++) { - assert(mappedNodes[i] < agents_by_node_.size() && + assert(mappedNodes[i] <= max_node_id() && "PointerInfo: Invalid node ID returned from thunk."); count += agents_by_node_[mappedNodes[i]].size(); }