pub struct JitOptions {
pub max_registers: u32,
pub optimization_level: u32,
pub generate_debug_info: bool,
pub target_from_context: bool,
}Expand description
Options for JIT compilation of PTX to GPU binary.
These options control the behaviour of the CUDA JIT compiler when
loading PTX source via Module::from_ptx_with_options.
Fields§
§max_registers: u32Maximum number of registers per thread (0 = no limit).
Limiting register usage can increase occupancy at the cost of potential register spilling to local memory.
optimization_level: u32Optimisation level (0–4, default 4).
Higher levels produce faster code but take longer to compile.
generate_debug_info: boolWhether to generate debug information in the compiled binary.
target_from_context: boolIf true, the JIT compiler determines the target compute
capability from the current CUDA context.
Trait Implementations§
Source§impl Clone for JitOptions
impl Clone for JitOptions
Source§fn clone(&self) -> JitOptions
fn clone(&self) -> JitOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JitOptions
impl Debug for JitOptions
Auto Trait Implementations§
impl Freeze for JitOptions
impl RefUnwindSafe for JitOptions
impl Send for JitOptions
impl Sync for JitOptions
impl Unpin for JitOptions
impl UnsafeUnpin for JitOptions
impl UnwindSafe for JitOptions
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