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: 19454fcf26]
Ta zmiana jest zawarta w:
%! (template.HTML=
Sean Keely)złożyło 2021-11-10 22:09:24 -06:00
1 rodzic
0ed7eac560
złożenie
c8bb2905d3
Plik 1 zmieniony
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika