remove emojis from console
This commit is contained in:
@@ -7,32 +7,32 @@ echo ""
|
||||
# Check if AMD GPU devices are available
|
||||
echo "Checking AMD GPU devices..."
|
||||
if [[ -e /dev/kfd ]]; then
|
||||
echo "✅ /dev/kfd (AMD GPU compute) is available"
|
||||
echo " /dev/kfd (AMD GPU compute) is available"
|
||||
else
|
||||
echo "❌ /dev/kfd not found - AMD GPU compute not available"
|
||||
echo " /dev/kfd not found - AMD GPU compute not available"
|
||||
fi
|
||||
|
||||
if [[ -e /dev/dri/renderD128 ]] || [[ -e /dev/dri/card0 ]]; then
|
||||
echo "✅ /dev/dri (AMD GPU graphics) is available"
|
||||
echo " /dev/dri (AMD GPU graphics) is available"
|
||||
else
|
||||
echo "❌ /dev/dri not found - AMD GPU graphics not available"
|
||||
echo " /dev/dri not found - AMD GPU graphics not available"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Checking user groups..."
|
||||
if groups | grep -q video; then
|
||||
echo "✅ User is in 'video' group for GPU access"
|
||||
echo " User is in 'video' group for GPU access"
|
||||
else
|
||||
echo "⚠️ User is not in 'video' group - may need: sudo usermod -aG video $USER"
|
||||
echo " User is not in 'video' group - may need: sudo usermod -aG video $USER"
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "Testing Docker with AMD GPU..."
|
||||
# Test if docker can access AMD GPU devices
|
||||
if docker run --rm --device /dev/kfd:/dev/kfd --device /dev/dri:/dev/dri alpine ls /dev/kfd /dev/dri 2>/dev/null | grep -q kfd; then
|
||||
echo "✅ Docker can access AMD GPU devices"
|
||||
echo " Docker can access AMD GPU devices"
|
||||
else
|
||||
echo "❌ Docker cannot access AMD GPU devices"
|
||||
echo " Docker cannot access AMD GPU devices"
|
||||
echo " Try: sudo chmod 666 /dev/kfd /dev/dri/*"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user