Module device

Module device 

Source
Expand description

Provides trait defintion and implementations of a Device

Modules§

cpu
Cpu device and allocation

Traits§

DefaultDeviceAllocator
Defines the default allocator for a device. For instance, The default allocator for cpu::Cpu is std::alloc::Global
Device
Represents a physical device that can host memory. For example: cpu::Cpu, [cuda::Cuda]
DeviceAllocator
An Allocator in a specific device. All std::alloc::Allocators are DeviceAllocator<Device=cpu::Cpu>
DevicePtr
Represents a type safe device-based pointer. For the CPU, this will be just *mut T.