[][src]Struct accel::linker::JITConfig

pub struct JITConfig {
    pub max_registers: Option<u32>,
    pub threads_per_block: Option<u32>,
    pub wall_time: Option<f32>,
    pub info_log_buffer: Option<LogBuffer>,
    pub error_log_buffer: Option<LogBuffer>,
    pub optimization_level: Option<u32>,
    pub target_from_cucontext: Option<()>,
    pub target: Option<CUjit_target>,
    pub fallback_strategy: Option<CUjit_fallback>,
    pub generate_debug_info: Option<i32>,
    pub log_verbose: Option<i32>,
    pub generate_line_info: Option<i32>,
    pub cache_mode: Option<CUjit_cacheMode_enum>,
    pub new_sm3x_opt: Option<u32>,
    pub fast_compile: bool,
    pub global_symbol: HashMap<CString, *mut c_void>,
}

Configure generator for CUjit_option required in cuLink* APIs

Fields

max_registers: Option<u32>

CU_JIT_MAX_REGISTERS, Applies to compiler only

threads_per_block: Option<u32>

CU_JIT_THREADS_PER_BLOCK, Applies to compiler only

Note

This option does not currently take into account any other resource limitations, such as shared memory utilization. Cannot be combined with CU_JIT_TARGET.

wall_time: Option<f32>

CU_JIT_WALL_TIME, Applies to compiler and linker

info_log_buffer: Option<LogBuffer>

CU_JIT_INFO_LOG_BUFFER, Applies to compiler and linker

CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES, Applies to compiler and linker

error_log_buffer: Option<LogBuffer>

CU_JIT_ERROR_LOG_BUFFER, Applies to compiler and linker

CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES, Applies to compiler and linker

optimization_level: Option<u32>

CU_JIT_OPTIMIZATION_LEVEL, Applies to compiler only

target_from_cucontext: Option<()>

CU_JIT_TARGET_FROM_CUCONTEXT, Applies to compiler and linker

target: Option<CUjit_target>

CU_JIT_TARGET, Applies to compiler and linker

fallback_strategy: Option<CUjit_fallback>

CU_JIT_FALLBACK_STRATEGY, Applies to compiler only

generate_debug_info: Option<i32>

CU_JIT_GENERATE_DEBUG_INFO, Applies to compiler and linker

log_verbose: Option<i32>

CU_JIT_LOG_VERBOSE, Applies to compiler and linker

generate_line_info: Option<i32>

CU_JIT_GENERATE_LINE_INFO, Applies to compiler only

cache_mode: Option<CUjit_cacheMode_enum>

CU_JIT_CACHE_MODE, Applies to compiler only

new_sm3x_opt: Option<u32>

CU_JIT_NEW_SM3X_OPT

fast_compile: bool

CU_JIT_FAST_COMPILE

global_symbol: HashMap<CString, *mut c_void>

CU_JIT_GLOBAL_SYMBOL_NAMES, Applies to dynamic linker only

CU_JIT_GLOBAL_SYMBOL_ADDRESSES, Applies to dynamic linker only

CU_JIT_GLOBAL_SYMBOL_COUNT, Applies to dynamic linker only

Methods

impl JITConfig[src]

fn pack(&mut self) -> (u32, Vec<CUjit_option>, Vec<*mut c_void>)[src]

Pack configure into C API compatible format

Trait Implementations

impl Clone for JITConfig[src]

impl Debug for JITConfig[src]

impl Default for JITConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for JITConfig

impl !Send for JITConfig

impl !Sync for JITConfig

impl Unpin for JITConfig

impl UnwindSafe for JITConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.