build on rockm

This commit is contained in:
Dobromir Popov
2025-09-05 22:28:14 +03:00
parent f62fbd3730
commit 856faefc1a
32 changed files with 5198 additions and 330 deletions

View 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!"