#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.