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>


[ROCm/ROCR-Runtime commit: 4e7b2f2e27]
Dieser Commit ist enthalten in:
Yong Zhao verfasst und Yong Zhao committed 2020-03-04 15:00:47 -05:00
1 Ursprung 8769cf0d20
Commit fbec350744
1 Datei geändert
+5
@@ -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