pub struct CompatibilityContext {
pub rocm_version: String,
pub rocm_channel: String,
pub available_executors: HashSet<ExecutorKind>,
pub installed_components: HashSet<String>,
pub installed_versions: HashMap<String, String>,
pub gpu_architecture: String,
pub runtime_version: String,
}Expand description
Context about the system’s capabilities used for compatibility checks.
Fields§
§rocm_version: StringCurrent ROCm version (empty if not installed).
rocm_channel: StringActive ROCm channel (Legacy/Stable/Latest).
available_executors: HashSet<ExecutorKind>Available executor kinds on this platform.
installed_components: HashSet<String>Component IDs that are currently installed.
installed_versions: HashMap<String, String>Version map: component_id → installed version string.
gpu_architecture: StringGPU architecture (e.g., “gfx1100”).
runtime_version: StringCurrent runtime version of the binary.
Implementations§
Trait Implementations§
Source§impl Clone for CompatibilityContext
impl Clone for CompatibilityContext
Source§impl Debug for CompatibilityContext
impl Debug for CompatibilityContext
Source§impl Default for CompatibilityContext
impl Default for CompatibilityContext
Source§impl<'de> Deserialize<'de> for CompatibilityContext
impl<'de> Deserialize<'de> for CompatibilityContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompatibilityContext
impl PartialEq for CompatibilityContext
Source§impl Serialize for CompatibilityContext
impl Serialize for CompatibilityContext
impl StructuralPartialEq for CompatibilityContext
Auto Trait Implementations§
impl Freeze for CompatibilityContext
impl RefUnwindSafe for CompatibilityContext
impl Send for CompatibilityContext
impl Sync for CompatibilityContext
impl Unpin for CompatibilityContext
impl UnsafeUnpin for CompatibilityContext
impl UnwindSafe for CompatibilityContext
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 more