pub struct JitOptions<'a> {Show 13 fields
pub max_registers: Option<u32>,
pub threads_per_block: Option<u32>,
pub wall_time: Option<&'a mut f32>,
pub info_log_buffer: Option<&'a mut [u8]>,
pub error_log_buffer: Option<&'a mut [u8]>,
pub optimization_level: Option<u32>,
pub target_from_cuda_context: Option<()>,
pub target: Option<JitTarget>,
pub fallback_strategy: Option<JitFallback>,
pub generate_debug_info: Option<bool>,
pub log_verbose: Option<bool>,
pub generate_line_info: Option<bool>,
pub cache_mode: Option<JitCacheMode>,
}Fields§
§max_registers: Option<u32>§threads_per_block: Option<u32>§wall_time: Option<&'a mut f32>§info_log_buffer: Option<&'a mut [u8]>§error_log_buffer: Option<&'a mut [u8]>§optimization_level: Option<u32>§target_from_cuda_context: Option<()>§target: Option<JitTarget>§fallback_strategy: Option<JitFallback>§generate_debug_info: Option<bool>§log_verbose: Option<bool>§generate_line_info: Option<bool>§cache_mode: Option<JitCacheMode>Implementations§
Source§impl<'a> JitOptions<'a>
impl<'a> JitOptions<'a>
pub fn with_max_registers(self, value: u32) -> Self
pub fn with_threads_per_block(self, value: u32) -> Self
pub fn with_wall_time(self, value: &'a mut f32) -> Self
pub fn with_info_log(self, buffer: &'a mut [u8]) -> Self
pub fn with_error_log(self, buffer: &'a mut [u8]) -> Self
pub fn with_optimization_level(self, level: u32) -> Self
pub const fn with_target_from_cuda_context(self) -> Self
pub fn with_target(self, target: JitTarget) -> Self
pub fn with_fallback_strategy(self, strategy: JitFallback) -> Self
pub fn with_generate_debug_info(self, enable: bool) -> Self
pub fn with_log_verbose(self, enable: bool) -> Self
pub fn with_generate_line_info(self, enable: bool) -> Self
pub fn with_cache_mode(self, mode: JitCacheMode) -> Self
Sourcepub fn build(&mut self) -> JitOptionsArtifact
pub fn build(&mut self) -> JitOptionsArtifact
Prepares the option and value arrays for the FFI call. Populates the internal storage fields to keep pointers stable.
§Safety
The caller must ensure that this JitOptions instance outlives the FFI call.
Trait Implementations§
Source§impl<'a> Debug for JitOptions<'a>
impl<'a> Debug for JitOptions<'a>
Source§impl<'a> Default for JitOptions<'a>
impl<'a> Default for JitOptions<'a>
Source§fn default() -> JitOptions<'a>
fn default() -> JitOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !UnwindSafe for JitOptions<'a>
impl<'a> Freeze for JitOptions<'a>
impl<'a> RefUnwindSafe for JitOptions<'a>
impl<'a> Send for JitOptions<'a>
impl<'a> Sync for JitOptions<'a>
impl<'a> Unpin for JitOptions<'a>
impl<'a> UnsafeUnpin for JitOptions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more