37 lines
958 B
Bash
37 lines
958 B
Bash
#!/bin/bash
|
|
echo "Testing RinHash ROCm GPU Direct Build..."
|
|
|
|
echo "1. Testing GPU library:"
|
|
if [ -f "../gpu-libs/librinhash_hip.so" ]; then
|
|
echo "✓ GPU library found"
|
|
file ../gpu-libs/librinhash_hip.so
|
|
echo "Library size:"
|
|
du -h ../gpu-libs/librinhash_hip.so
|
|
echo "Library dependencies:"
|
|
ldd ../gpu-libs/librinhash_hip.so 2>/dev/null || echo "Could not check dependencies"
|
|
else
|
|
echo "✗ GPU library not found"
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Testing ROCm environment:"
|
|
if command -v rocm-smi &> /dev/null; then
|
|
echo "✓ ROCm runtime available"
|
|
rocm-smi --showid
|
|
rocm-smi --showmeminfo vram 2>/dev/null || echo "Could not get memory info"
|
|
else
|
|
echo "✗ ROCm runtime not available"
|
|
fi
|
|
|
|
echo ""
|
|
echo "3. Testing GPU compilation:"
|
|
if command -v hipcc &> /dev/null; then
|
|
echo "✓ HIP compiler available"
|
|
hipcc --version | head -3
|
|
else
|
|
echo "✗ HIP compiler not available"
|
|
fi
|
|
|
|
echo ""
|
|
echo "GPU test completed!"
|