jcuda.driver
Class CUctx_flags

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

public class CUctx_flags
extends java.lang.Object

Context creation flags.

Most comments are taken from the CUDA reference manual.

See Also:
JCudaDriver.cuCtxCreate(jcuda.driver.CUcontext, int, jcuda.driver.CUdevice)

Field Summary
static int CU_CTX_BLOCKING_SYNC
          Use blocking synchronization
static int CU_CTX_FLAGS_MASK
          Context creation flags mask
static int CU_CTX_LMEM_RESIZE_TO_MAX
          Keep local memory allocation after launch
static int CU_CTX_MAP_HOST
          Support mapped pinned allocations
static int CU_CTX_SCHED_AUTO
          Automatic scheduling
static int CU_CTX_SCHED_BLOCKING_SYNC
          Use blocking synchronization
static int CU_CTX_SCHED_MASK
          Scheduling flags mask
static int CU_CTX_SCHED_SPIN
          Set spin as default scheduling
static int CU_CTX_SCHED_YIELD
          Set yield as default scheduling
 
Method Summary
static java.lang.String stringFor(int n)
          Returns the String identifying the given CUctx_flags
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CU_CTX_SCHED_AUTO

public static final int CU_CTX_SCHED_AUTO
Automatic scheduling

See Also:
Constant Field Values

CU_CTX_SCHED_SPIN

public static final int CU_CTX_SCHED_SPIN
Set spin as default scheduling

See Also:
Constant Field Values

CU_CTX_SCHED_YIELD

public static final int CU_CTX_SCHED_YIELD
Set yield as default scheduling

See Also:
Constant Field Values

CU_CTX_BLOCKING_SYNC

public static final int CU_CTX_BLOCKING_SYNC
Use blocking synchronization

See Also:
Constant Field Values

CU_CTX_SCHED_BLOCKING_SYNC

public static final int CU_CTX_SCHED_BLOCKING_SYNC
Use blocking synchronization

See Also:
Constant Field Values

CU_CTX_SCHED_MASK

public static final int CU_CTX_SCHED_MASK
Scheduling flags mask

See Also:
Constant Field Values

CU_CTX_MAP_HOST

public static final int CU_CTX_MAP_HOST
Support mapped pinned allocations

See Also:
Constant Field Values

CU_CTX_LMEM_RESIZE_TO_MAX

public static final int CU_CTX_LMEM_RESIZE_TO_MAX
Keep local memory allocation after launch

See Also:
Constant Field Values

CU_CTX_FLAGS_MASK

public static final int CU_CTX_FLAGS_MASK
Context creation flags mask

See Also:
Constant Field Values
Method Detail

stringFor

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

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