- Remove 8 unused systemd service files from coordinator-api/systemd/ - aitbc-adaptive-learning.service (port 8005) - aitbc-advanced-ai.service - aitbc-enterprise-api.service - aitbc-gpu-multimodal.service (port 8003) - aitbc-marketplace-enhanced.service (port 8006) - aitbc-modality-optimization.service (port 8004) - aitbc-multimodal.service (port 8002) - aitbc-openclaw-enhanced.service (port 8007
33 lines
940 B
Bash
Executable File
33 lines
940 B
Bash
Executable File
#!/bin/bash
|
|
# Start GPU Miner Client
|
|
|
|
echo "=== AITBC GPU Miner Client Startup ==="
|
|
echo "Starting GPU miner client..."
|
|
echo ""
|
|
|
|
# Check if GPU is available
|
|
if ! command -v nvidia-smi &> /dev/null; then
|
|
echo "WARNING: nvidia-smi not found, GPU may not be available"
|
|
fi
|
|
|
|
# Show GPU info
|
|
if command -v nvidia-smi &> /dev/null; then
|
|
echo "=== GPU Status ==="
|
|
nvidia-smi --query-gpu=name,memory.used,memory.total,utilization.gpu,temperature.gpu --format=csv,noheader,nounits
|
|
echo ""
|
|
fi
|
|
|
|
# Check if coordinator is running
|
|
echo "=== Checking Coordinator API ==="
|
|
if curl -s http://localhost:9080/health > /dev/null 2>&1; then
|
|
echo "✓ Coordinator API is running on port 9080"
|
|
else
|
|
echo "✗ Coordinator API is not accessible on port 9080"
|
|
echo " The miner will wait for the coordinator to start..."
|
|
fi
|
|
|
|
echo ""
|
|
echo "=== Starting GPU Miner ==="
|
|
cd /home/oib/windsurf/aitbc
|
|
exec python3 scripts/gpu/gpu_miner_host.py
|