pub struct BuilderConfig<'builder> { /* private fields */ }Expand description
Implementationsยง
Sourceยงimpl<'builder> BuilderConfig<'builder>
impl<'builder> BuilderConfig<'builder>
Sourcepub fn set_progress_monitor(
&mut self,
progress_monitor: Box<dyn MonitorProgress>,
) -> Result<()>
pub fn set_progress_monitor( &mut self, progress_monitor: Box<dyn MonitorProgress>, ) -> Result<()>
See IBuilderConfig::setProgressMonitor The Rust bindings only allow setting the progress monitor once per builder config object
Sourcepub fn set_memory_pool_limit(&mut self, pool: MemoryPoolType, size: usize)
pub fn set_memory_pool_limit(&mut self, pool: MemoryPoolType, size: usize)
Sourcepub fn set_profiling_verbosity(&mut self, verbosity: ProfilingVerbosity)
pub fn set_profiling_verbosity(&mut self, verbosity: ProfilingVerbosity)
Sourcepub fn profiling_verbosity(&self) -> ProfilingVerbosity
pub fn profiling_verbosity(&self) -> ProfilingVerbosity
pub fn get_profiling_verbosity(&self) -> ProfilingVerbosity
use profiling_verbosity instead
Sourcepub fn set_avg_timing_iterations(&mut self, avg_timing: i32)
pub fn set_avg_timing_iterations(&mut self, avg_timing: i32)
Sourcepub fn avg_timing_iterations(&self) -> i32
pub fn avg_timing_iterations(&self) -> i32
pub fn get_avg_timing_iterations(&self) -> i32
use avg_timing_iterations instead
Sourcepub fn set_engine_capability(&mut self, capability: EngineCapability)
pub fn set_engine_capability(&mut self, capability: EngineCapability)
Sourcepub fn engine_capability(&self) -> EngineCapability
pub fn engine_capability(&self) -> EngineCapability
pub fn get_engine_capability(&self) -> EngineCapability
use engine_capability instead
pub fn get_flags(&self) -> u32
use flags instead
Sourcepub fn set_flag(&mut self, flag: BuilderFlag)
pub fn set_flag(&mut self, flag: BuilderFlag)
Sourcepub fn clear_flag(&mut self, flag: BuilderFlag)
pub fn clear_flag(&mut self, flag: BuilderFlag)
Sourcepub fn flag(&self, flag: BuilderFlag) -> bool
pub fn flag(&self, flag: BuilderFlag) -> bool
pub fn get_flag(&self, flag: BuilderFlag) -> bool
use flag instead
Sourcepub fn set_dla_core(&mut self, dla_core: i32)
pub fn set_dla_core(&mut self, dla_core: i32)
pub fn get_dla_core(&self) -> i32
use dla_core instead
Sourcepub fn set_default_device_type(&mut self, device_type: DeviceType)
pub fn set_default_device_type(&mut self, device_type: DeviceType)
Sourcepub fn default_device_type(&self) -> DeviceType
pub fn default_device_type(&self) -> DeviceType
pub fn get_default_device_type(&self) -> DeviceType
use default_device_type instead
Sourcepub fn nb_optimization_profiles(&self) -> i32
pub fn nb_optimization_profiles(&self) -> i32
pub fn get_nb_optimization_profiles(&self) -> i32
use nb_optimization_profiles instead
Sourcepub fn add_optimization_profile(
&mut self,
profile: &mut OptimizationProfile<'_>,
) -> Result<i32>
pub fn add_optimization_profile( &mut self, profile: &mut OptimizationProfile<'_>, ) -> Result<i32>
See IBuilderConfig::addOptimizationProfile. Returns the profile index (0-based) on success.
Sourcepub fn set_tactic_sources(&mut self, sources: u32) -> Result<()>
pub fn set_tactic_sources(&mut self, sources: u32) -> Result<()>
Sourcepub fn tactic_sources(&self) -> u32
pub fn tactic_sources(&self) -> u32
pub fn get_tactic_sources(&self) -> u32
use tactic_sources instead
Sourcepub fn memory_pool_limit(&self, pool: MemoryPoolType) -> usize
pub fn memory_pool_limit(&self, pool: MemoryPoolType) -> usize
pub fn get_memory_pool_limit(&self, pool: MemoryPoolType) -> usize
use memory_pool_limit instead
Sourcepub fn set_preview_feature(&mut self, feature: PreviewFeature, enable: bool)
pub fn set_preview_feature(&mut self, feature: PreviewFeature, enable: bool)
Sourcepub fn preview_feature(&self, feature: PreviewFeature) -> bool
pub fn preview_feature(&self, feature: PreviewFeature) -> bool
pub fn get_preview_feature(&self, feature: PreviewFeature) -> bool
use preview_feature instead
Sourcepub fn set_builder_optimization_level(&mut self, level: i32)
pub fn set_builder_optimization_level(&mut self, level: i32)
Sourcepub fn builder_optimization_level(&mut self) -> i32
pub fn builder_optimization_level(&mut self) -> i32
pub fn get_builder_optimization_level(&mut self) -> i32
use builder_optimization_level instead
Sourcepub fn set_hardware_compatibility_level(
&mut self,
level: HardwareCompatibilityLevel,
)
pub fn set_hardware_compatibility_level( &mut self, level: HardwareCompatibilityLevel, )
Sourcepub fn hardware_compatibility_level(&self) -> HardwareCompatibilityLevel
pub fn hardware_compatibility_level(&self) -> HardwareCompatibilityLevel
pub fn get_hardware_compatibility_level(&self) -> HardwareCompatibilityLevel
use hardware_compatibility_level instead
Sourcepub fn set_max_aux_streams(&mut self, nb_streams: i32)
pub fn set_max_aux_streams(&mut self, nb_streams: i32)
Sourcepub fn max_aux_streams(&self) -> i32
pub fn max_aux_streams(&self) -> i32
pub fn get_max_aux_streams(&self) -> i32
use max_aux_streams instead
Sourcepub fn set_runtime_platform(&mut self, platform: RuntimePlatform)
pub fn set_runtime_platform(&mut self, platform: RuntimePlatform)
Sourcepub fn runtime_platform(&self) -> RuntimePlatform
pub fn runtime_platform(&self) -> RuntimePlatform
pub fn get_runtime_platform(&self) -> RuntimePlatform
use runtime_platform instead
Sourcepub fn set_max_nb_tactics(&mut self, max_nb_tactics: i32)
pub fn set_max_nb_tactics(&mut self, max_nb_tactics: i32)
Sourcepub fn max_nb_tactics(&self) -> i32
pub fn max_nb_tactics(&self) -> i32
pub fn get_max_nb_tactics(&self) -> i32
use max_nb_tactics instead
Sourcepub fn set_tiling_optimization_level(
&mut self,
level: TilingOptimizationLevel,
) -> Result<()>
pub fn set_tiling_optimization_level( &mut self, level: TilingOptimizationLevel, ) -> Result<()>
Sourcepub fn tiling_optimization_level(&self) -> TilingOptimizationLevel
pub fn tiling_optimization_level(&self) -> TilingOptimizationLevel
pub fn get_tiling_optimization_level(&self) -> TilingOptimizationLevel
use tiling_optimization_level instead
Sourcepub fn set_l2_limit_for_tiling(&mut self, size: i64) -> Result<()>
pub fn set_l2_limit_for_tiling(&mut self, size: i64) -> Result<()>
Sourcepub fn l2_limit_for_tiling(&self) -> i64
pub fn l2_limit_for_tiling(&self) -> i64
pub fn get_l2_limit_for_tiling(&self) -> i64
use l2_limit_for_tiling instead
Sourcepub fn set_nb_compute_capabilities(
&mut self,
max_nb_compute_capabilities: i32,
) -> Result<()>
pub fn set_nb_compute_capabilities( &mut self, max_nb_compute_capabilities: i32, ) -> Result<()>
Sourcepub fn nb_compute_capabilities(&self) -> i32
pub fn nb_compute_capabilities(&self) -> i32
pub fn get_nb_compute_capabilities(&self) -> i32
use nb_compute_capabilities instead
Sourcepub fn set_compute_capability(
&mut self,
compute_capability: ComputeCapability,
index: i32,
) -> Result<()>
pub fn set_compute_capability( &mut self, compute_capability: ComputeCapability, index: i32, ) -> Result<()>
Sourcepub fn compute_capability(&self, index: i32) -> ComputeCapability
pub fn compute_capability(&self, index: i32) -> ComputeCapability
pub fn get_compute_capability(&self, index: i32) -> ComputeCapability
use compute_capability instead