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>
This commit is contained in:
Yong Zhao
2020-02-12 18:03:54 -05:00
committed by Yong Zhao
parent 0e5c4d83e6
commit 4e7b2f2e27
+5
View File
@@ -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