pub enum Mem<T: DeviceCopy> {
    SysMem(Vec<T>),
    BoxedSysMem(Box<[T]>),
    NumaMem(NumaMemory<T>),
    DistributedNumaMem(DistributedNumaMemory<T>),
    CudaPinnedMem(LockedBuffer<T>),
    CudaDevMem(DeviceBuffer<T>),
    CudaUniMem(UnifiedBuffer<T>),
}

Variants

SysMem(Vec<T>)

System memory allocated with Rust’s global allocator

BoxedSysMem(Box<[T]>)

System memory allocated with Rust’s global allocator but as a Rust Box

Useful for wrapping aliged memory.

NumaMem(NumaMemory<T>)

NUMA memory allocated on the specified NUMA node

DistributedNumaMem(DistributedNumaMemory<T>)

NUMA memory distributed over multiple NUMA nodes

CudaPinnedMem(LockedBuffer<T>)

CUDA pinned memory (using cudaHostAlloc())

CudaDevMem(DeviceBuffer<T>)

CUDA unified memory

CudaUniMem(UnifiedBuffer<T>)

CUDA device memory

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Lock memory

Unlock memory

Sets the protection flags of a memory region Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.