- java.lang.Object
-
- java.lang.Enum<CudaDevice.Limit>
-
- com.ibm.cuda.CudaDevice.Limit
-
- All Implemented Interfaces:
Serializable
,Comparable<CudaDevice.Limit>
- Enclosing class:
- CudaDevice
public static enum CudaDevice.Limit extends Enum<CudaDevice.Limit>
Limit
identifies device limits that may be queried or configured.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEV_RUNTIME_PENDING_LAUNCH_COUNT
maximum number of outstanding device runtime launches that can be made from this contextDEV_RUNTIME_SYNC_DEPTH
maximum grid depth at which a thread can issue the device runtime call ::cudaDeviceSynchronize() to wait on child grid launches to completeMALLOC_HEAP_SIZE
size in bytes of the heap used by the ::malloc() and ::free() device system callsPRINTF_FIFO_SIZE
size in bytes of the FIFO used by the ::printf() device system callSTACK_SIZE
stack size in bytes of each GPU thread
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CudaDevice.Limit
valueOf(String name)
Returns the enum constant of this type with the specified name.static CudaDevice.Limit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEV_RUNTIME_PENDING_LAUNCH_COUNT
public static final CudaDevice.Limit DEV_RUNTIME_PENDING_LAUNCH_COUNT
maximum number of outstanding device runtime launches that can be made from this context
-
DEV_RUNTIME_SYNC_DEPTH
public static final CudaDevice.Limit DEV_RUNTIME_SYNC_DEPTH
maximum grid depth at which a thread can issue the device runtime call ::cudaDeviceSynchronize() to wait on child grid launches to complete
-
MALLOC_HEAP_SIZE
public static final CudaDevice.Limit MALLOC_HEAP_SIZE
size in bytes of the heap used by the ::malloc() and ::free() device system calls
-
PRINTF_FIFO_SIZE
public static final CudaDevice.Limit PRINTF_FIFO_SIZE
size in bytes of the FIFO used by the ::printf() device system call
-
STACK_SIZE
public static final CudaDevice.Limit STACK_SIZE
stack size in bytes of each GPU thread
-
-
Method Detail
-
values
public static CudaDevice.Limit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CudaDevice.Limit c : CudaDevice.Limit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CudaDevice.Limit valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-