feat: enhance ROCm installation process and backend resolution in LocalAGI scripts

This commit is contained in:
John Doe
2026-03-04 00:18:51 -05:00
parent 55de0ad144
commit 63615ded07
2 changed files with 16 additions and 6 deletions

View File

@@ -132,9 +132,9 @@ Pin: release o=repo.radeon.com
Pin-Priority: 600
EOF
msg_info "Installing ROCm runtime packages"
$STD apt update || return 1
$STD apt install -y rocm || return 1
msg_info "Installing ROCm runtime packages (this may take several minutes)"
apt update || return 1
apt install -y rocm || return 1
ldconfig || true
msg_ok "Installed ROCm runtime packages"
}
@@ -211,9 +211,11 @@ function update_script() {
fi
# Re-evaluate backend each update in case hardware/override changed.
msg_info "Resolving LocalAGI backend"
resolve_backend
BACKEND="${RESOLVED_BACKEND:-cpu}"
msg_info "Backend detection: ${BACKEND_DETECTION_SUMMARY:-unavailable}"
msg_ok "Resolved LocalAGI backend: ${BACKEND}"
if [[ ! -f /opt/localagi/.env ]]; then
msg_warn "Missing /opt/localagi/.env. Recreate by running install script again."
exit