#[repr(i32)]pub enum MemoryPoolType {
kWORKSPACE = 0,
kDLA_MANAGED_SRAM = 1,
kDLA_LOCAL_DRAM = 2,
kDLA_GLOBAL_DRAM = 3,
kTACTIC_DRAM = 4,
kTACTIC_SHARED_MEMORY = 5,
}Expand description
! ! \enum MemoryPoolType ! ! \brief The type for memory pools used by TensorRT. ! ! \see IBuilderConfig::setMemoryPoolLimit, IBuilderConfig::getMemoryPoolLimit !
Variants§
kWORKSPACE = 0
! ! kWORKSPACE is used by TensorRT to store intermediate buffers within an operation. ! This defaults to max device memory. Set to a smaller value to restrict tactics that use over the ! threshold en masse. For more targeted removal of tactics use the IAlgorithmSelector ! interface. !
kDLA_MANAGED_SRAM = 1
! ! kDLA_MANAGED_SRAM is a fast software managed RAM used by DLA to communicate within a layer. ! The size of this pool must be at least 4 KiB and must be a power of 2. ! This defaults to 1 MiB. ! Orin has capacity of 1 MiB per core. !
kDLA_LOCAL_DRAM = 2
! ! kDLA_LOCAL_DRAM is host RAM used by DLA to share intermediate tensor data across operations. ! The size of this pool must be at least 4 KiB and must be a power of 2. ! This defaults to 1 GiB. !
kDLA_GLOBAL_DRAM = 3
! ! kDLA_GLOBAL_DRAM is host RAM used by DLA to store weights and metadata for execution. ! The size of this pool must be at least 4 KiB and must be a power of 2. ! This defaults to 512 MiB. !
kTACTIC_DRAM = 4
! ! kTACTIC_DRAM is the device DRAM used by the optimizer to ! run tactics. On embedded devices, where host and device memory are unified, this includes all host ! memory required by TensorRT to build the network up to the point of each memory allocation. ! This defaults to 75% of totalGlobalMem as reported by cudaGetDeviceProperties when ! cudaGetDeviceProperties.embedded is true, and 100% otherwise. !
kTACTIC_SHARED_MEMORY = 5
! ! kTACTIC_SHARED_MEMORY defines the maximum sum of shared memory reserved by the driver and ! used for executing CUDA kernels. Adjust this value to restrict tactics that exceed the ! specified threshold en masse. The default value is device max capability. This value must ! be less than 1GiB. ! ! The driver reserved shared memory can be queried from cuDeviceGetAttribute(&reservedShmem, ! CU_DEVICE_ATTRIBUTE_RESERVED_SHARED_MEMORY_PER_BLOCK). ! ! Updating this flag will override the shared memory limit set by \ref HardwareCompatibilityLevel, ! which defaults to 48KiB - reservedShmem. !
Trait Implementations§
Source§impl Clone for MemoryPoolType
impl Clone for MemoryPoolType
Source§fn clone(&self) -> MemoryPoolType
fn clone(&self) -> MemoryPoolType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more