libhsakmt: Correct number of io_links

Inside Docker, when limit GPU number to one, it may cause node
numIOLinks bigger than total node number.

Signed-off-by: Gang Ba <gaba@amd.com>
Change-Id: Ib84f2f05f8e0c70e48b9043b79aec02b5a214bbe


[ROCm/ROCR-Runtime commit: 7652932c38]
Этот коммит содержится в:
Gang Ba
2021-01-19 19:46:25 -05:00
родитель d5bb0690f8
Коммит deb1bd7a90
+1 -1
Просмотреть файл
@@ -1861,7 +1861,7 @@ retry:
link_id++;
}
/* sysfs specifies all the io links. Limit the number to valid ones */
num_ioLinks = link_id;
temp_props[i].node.NumIOLinks = link_id;
}
if (num_p2pLinks) {