pub enum OptimizationLevel {
O0 = 0,
O1 = 1,
O2 = 2,
O3 = 3,
O4 = 4,
}Expand description
JIT optimisation level for the linker.
Higher levels produce faster GPU code at the cost of longer link times.
Maps directly to CU_JIT_OPTIMIZATION_LEVEL values 0–4.
Variants§
O0 = 0
No optimisation.
O1 = 1
Minimal optimisation.
O2 = 2
Moderate optimisation.
O3 = 3
High optimisation.
O4 = 4
Maximum optimisation (default).
Implementations§
Trait Implementations§
Source§impl Clone for OptimizationLevel
impl Clone for OptimizationLevel
Source§fn clone(&self) -> OptimizationLevel
fn clone(&self) -> OptimizationLevel
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 OptimizationLevel
impl Debug for OptimizationLevel
Source§impl Default for OptimizationLevel
impl Default for OptimizationLevel
Source§fn default() -> OptimizationLevel
fn default() -> OptimizationLevel
Returns the “default value” for a type. Read more
Source§impl Hash for OptimizationLevel
impl Hash for OptimizationLevel
Source§impl PartialEq for OptimizationLevel
impl PartialEq for OptimizationLevel
impl Copy for OptimizationLevel
impl Eq for OptimizationLevel
impl StructuralPartialEq for OptimizationLevel
Auto Trait Implementations§
impl Freeze for OptimizationLevel
impl RefUnwindSafe for OptimizationLevel
impl Send for OptimizationLevel
impl Sync for OptimizationLevel
impl Unpin for OptimizationLevel
impl UnsafeUnpin for OptimizationLevel
impl UnwindSafe for OptimizationLevel
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