Correct size of SVM node array.
Was size of the map. Needs to be size of the node id range. Change-Id: I92501ea7adca5c30dbb0fdabd2c421dea58f8d6f
This commit is contained in:
@@ -1646,7 +1646,7 @@ hsa_status_t Runtime::SetSvmAttrib(void* ptr, size_t size,
|
||||
hsa_amd_svm_attribute_pair_t* attribute_list,
|
||||
size_t attribute_count) {
|
||||
uint32_t set_attribs = 0;
|
||||
std::vector<bool> agent_seen(agents_by_node_.size(), false);
|
||||
std::vector<bool> agent_seen(max_node_id() + 1, false);
|
||||
|
||||
std::vector<HSA_SVM_ATTRIBUTE> attribs;
|
||||
attribs.reserve(attribute_count);
|
||||
|
||||
Reference in New Issue
Block a user