pub struct KernelArtifactLocator { /* private fields */ }Expand description
Locates staged CUDA kernel artifacts in build, package, or override dirs.
Implementations§
Source§impl KernelArtifactLocator
impl KernelArtifactLocator
pub fn new( cubin_dir: Option<PathBuf>, package_kernels_dir: Option<PathBuf>, out_dir: Option<PathBuf>, ) -> Self
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Build a locator from the current process environment.
Precedence matches runtime loading:
XLOG_CUBIN_DIR- binary-adjacent
kernels/ OUT_DIR
Trait Implementations§
Source§impl Clone for KernelArtifactLocator
impl Clone for KernelArtifactLocator
Source§fn clone(&self) -> KernelArtifactLocator
fn clone(&self) -> KernelArtifactLocator
Returns a duplicate of the value. Read more
1.0.0 · 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 KernelArtifactLocator
impl Debug for KernelArtifactLocator
Source§impl Default for KernelArtifactLocator
impl Default for KernelArtifactLocator
Source§fn default() -> KernelArtifactLocator
fn default() -> KernelArtifactLocator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KernelArtifactLocator
impl RefUnwindSafe for KernelArtifactLocator
impl Send for KernelArtifactLocator
impl Sync for KernelArtifactLocator
impl Unpin for KernelArtifactLocator
impl UnsafeUnpin for KernelArtifactLocator
impl UnwindSafe for KernelArtifactLocator
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