#[repr(transparent)]pub struct CUjit_option_enum(pub c_uint);Expand description
Online compiler and linker options
Tuple Fields§
§0: c_uintImplementations§
Source§impl CUjit_option_enum
impl CUjit_option_enum
Sourcepub const CU_JIT_MAX_REGISTERS: CUjit_option_enum
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.
Sourcepub const CU_JIT_THREADS_PER_BLOCK: CUjit_option_enum
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
.
Option type: unsigned int.
Sourcepub const CU_JIT_WALL_TIME: CUjit_option_enum
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.
Sourcepub const CU_JIT_INFO_LOG_BUFFER: CUjit_option_enum
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 *.
Sourcepub const CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES: CUjit_option_enum
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.
Sourcepub const CU_JIT_ERROR_LOG_BUFFER: CUjit_option_enum
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 *.
Sourcepub const CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES: CUjit_option_enum
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.
Sourcepub const CU_JIT_OPTIMIZATION_LEVEL: CUjit_option_enum
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.
Sourcepub const CU_JIT_TARGET_FROM_CUCONTEXT: CUjit_option_enum
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.
Sourcepub const CU_JIT_TARGET: CUjit_option_enum
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.
Sourcepub const CU_JIT_FALLBACK_STRATEGY: CUjit_option_enum
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.
Sourcepub const CU_JIT_GENERATE_DEBUG_INFO: CUjit_option_enum
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.
Sourcepub const CU_JIT_LOG_VERBOSE: CUjit_option_enum
pub const CU_JIT_LOG_VERBOSE: CUjit_option_enum
Generate verbose log messages (0: false, default)
Option type: int.
Sourcepub const CU_JIT_GENERATE_LINE_INFO: CUjit_option_enum
pub const CU_JIT_GENERATE_LINE_INFO: CUjit_option_enum
Generate line number information (-lineinfo) (0: false, default)
Option type: int.
Sourcepub const CU_JIT_CACHE_MODE: CUjit_option_enum
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.
Sourcepub const CU_JIT_NEW_SM3X_OPT: CUjit_option_enum
pub const CU_JIT_NEW_SM3X_OPT: CUjit_option_enum
Deprecated: This jit option is deprecated and should not be used.
Sourcepub const CU_JIT_FAST_COMPILE: CUjit_option_enum
pub const CU_JIT_FAST_COMPILE: CUjit_option_enum
This jit option is used for internal purpose only.
Sourcepub const CU_JIT_GLOBAL_SYMBOL_NAMES: CUjit_option_enum
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.
Sourcepub const CU_JIT_GLOBAL_SYMBOL_ADDRESSES: CUjit_option_enum
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 **.
Sourcepub const CU_JIT_GLOBAL_SYMBOL_COUNT: CUjit_option_enum
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.
Sourcepub const CU_JIT_LTO: CUjit_option_enum
pub const CU_JIT_LTO: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_FTZ: CUjit_option_enum
pub const CU_JIT_FTZ: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_PREC_DIV: CUjit_option_enum
pub const CU_JIT_PREC_DIV: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_PREC_SQRT: CUjit_option_enum
pub const CU_JIT_PREC_SQRT: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_FMA: CUjit_option_enum
pub const CU_JIT_FMA: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_REFERENCED_KERNEL_NAMES: CUjit_option_enum
pub const CU_JIT_REFERENCED_KERNEL_NAMES: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_REFERENCED_KERNEL_COUNT: CUjit_option_enum
pub const CU_JIT_REFERENCED_KERNEL_COUNT: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_REFERENCED_VARIABLE_NAMES: CUjit_option_enum
pub const CU_JIT_REFERENCED_VARIABLE_NAMES: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_REFERENCED_VARIABLE_COUNT: CUjit_option_enum
pub const CU_JIT_REFERENCED_VARIABLE_COUNT: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES: CUjit_option_enum
pub const CU_JIT_OPTIMIZE_UNUSED_DEVICE_VARIABLES: CUjit_option_enum
Only valid with LTO-IR compiled with toolkits prior to CUDA 12.0.
Sourcepub const CU_JIT_POSITION_INDEPENDENT_CODE: CUjit_option_enum
pub const CU_JIT_POSITION_INDEPENDENT_CODE: CUjit_option_enum
Generate position independent code (0: false)
Option type: int.
Sourcepub const CU_JIT_MIN_CTA_PER_SM: CUjit_option_enum
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.
Sourcepub const CU_JIT_MAX_THREADS_PER_BLOCK: CUjit_option_enum
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.
Sourcepub const CU_JIT_OVERRIDE_DIRECTIVE_VALUES: CUjit_option_enum
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.
Sourcepub const CU_JIT_SPLIT_COMPILE: CUjit_option_enum
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.
Sourcepub const CU_JIT_BINARY_LOADER_THREAD_COUNT: CUjit_option_enum
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.
Sourcepub const CU_JIT_NUM_OPTIONS: CUjit_option_enum
pub const CU_JIT_NUM_OPTIONS: CUjit_option_enum
Upper-bound sentinel for CUDA JIT option selectors.