build on rockm
This commit is contained in:
36
rin/miner/rocm-direct-output/integration/test-gpu.sh
Normal file
36
rin/miner/rocm-direct-output/integration/test-gpu.sh
Normal file
@@ -0,0 +1,36 @@
|
||||
#!/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!"
|
Reference in New Issue
Block a user