Skip to main content

JitOptions

Struct JitOptions 

Source
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>

Source

pub fn with_max_registers(self, value: u32) -> Self

Source

pub fn with_threads_per_block(self, value: u32) -> Self

Source

pub fn with_wall_time(self, value: &'a mut f32) -> Self

Source

pub fn with_info_log(self, buffer: &'a mut [u8]) -> Self

Source

pub fn with_error_log(self, buffer: &'a mut [u8]) -> Self

Source

pub fn with_optimization_level(self, level: u32) -> Self

Source

pub const fn with_target_from_cuda_context(self) -> Self

Source

pub fn with_target(self, target: JitTarget) -> Self

Source

pub fn with_fallback_strategy(self, strategy: JitFallback) -> Self

Source

pub fn with_generate_debug_info(self, enable: bool) -> Self

Source

pub fn with_log_verbose(self, enable: bool) -> Self

Source

pub fn with_generate_line_info(self, enable: bool) -> Self

Source

pub fn with_cache_mode(self, mode: JitCacheMode) -> Self

Source

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for JitOptions<'a>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.