kfdtest: Print a message when there is no GPU
This helps the user to troubleshoot the problem. Change-Id: If6cf42c488097011285252a6c722d3d74c0f7ce7 Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Этот коммит содержится в:
коммит произвёл
Yong Zhao
родитель
0e5c4d83e6
Коммит
4e7b2f2e27
@@ -163,6 +163,11 @@ runKfdTest() {
|
||||
|
||||
if [ "$NODE" == "" ]; then
|
||||
hsaNodes=$(getHsaNodes)
|
||||
|
||||
if [ "$hsaNodes" == "" ]; then
|
||||
echo "No GPU found in the system."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
hsaNodes=$NODE
|
||||
fi
|
||||
|
||||
Ссылка в новой задаче
Block a user