feat: update ROCm installation commands to use standardized functions
This commit is contained in:
@@ -174,8 +174,8 @@ Pin-Priority: 600
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
msg_info "Installing ROCm runtime packages (this may take several minutes)"
|
msg_info "Installing ROCm runtime packages (this may take several minutes)"
|
||||||
apt update || return 1
|
$STD apt update || return 1
|
||||||
apt install -y rocm || return 1
|
$STD apt install -y rocm || return 1
|
||||||
ldconfig || true
|
ldconfig || true
|
||||||
msg_ok "Installed ROCm runtime packages"
|
msg_ok "Installed ROCm runtime packages"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -182,11 +182,11 @@ Pin-Priority: 600
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
msg_info "Installing ROCm runtime packages (this may take several minutes)"
|
msg_info "Installing ROCm runtime packages (this may take several minutes)"
|
||||||
if ! retry_cmd 3 5 apt update; then
|
if ! retry_cmd 3 5 apt_update_cmd; then
|
||||||
msg_warn "ROCm apt repository update failed"
|
msg_warn "ROCm apt repository update failed"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if ! retry_cmd 3 10 apt install -y rocm; then
|
if ! retry_cmd 3 10 apt_install_cmd rocm; then
|
||||||
msg_warn "ROCm runtime package installation failed"
|
msg_warn "ROCm runtime package installation failed"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user