Enum cust::module::ModuleJitOption
source · [−]#[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
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
sourceimpl Clone for ModuleJitOption
impl Clone for ModuleJitOption
sourcefn clone(&self) -> ModuleJitOption
fn clone(&self) -> ModuleJitOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ModuleJitOption
impl Debug for ModuleJitOption
sourceimpl PartialEq<ModuleJitOption> for ModuleJitOption
impl PartialEq<ModuleJitOption> for ModuleJitOption
sourcefn eq(&self, other: &ModuleJitOption) -> bool
fn eq(&self, other: &ModuleJitOption) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ModuleJitOption) -> bool
fn ne(&self, other: &ModuleJitOption) -> bool
This method tests for !=
.
impl Copy for ModuleJitOption
impl StructuralPartialEq for ModuleJitOption
Auto Trait Implementations
impl RefUnwindSafe for ModuleJitOption
impl Send for ModuleJitOption
impl Sync for ModuleJitOption
impl Unpin for ModuleJitOption
impl UnwindSafe for ModuleJitOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more