Skip to main content

CUjit_option_enum

Struct CUjit_option_enum 

Source
#[repr(transparent)]
pub struct CUjit_option_enum(pub c_uint);
Expand description

Online compiler and linker options.

Tuple Fields§

§0: c_uint

Implementations§

Source§

impl CUjit_option_enum

Source

pub const CU_JIT_MAX_REGISTERS: CUjit_option_enum

Max number of registers that a thread may use.

Option type: unsigned int

Applies to: compiler only.

Source

pub const CU_JIT_THREADS_PER_BLOCK: CUjit_option_enum

IN: Specifies minimum number of threads per block to target compilation for

OUT: Returns the number of threads the compiler actually targeted.

This restricts the resource utilization of the compiler (e.g. max registers) such that a block with the given number of threads should be able to launch based on register limitations. 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

.

Option type: unsigned int

Applies to: compiler only.

Source

pub const CU_JIT_WALL_TIME: CUjit_option_enum

Overwrites the option value with the total wall clock time, in milliseconds, spent in the compiler and linker

Option type: float

Applies to: compiler and linker.

Source

pub const CU_JIT_INFO_LOG_BUFFER: CUjit_option_enum

Pointer to a buffer in which to print any log messages that are informational in nature (the buffer size is specified via option CUjit_option_enum::CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES

)

Option type: char *

Applies to: compiler and linker.

Source

pub const CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES: CUjit_option_enum

IN: Log buffer size in bytes.

Log messages will be capped at this size (including null terminator)

OUT: Amount of log buffer filled with messages

Option type: unsigned int

Applies to: compiler and linker.

Source

pub const CU_JIT_ERROR_LOG_BUFFER: CUjit_option_enum

Pointer to a buffer in which to print any log messages that reflect errors (the buffer size is specified via option CUjit_option_enum::CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES

)

Option type: char *

Applies to: compiler and linker.

Source

pub const CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES: CUjit_option_enum

IN: Log buffer size in bytes.

Log messages will be capped at this size (including null terminator)

OUT: Amount of log buffer filled with messages

Option type: unsigned int

Applies to: compiler and linker.

Source

pub const CU_JIT_OPTIMIZATION_LEVEL: CUjit_option_enum

Level of optimizations to apply to generated code (0 - 4), with 4 being the default and highest level of optimizations.

Option type: unsigned int

Applies to: compiler only.

Source

pub const CU_JIT_TARGET_FROM_CUCONTEXT: CUjit_option_enum

No option value required.

Determines the target based on the current attached context (default)

Option type: No option value needed

Applies to: compiler and linker.

Source

pub const CU_JIT_TARGET: CUjit_option_enum

Target is chosen based on supplied CUjit_target.

Cannot be combined with CUjit_option_enum::CU_JIT_THREADS_PER_BLOCK

.

Option type: unsigned int for enumerated type

CUjit_target Applies to: compiler and linker.

Source

pub const CU_JIT_FALLBACK_STRATEGY: CUjit_option_enum

Specifies choice of fallback strategy if matching cubin is not found.

Choice is based on supplied CUjit_fallback

. This option cannot be used with cuLink* APIs as the linker requires exact matches.

Option type: unsigned int for enumerated type

CUjit_fallback Applies to: compiler only.

Source

pub const CU_JIT_GENERATE_DEBUG_INFO: CUjit_option_enum

Specifies whether to create debug information in output (-g) (0: false, default)

Option type: int

Applies to: compiler and linker.

Source

pub const CU_JIT_LOG_VERBOSE: CUjit_option_enum

Generate verbose log messages (0: false, default)

Option type: int

Applies to: compiler and linker.

Source

pub const CU_JIT_GENERATE_LINE_INFO: CUjit_option_enum

Generate line number information (-lineinfo) (0: false, default)

Option type: int

Applies to: compiler only.

Source

pub const CU_JIT_CACHE_MODE: CUjit_option_enum

Specifies whether to enable caching explicitly (-dlcm)

Choice is based on supplied CUjit_cacheMode_enum.

Option type: unsigned int for enumerated type CUjit_cacheMode_enum

Applies to: compiler only.

Source

pub const CU_JIT_NEW_SM3X_OPT: CUjit_option_enum

👎Deprecated

Deprecated: This jit option is deprecated and should not be used.

Source

pub const CU_JIT_FAST_COMPILE: CUjit_option_enum

This jit option is used for internal purpose only.

Source

pub const CU_JIT_GLOBAL_SYMBOL_NAMES: CUjit_option_enum

Array of device symbol names that will be relocated to the corresponding host addresses stored in CUjit_option_enum::CU_JIT_GLOBAL_SYMBOL_ADDRESSES.

Must contain CUjit_option_enum::CU_JIT_GLOBAL_SYMBOL_COUNT

entries.

When loading a device module, driver will relocate all encountered unresolved symbols to the host addresses.

It is only allowed to register symbols that correspond to unresolved global variables.

It is illegal to register the same device symbol at multiple addresses.

Option type: const char **

Applies to: dynamic linker only.

Source

pub const CU_JIT_GLOBAL_SYMBOL_ADDRESSES: CUjit_option_enum

Array of host addresses that will be used to relocate corresponding device symbols stored in CUjit_option_enum::CU_JIT_GLOBAL_SYMBOL_NAMES.

Must contain CUjit_option_enum::CU_JIT_GLOBAL_SYMBOL_COUNT

entries.

Option type: void **

Applies to: dynamic linker only.

Source

pub const CU_JIT_GLOBAL_SYMBOL_COUNT: CUjit_option_enum

Number of entries in CUjit_option_enum::CU_JIT_GLOBAL_SYMBOL_NAMES and CUjit_option_enum::CU_JIT_GLOBAL_SYMBOL_ADDRESSES arrays.

Option type: unsigned int

Applies to: dynamic linker only.

Source

pub const CU_JIT_LTO: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Enable link-time optimization (-dlto) for device code (Disabled by default).

This option is not supported on 32-bit platforms.

Option type: int

Applies to: compiler and linker.

Source

pub const CU_JIT_FTZ: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Control single-precision denormals (-ftz) support (0: false, default). 1 : flushes denormal values to zero 0 : preserves denormal values Option type: int

Applies to: link-time optimization specified with CUjit_option::CU_JIT_LTO.

Source

pub const CU_JIT_PREC_DIV: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Control single-precision floating-point division and reciprocals (-prec-div) support (1: true, default). 1 : Enables the IEEE round-to-nearest mode 0 : Enables the fast approximation mode Option type: int

Applies to: link-time optimization specified with CUjit_option::CU_JIT_LTO.

Source

pub const CU_JIT_PREC_SQRT: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Control single-precision floating-point square root (-prec-sqrt) support (1: true, default). 1 : Enables the IEEE round-to-nearest mode 0 : Enables the fast approximation mode Option type: int

Applies to: link-time optimization specified with CUjit_option::CU_JIT_LTO.

Source

pub const CU_JIT_FMA: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Enable/Disable the contraction of floating-point multiplies and adds/subtracts into floating-point multiply-add (-fma) operations (1: Enable, default; 0: Disable). Option type: int

Applies to: link-time optimization specified with CUjit_option::CU_JIT_LTO.

Source

pub const CU_JIT_REFERENCED_KERNEL_NAMES: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Array of kernel names that should be preserved at link time while others can be removed.

Must contain

CU_JIT_REFERENCED_KERNEL_COUNT

entries.

Note that kernel names can be mangled by the compiler in which case the mangled name needs to be specified.

Wildcard “*” can be used to represent zero or more characters instead of specifying the full or mangled name.

It is important to note that the wildcard “*” is also added implicitly. For example, specifying “foo” will match “foobaz”, “barfoo”, “barfoobaz” and thus preserve all kernels with those names. This can be avoided by providing a more specific name like “barfoobaz”.

Option type: const char **

Applies to: dynamic linker only.

Source

pub const CU_JIT_REFERENCED_KERNEL_COUNT: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Number of entries in CUjit_option_enum::CU_JIT_REFERENCED_KERNEL_NAMES

array.

Option type: unsigned int

Applies to: dynamic linker only.

Source

pub const CU_JIT_REFERENCED_VARIABLE_NAMES: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Array of variable names (device and/or constant

) that should be preserved at link time while others can be removed.

Must contain

CU_JIT_REFERENCED_VARIABLE_COUNT

entries.

Note that variable names can be mangled by the compiler in which case the mangled name needs to be specified.

Wildcard “*” can be used to represent zero or more characters instead of specifying the full or mangled name.

It is important to note that the wildcard “*” is also added implicitly. For example, specifying “foo” will match “foobaz”, “barfoo”, “barfoobaz” and thus preserve all variables with those names. This can be avoided by providing a more specific name like “barfoobaz”.

Option type: const char **

Applies to: link-time optimization specified with CUjit_option::CU_JIT_LTO.

Source

pub const CU_JIT_REFERENCED_VARIABLE_COUNT: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: Number of entries in CUjit_option_enum::CU_JIT_REFERENCED_VARIABLE_NAMES

array.

Option type: unsigned int

Applies to: link-time optimization specified with CUjit_option::CU_JIT_LTO.

Source

pub const CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES: CUjit_option_enum

👎Deprecated

Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.

Deprecated: This option serves as a hint to enable the JIT compiler/linker to remove constant (constant) and device (device

) variables unreferenced in device code (Disabled by default).

Note that host references to constant and device variables using APIs like cuModuleGetGlobal() with this option specified may result in undefined behavior unless the variables are explicitly specified using

CU_JIT_REFERENCED_VARIABLE_NAMES

.

Option type: int

Applies to: link-time optimization specified with CUjit_option::CU_JIT_LTO.

Source

pub const CU_JIT_POSITION_INDEPENDENT_CODE: CUjit_option_enum

Generate position independent code (0: false)

Option type: int

Applies to: compiler only.

Source

pub const CU_JIT_MIN_CTA_PER_SM: CUjit_option_enum

This option hints to the JIT compiler the minimum number of CTAs from the kernel’s grid to be mapped to a SM.

This option is ignored when used together with CUjit_option_enum::CU_JIT_MAX_REGISTERS or CUjit_option_enum::CU_JIT_THREADS_PER_BLOCK. Optimizations based on this option need CUjit_option_enum::CU_JIT_MAX_THREADS_PER_BLOCK to be specified as well. For kernels already using PTX directive .minnctapersm, this option will be ignored by default. Use CUjit_option_enum::CU_JIT_OVERRIDE_DIRECTIVE_VALUES

to let this option take precedence over the PTX directive. Option type: unsigned int

Applies to: compiler only.

Source

pub const CU_JIT_MAX_THREADS_PER_BLOCK: CUjit_option_enum

Maximum number threads in a thread block, computed as the product of the maximum extent specifed for each dimension of the block.

This limit is guaranteed not to be exeeded in any invocation of the kernel. Exceeding the maximum number of threads results in runtime error or kernel launch failure. For kernels already using PTX directive .maxntid, this option will be ignored by default. Use CUjit_option_enum::CU_JIT_OVERRIDE_DIRECTIVE_VALUES

to let this option take precedence over the PTX directive. Option type: int

Applies to: compiler only.

Source

pub const CU_JIT_OVERRIDE_DIRECTIVE_VALUES: CUjit_option_enum

This option lets the values specified using CUjit_option_enum::CU_JIT_MAX_REGISTERS, CUjit_option_enum::CU_JIT_THREADS_PER_BLOCK, CUjit_option_enum::CU_JIT_MAX_THREADS_PER_BLOCK and CUjit_option_enum::CU_JIT_MIN_CTA_PER_SM take precedence over any PTX directives.

(0: Disable, default; 1: Enable) Option type: int

Applies to: compiler only.

Source

pub const CU_JIT_SPLIT_COMPILE: CUjit_option_enum

This option specifies the maximum number of concurrent threads to use when running compiler optimizations.

If the specified value is 1, the option will be ignored. If the specified value is 0, the number of threads will match the number of CPUs on the underlying machine. Otherwise, if the option is N, then up to N threads will be used. Option type: unsigned int

Applies to: compiler only.

Source

pub const CU_JIT_BINARY_LOADER_THREAD_COUNT: CUjit_option_enum

This option specifies the maximum number of concurrent threads to use when compiling device code.

If the specified value is 1, the option will be ignored. If the specified value is 0, the number of threads will match the number of CPUs on the underlying machine. Otherwise, if the option is N, then up to N threads will be used. This option is ignored if the env var CUDA_BINARY_LOADER_THREAD_COUNT is set. Option type: unsigned int

Applies to: compiler and linker.

Source

pub const CU_JIT_NUM_OPTIONS: CUjit_option_enum

Upper-bound sentinel for CUDA JIT option selectors.

Trait Implementations§

Source§

impl Clone for CUjit_option_enum

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CUjit_option_enum

Source§

impl Debug for CUjit_option_enum

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CUjit_option_enum

Source§

impl Hash for CUjit_option_enum

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for CUjit_option_enum

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for CUjit_option_enum

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for CUjit_option_enum

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for CUjit_option_enum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.