pub struct CudaRuntimeProbe {
pub runtime: Option<Arc<CudaLibrarySet>>,
pub evidence: Option<CudaAbiEvidence>,
pub diagnostics: Vec<String>,
}Expand description
Result of CUDA runtime discovery.
Fields§
§runtime: Option<Arc<CudaLibrarySet>>Validated loaded runtime, when discovery succeeded.
evidence: Option<CudaAbiEvidence>ABI evidence from the successful runtime or the best failed probe.
diagnostics: Vec<String>Diagnostics collected while searching dynamic libraries.
Implementations§
Source§impl CudaRuntimeProbe
impl CudaRuntimeProbe
Sourcepub fn fake_present(evidence: CudaAbiEvidence) -> Self
pub fn fake_present(evidence: CudaAbiEvidence) -> 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 CUDA provider.
Trait Implementations§
Source§impl Clone for CudaRuntimeProbe
impl Clone for CudaRuntimeProbe
Source§fn clone(&self) -> CudaRuntimeProbe
fn clone(&self) -> CudaRuntimeProbe
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 CudaRuntimeProbe
impl RefUnwindSafe for CudaRuntimeProbe
impl Send for CudaRuntimeProbe
impl Sync for CudaRuntimeProbe
impl Unpin for CudaRuntimeProbe
impl UnsafeUnpin for CudaRuntimeProbe
impl UnwindSafe for CudaRuntimeProbe
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