Files
gogo2/start_with_gpu.sh
Dobromir Popov 81e7e6bfe6 change to CPU
2025-12-08 17:38:31 +02:00

32 lines
891 B
Bash

#!/bin/bash
# Startup script with AMD GPU gfx1151 fix
# Set AMD GPU compatibility
export HSA_OVERRIDE_GFX_VERSION=11.0.0
# Activate virtual environment
source venv/bin/activate
# Experimental Flash Efficient attention for AMD GPU (DISABLED - was causing inplace operation errors)
export TORCH_ROCM_AOTRITON_ENABLE_EXPERIMENTAL=0
echo "GPU Compatibility: HSA_OVERRIDE_GFX_VERSION=11.0.0"
echo "Experimental Features: DISABLED (was causing gradient computation errors)"
echo "Virtual environment: $(which python)"
echo ""
echo "Starting application..."
echo ""
# Start your application (modify as needed)
# python main_dashboard.py
# or
# python ANNOTATE/web/app.py
# If you want to run a specific script, pass it as argument
if [ $# -gt 0 ]; then
python "$@"
else
echo "Usage: ./start_with_gpu.sh <your_script.py>"
echo "Example: ./start_with_gpu.sh ANNOTATE/web/app.py"
fi