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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user