jcuda.driver
Class CUjit_option

java.lang.Object
  extended by jcuda.driver.CUjit_option

public class CUjit_option
extends java.lang.Object

Online compiler and linker options.

Most comments are taken from the CUDA reference manual.

See Also:
JCudaDriver.cuModuleLoadDataEx(jcuda.driver.CUmodule, jcuda.Pointer, int, int[], jcuda.Pointer)

Field Summary
static int CU_JIT_CACHE_MODE
          Specifies whether to enable caching explicitly (-dlcm)
Choice is based on supplied ::CUjit_cacheMode_enum.
static int CU_JIT_ERROR_LOG_BUFFER
          Pointer to a buffer in which to print any log messages that reflect errors (the buffer size is specified via option ::CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES)
Option type: char *
Applies to: compiler and linker
static int CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES
          IN: Log buffer size in bytes.
static int CU_JIT_FALLBACK_STRATEGY
          Specifies choice of fallback strategy if matching cubin is not found.
static int CU_JIT_GENERATE_DEBUG_INFO
          Specifies whether to create debug information in output (-g) (0: false, default)
Option type: int
Applies to: compiler and linker
static int CU_JIT_GENERATE_LINE_INFO
          Generate line number information (-lineinfo) (0: false, default)
Option type: int
Applies to: compiler only
static int CU_JIT_INFO_LOG_BUFFER
          Pointer to a buffer in which to print any log messages that are informational in nature (the buffer size is specified via option ::CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES)
Option type: char *
Applies to: compiler and linker
static int CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES
          IN: Log buffer size in bytes.
static int CU_JIT_LOG_VERBOSE
          Generate verbose log messages (0: false, default)
Option type: int
Applies to: compiler and linker
static int CU_JIT_MAX_REGISTERS
          Max number of registers that a thread may use.
static int CU_JIT_OPTIMIZATION_LEVEL
          Level of optimizations to apply to generated code (0 - 4), with 4 being the default and highest level of optimizations.
static int CU_JIT_TARGET
          Target is chosen based on supplied ::CUjit_target.
static int CU_JIT_TARGET_FROM_CUCONTEXT
          No option value required.
static int CU_JIT_THREADS_PER_BLOCK
          IN: Specifies minimum number of threads per block to target compilation for
OUT: Returns the number of threads the compiler actually targeted.
static int CU_JIT_WALL_TIME
          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
 
Method Summary
static java.lang.String stringFor(int n)
          Returns the String identifying the given CUjit_option
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CU_JIT_MAX_REGISTERS

public static final int CU_JIT_MAX_REGISTERS
Max number of registers that a thread may use.
Option type: unsigned int
Applies to: compiler only

See Also:
Constant Field Values

CU_JIT_THREADS_PER_BLOCK

public static final int CU_JIT_THREADS_PER_BLOCK
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 fo 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

See Also:
Constant Field Values

CU_JIT_WALL_TIME

public static final int CU_JIT_WALL_TIME
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

See Also:
Constant Field Values

CU_JIT_INFO_LOG_BUFFER

public static final int CU_JIT_INFO_LOG_BUFFER
Pointer to a buffer in which to print any log messages that are informational in nature (the buffer size is specified via option ::CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES)
Option type: char *
Applies to: compiler and linker

See Also:
Constant Field Values

CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES

public static final int CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES
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

See Also:
Constant Field Values

CU_JIT_ERROR_LOG_BUFFER

public static final int CU_JIT_ERROR_LOG_BUFFER
Pointer to a buffer in which to print any log messages that reflect errors (the buffer size is specified via option ::CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES)
Option type: char *
Applies to: compiler and linker

See Also:
Constant Field Values

CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES

public static final int CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES
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

See Also:
Constant Field Values

CU_JIT_OPTIMIZATION_LEVEL

public static final int CU_JIT_OPTIMIZATION_LEVEL
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

See Also:
Constant Field Values

CU_JIT_TARGET_FROM_CUCONTEXT

public static final int CU_JIT_TARGET_FROM_CUCONTEXT
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

See Also:
Constant Field Values

CU_JIT_TARGET

public static final int CU_JIT_TARGET
Target is chosen based on supplied ::CUjit_target. Cannot be combined with ::CU_JIT_THREADS_PER_BLOCK.
Option type: unsigned int for enumerated type ::CUjit_target
Applies to: compiler and linker

See Also:
Constant Field Values

CU_JIT_FALLBACK_STRATEGY

public static final int CU_JIT_FALLBACK_STRATEGY
Specifies choice of fallback strategy if matching cubin is not found. Choice is based on supplied ::CUjit_fallback.
Option type: unsigned int for enumerated type ::CUjit_fallback
Applies to: compiler only

See Also:
Constant Field Values

CU_JIT_GENERATE_DEBUG_INFO

public static final int CU_JIT_GENERATE_DEBUG_INFO
Specifies whether to create debug information in output (-g) (0: false, default)
Option type: int
Applies to: compiler and linker

See Also:
Constant Field Values

CU_JIT_LOG_VERBOSE

public static final int CU_JIT_LOG_VERBOSE
Generate verbose log messages (0: false, default)
Option type: int
Applies to: compiler and linker

See Also:
Constant Field Values

CU_JIT_GENERATE_LINE_INFO

public static final int CU_JIT_GENERATE_LINE_INFO
Generate line number information (-lineinfo) (0: false, default)
Option type: int
Applies to: compiler only

See Also:
Constant Field Values

CU_JIT_CACHE_MODE

public static final int CU_JIT_CACHE_MODE
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

See Also:
Constant Field Values
Method Detail

stringFor

public static java.lang.String stringFor(int n)
Returns the String identifying the given CUjit_option

Parameters:
n - The CUjit_option
Returns:
The String identifying the given CUjit_option