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
Ta zmiana jest zawarta w:
%! (template.HTML=
Gang Ba)złożyło 2021-01-19 19:46:25 -05:00
1 rodzic
18d9cca879
złożenie
7652932c38
Plik 1 zmieniony
+1
-1
+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) {
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika