pub struct LinkerOptions {
pub max_registers: Option<u32>,
pub optimization_level: OptimizationLevel,
pub target_sm: Option<u32>,
pub generate_debug_info: bool,
pub generate_line_info: bool,
pub log_verbose: bool,
pub fallback_strategy: FallbackStrategy,
}Expand description
Options controlling the JIT linker’s behaviour.
These are translated to CUjit_option key/value pairs when calling
cuLinkCreate.
Fields§
§max_registers: Option<u32>Maximum number of registers per thread (None = driver default).
Limiting registers increases occupancy but may cause spilling.
optimization_level: OptimizationLevelOptimisation level for the linker (default: OptimizationLevel::O4).
target_sm: Option<u32>Target compute capability as a bare number (e.g. 70 for sm_70).
None means the linker derives the target from the current context.
generate_debug_info: boolWhether to generate debug information in the linked binary.
generate_line_info: boolWhether to generate line-number information.
log_verbose: boolWhether to request verbose log output from the linker.
fallback_strategy: FallbackStrategyFallback strategy when an exact binary match is unavailable.
Trait Implementations§
Source§impl Clone for LinkerOptions
impl Clone for LinkerOptions
Source§fn clone(&self) -> LinkerOptions
fn clone(&self) -> LinkerOptions
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 LinkerOptions
impl Debug for LinkerOptions
Auto Trait Implementations§
impl Freeze for LinkerOptions
impl RefUnwindSafe for LinkerOptions
impl Send for LinkerOptions
impl Sync for LinkerOptions
impl Unpin for LinkerOptions
impl UnsafeUnpin for LinkerOptions
impl UnwindSafe for LinkerOptions
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