pub struct PtxCacheKey {
pub kernel_name: String,
pub params_hash: u64,
pub sm_version: SmVersion,
}Expand description
Cache lookup key for PTX kernels.
The key combines the kernel name, a hash of the generation parameters, and the target architecture to produce a unique filename.
Fields§
§kernel_name: StringThe kernel function name.
params_hash: u64A hash of the kernel generation parameters (tile sizes, precisions, etc.).
sm_version: SmVersionThe target GPU architecture.
Implementations§
Source§impl PtxCacheKey
impl PtxCacheKey
Sourcepub fn to_filename(&self) -> String
pub fn to_filename(&self) -> String
Converts this key to a filename suitable for disk storage.
Format: {kernel_name}_{sm}_{combined_hash:016x}.ptx
The combined hash includes both the params_hash and the full key hash
to minimize collision risk.
Trait Implementations§
Source§impl Clone for PtxCacheKey
impl Clone for PtxCacheKey
Source§fn clone(&self) -> PtxCacheKey
fn clone(&self) -> PtxCacheKey
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 PtxCacheKey
impl Debug for PtxCacheKey
Auto Trait Implementations§
impl Freeze for PtxCacheKey
impl RefUnwindSafe for PtxCacheKey
impl Send for PtxCacheKey
impl Sync for PtxCacheKey
impl Unpin for PtxCacheKey
impl UnsafeUnpin for PtxCacheKey
impl UnwindSafe for PtxCacheKey
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