pub struct RocmRuntimeProbe {
pub runtime: Option<Arc<RocmLibrarySet>>,
pub evidence: Option<RocmAbiEvidence>,
pub diagnostics: Vec<String>,
}Expand description
Result of ROCm runtime discovery.
Fields§
§runtime: Option<Arc<RocmLibrarySet>>Validated loaded runtime, when discovery succeeded.
evidence: Option<RocmAbiEvidence>ABI evidence from the successful runtime or the best failed probe.
diagnostics: Vec<String>Diagnostics collected while searching dynamic libraries.
Implementations§
Source§impl RocmRuntimeProbe
impl RocmRuntimeProbe
Sourcepub fn fake_present(evidence: RocmAbiEvidence) -> Self
pub fn fake_present(evidence: RocmAbiEvidence) -> Self
Builds a successful probe from validated evidence without library handles. This is intended for deterministic fake-loader tests.
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Returns true when discovery validated a usable ROCm provider.
Trait Implementations§
Source§impl Clone for RocmRuntimeProbe
impl Clone for RocmRuntimeProbe
Source§fn clone(&self) -> RocmRuntimeProbe
fn clone(&self) -> RocmRuntimeProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RocmRuntimeProbe
impl RefUnwindSafe for RocmRuntimeProbe
impl Send for RocmRuntimeProbe
impl Sync for RocmRuntimeProbe
impl Unpin for RocmRuntimeProbe
impl UnsafeUnpin for RocmRuntimeProbe
impl UnwindSafe for RocmRuntimeProbe
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