public static enum CLDevice.Type extends Enum<CLDevice.Type>
Enum Constant and Description |
---|
ACCELERATOR
CL_DEVICE_TYPE_ACCELERATOR
|
ALL
CL_DEVICE_TYPE_ALL.
|
CPU
CL_DEVICE_TYPE_CPU
|
DEFAULT
CL_DEVICE_TYPE_DEFAULT.
|
GPU
CL_DEVICE_TYPE_GPU
|
Modifier and Type | Field and Description |
---|---|
long |
TYPE
Value of wrapped OpenCL device type.
|
Modifier and Type | Method and Description |
---|---|
static CLDevice.Type |
valueOf(long clDeviceType) |
static CLDevice.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CLDevice.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CLDevice.Type CPU
public static final CLDevice.Type GPU
public static final CLDevice.Type ACCELERATOR
public static final CLDevice.Type DEFAULT
public static final CLDevice.Type ALL
public static CLDevice.Type[] values()
for (CLDevice.Type c : CLDevice.Type.values()) System.out.println(c);
public static CLDevice.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static CLDevice.Type valueOf(long clDeviceType)