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
This commit is contained in:
Gang Ba committed 2021-01-19 19:46:25 -05:00
1 parent 18d9cca879
commit 7652932c38
1 file changed
+1 -1
+1 -1
View File
@@ -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) {