jcuda.driver
Class CUcomputemode

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

public class CUcomputemode
extends java.lang.Object

Compute Modes.

Most comments are taken from the CUDA reference manual.

See Also:
CUdevice_attribute.CU_DEVICE_ATTRIBUTE_COMPUTE_MODE

Field Summary
static int CU_COMPUTEMODE_DEFAULT
          Default compute mode (Multiple contexts allowed per device)
static int CU_COMPUTEMODE_EXCLUSIVE
          Compute-exclusive-thread mode (Only one context used by a single thread can be present on this device at a time)
static int CU_COMPUTEMODE_EXCLUSIVE_PROCESS
          Compute-exclusive-process mode (Only one context used by a single process can be present on this device at a time)
static int CU_COMPUTEMODE_PROHIBITED
          Compute-prohibited mode (No contexts can be created on this device at this time)
 
Method Summary
static java.lang.String stringFor(int n)
          Returns the String identifying the given CUcomputemode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CU_COMPUTEMODE_DEFAULT

public static final int CU_COMPUTEMODE_DEFAULT
Default compute mode (Multiple contexts allowed per device)

See Also:
Constant Field Values

CU_COMPUTEMODE_EXCLUSIVE

public static final int CU_COMPUTEMODE_EXCLUSIVE
Compute-exclusive-thread mode (Only one context used by a single thread can be present on this device at a time)

See Also:
Constant Field Values

CU_COMPUTEMODE_PROHIBITED

public static final int CU_COMPUTEMODE_PROHIBITED
Compute-prohibited mode (No contexts can be created on this device at this time)

See Also:
Constant Field Values

CU_COMPUTEMODE_EXCLUSIVE_PROCESS

public static final int CU_COMPUTEMODE_EXCLUSIVE_PROCESS
Compute-exclusive-process mode (Only one context used by a single process can be present on this device at a time)

See Also:
Constant Field Values
Method Detail

stringFor

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

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