pub enum RocmChannel {
Legacy,
Stable,
Latest,
Preview,
}Expand description
ROCm release channel.
Variants§
Legacy
ROCm 7.2.4 (7.2.3 fallback) — classic amdgpu-install line (Legacy).
Stable
ROCm 7.14.0 — TheRock (Stable).
Latest
ROCm 7.14.1 — TheRock (Latest, default).
Preview
ROCm 10.1.0 — TheRock Core SDK preview (pip/tarball only).
Implementations§
Source§impl RocmChannel
impl RocmChannel
Sourcepub fn from_choice(choice: u8) -> Option<Self>
pub fn from_choice(choice: u8) -> Option<Self>
Parse from a choice number (1-4).
Sourcepub fn parse(name: &str) -> Option<Self>
pub fn parse(name: &str) -> Option<Self>
Parse a channel name (ROCM_CHANNEL); unknown values yield None.
Sourcepub fn configured() -> Self
pub fn configured() -> Self
Channel the installer targets: ROCM_CHANNEL from the environment,
else from ~/.mlstack_env, else RocmChannel::Latest. Shared by the
installer and rusty-stack update so both resolve the same target.
Sourcepub fn channel_from_env_body(body: &str) -> Option<Self>
pub fn channel_from_env_body(body: &str) -> Option<Self>
Last ROCM_CHANNEL assignment in an env file body. Understands plain
export ROCM_CHANNEL=x, the guarded form written by the env generator
(if [ -z "${ROCM_CHANNEL:-}" ]; then export ROCM_CHANNEL=x; fi), and
fish set -gx ROCM_CHANNEL x.
Sourcepub fn for_version(version: &str) -> Self
pub fn for_version(version: &str) -> Self
Channel for a detected ROCm version string.
Sourcepub fn for_version_to_channel(version: &str) -> Option<Self>
pub fn for_version_to_channel(version: &str) -> Option<Self>
Inverse of Self::version for update planning: the channel whose
pinned version equals version (e.g. "7.14.1" → Latest, "7.2.4" →
Legacy). None when no channel pins that exact version.
Sourcepub fn is_therock(&self) -> bool
pub fn is_therock(&self) -> bool
True for TheRock-based releases (7.14+), which use the multi-arch repos.
Sourcepub fn pkg_version(&self) -> &'static str
pub fn pkg_version(&self) -> &'static str
Get the classic package version string used in amdgpu-install names.
Only meaningful for the Legacy channel; TheRock uses therock_pkg_revision.
Sourcepub fn major_minor(&self) -> &'static str
pub fn major_minor(&self) -> &'static str
Get the major.minor version (e.g., “7.14”) for repo URLs and package names.
Sourcepub fn version_from_manifest(manifest: &Manifest) -> String
pub fn version_from_manifest(manifest: &Manifest) -> String
Get the version for this channel, with optional manifest override.
If a manifest is loaded, uses the manifest version for the “rocm” component. Falls back to the hardcoded version if no manifest or manifest doesn’t contain rocm.
Sourcepub fn pkg_version_from_manifest(manifest: &Manifest) -> String
pub fn pkg_version_from_manifest(manifest: &Manifest) -> String
Get the package version for this channel, with optional manifest override.
Classic (<7.14) releases map 7.2.4 -> 7.2.4.70204-1; TheRock releases
use the bare version.
Trait Implementations§
Source§impl Clone for RocmChannel
impl Clone for RocmChannel
impl Copy for RocmChannel
Source§impl Debug for RocmChannel
impl Debug for RocmChannel
Source§impl Display for RocmChannel
impl Display for RocmChannel
impl Eq for RocmChannel
Source§impl Hash for RocmChannel
impl Hash for RocmChannel
Source§impl PartialEq for RocmChannel
impl PartialEq for RocmChannel
impl StructuralPartialEq for RocmChannel
Auto Trait Implementations§
impl Freeze for RocmChannel
impl RefUnwindSafe for RocmChannel
impl Send for RocmChannel
impl Sync for RocmChannel
impl Unpin for RocmChannel
impl UnsafeUnpin for RocmChannel
impl UnwindSafe for RocmChannel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.