pub struct RocmRuntimeLoader { /* private fields */ }Expand description
Real dynamic loader using platform ROCm shared libraries.
Implementations§
Source§impl RocmRuntimeLoader
impl RocmRuntimeLoader
Sourcepub fn with_search_dirs(search_dirs: Vec<PathBuf>) -> Self
pub fn with_search_dirs(search_dirs: Vec<PathBuf>) -> Self
Builds a loader that first searches explicit directories.
Sourcepub fn with_search_dirs_only(search_dirs: Vec<PathBuf>) -> Self
pub fn with_search_dirs_only(search_dirs: Vec<PathBuf>) -> Self
Builds a loader restricted to explicit directories. This is used to prove fail-closed behavior when vendor libraries are unavailable.
Sourcepub fn with_observed_gfx_targets(self, targets: Vec<String>) -> Self
pub fn with_observed_gfx_targets(self, targets: Vec<String>) -> Self
Supplies capsule-observed AMD targets without spawning a host tool.
Trait Implementations§
Source§impl Clone for RocmRuntimeLoader
impl Clone for RocmRuntimeLoader
Source§fn clone(&self) -> RocmRuntimeLoader
fn clone(&self) -> RocmRuntimeLoader
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 moreSource§impl Debug for RocmRuntimeLoader
impl Debug for RocmRuntimeLoader
Source§impl Default for RocmRuntimeLoader
impl Default for RocmRuntimeLoader
Source§impl DynamicRocmLoader for RocmRuntimeLoader
impl DynamicRocmLoader for RocmRuntimeLoader
Source§fn discover(&self) -> Result<RocmRuntimeProbe, RocmLoadError>
fn discover(&self) -> Result<RocmRuntimeProbe, RocmLoadError>
Performs ROCm runtime discovery.
Auto Trait Implementations§
impl Freeze for RocmRuntimeLoader
impl RefUnwindSafe for RocmRuntimeLoader
impl Send for RocmRuntimeLoader
impl Sync for RocmRuntimeLoader
impl Unpin for RocmRuntimeLoader
impl UnsafeUnpin for RocmRuntimeLoader
impl UnwindSafe for RocmRuntimeLoader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RocmProbePort for Twhere
T: DynamicRocmLoader + ?Sized,
impl<T> RocmProbePort for Twhere
T: DynamicRocmLoader + ?Sized,
Source§fn probe_rocm(&self) -> Result<RocmRuntimeProbe, RocmLoadError>
fn probe_rocm(&self) -> Result<RocmRuntimeProbe, RocmLoadError>
Returns a capsule-owned ROCm probe without ambient rediscovery.