Expand description
Provides trait defintion and implementations of a Device
Modules§
- cpu
- Cpu device and allocation
Traits§
- Default
Device Allocator - Defines the default allocator for a device.
For instance, The default allocator for
cpu::Cpuisstd::alloc::Global - Device
- Represents a physical device that can host memory.
For example:
cpu::Cpu, [cuda::Cuda] - Device
Allocator - An Allocator in a specific device.
All
std::alloc::Allocators areDeviceAllocator<Device=cpu::Cpu> - Device
Ptr - Represents a type safe device-based pointer.
For the CPU, this will be just
*mut T.