#[non_exhaustive]pub enum ModuleJitOption {
MaxRegisters(u32),
OptLevel(OptLevel),
DetermineTargetFromContext,
Target(JitTarget),
Fallback(JitFallback),
GenenerateDebugInfo(bool),
GenerateLineInfo(bool),
}
Expand description
Different options that could be applied when loading a module.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MaxRegisters(u32)
Specifies the maximum amount of registers any compiled PTX is allowed to use.
OptLevel(OptLevel)
Specifies the optimization level for the JIT compiler.
DetermineTargetFromContext
Determines the PTX target from the current context’s architecture. Cannot be combined with
ModuleJitOption::Target
.
Target(JitTarget)
Specifies the target for the JIT compiler. Cannot be combined with ModuleJitOption::DetermineTargetFromContext
.
Fallback(JitFallback)
Specifies how to handle cases where a loaded module’s data does not have an exact match for the specified architecture.
GenenerateDebugInfo(bool)
Generates debug info in the compiled binary.
GenerateLineInfo(bool)
Generates line info in the compiled binary.
Implementations§
Trait Implementations§
Source§impl Clone for ModuleJitOption
impl Clone for ModuleJitOption
Source§fn clone(&self) -> ModuleJitOption
fn clone(&self) -> ModuleJitOption
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 ModuleJitOption
impl Debug for ModuleJitOption
Source§impl PartialEq for ModuleJitOption
impl PartialEq for ModuleJitOption
impl Copy for ModuleJitOption
impl StructuralPartialEq for ModuleJitOption
Auto Trait Implementations§
impl Freeze for ModuleJitOption
impl RefUnwindSafe for ModuleJitOption
impl Send for ModuleJitOption
impl Sync for ModuleJitOption
impl Unpin for ModuleJitOption
impl UnwindSafe for ModuleJitOption
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