pub enum MemorySpace {
Global,
Shared,
Local,
Constant,
Param,
}Expand description
PTX memory address spaces.
Variants§
Global
Global device memory.
Shared memory (per-block scratchpad).
Local
Local memory (per-thread, spills to DRAM).
Constant
Constant memory (read-only, cached).
Param
Parameter memory (kernel arguments).
Implementations§
Source§impl MemorySpace
impl MemorySpace
Sourcepub const fn as_ptx_str(&self) -> &'static str
pub const fn as_ptx_str(&self) -> &'static str
Returns the PTX modifier string (e.g., ".global", ".shared").
Trait Implementations§
Source§impl Clone for MemorySpace
impl Clone for MemorySpace
Source§fn clone(&self) -> MemorySpace
fn clone(&self) -> MemorySpace
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 MemorySpace
impl Debug for MemorySpace
Source§impl Hash for MemorySpace
impl Hash for MemorySpace
Source§impl PartialEq for MemorySpace
impl PartialEq for MemorySpace
impl Copy for MemorySpace
impl Eq for MemorySpace
impl StructuralPartialEq for MemorySpace
Auto Trait Implementations§
impl Freeze for MemorySpace
impl RefUnwindSafe for MemorySpace
impl Send for MemorySpace
impl Sync for MemorySpace
impl Unpin for MemorySpace
impl UnsafeUnpin for MemorySpace
impl UnwindSafe for MemorySpace
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