jcuda.driver
Class CUjit_option

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

public class CUjit_option
extends java.lang.Object

Online compiler 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_ERROR_LOG_BUFFER
          Pointer to a buffer in which to print any log messages from PTXAS that reflect errors
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_INFO_LOG_BUFFER
          Pointer to a buffer in which to print any log messsages from PTXAS that are informational in nature
static int CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES
          IN: Log buffer size in bytes.
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_enum.
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\n OUT: Returns the number of threads the compiler actually targeted.
static int CU_JIT_WALL_TIME
          Returns a float value in the option of the wall clock time, in milliseconds, spent creating the cubin
 
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.

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\n 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.

See Also:
Constant Field Values

CU_JIT_WALL_TIME

public static final int CU_JIT_WALL_TIME
Returns a float value in the option of the wall clock time, in milliseconds, spent creating the cubin

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 messsages from PTXAS that are informational in nature

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)\n OUT: Amount of log buffer filled with messages

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 from PTXAS that reflect errors

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)\n OUT: Amount of log buffer filled with messages

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.

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)

See Also:
Constant Field Values

CU_JIT_TARGET

public static final int CU_JIT_TARGET
Target is chosen based on supplied CUjit_target_enum.

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_enum.

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