Package ai.rapids.cudf
Enum CudaComputeMode
- All Implemented Interfaces:
Serializable
,Comparable<CudaComputeMode>
,java.lang.constant.Constable
This is the Java mapping of CUDA device compute modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault compute mode Multiple threads can use cudaSetDevice() with this device.Compute-exclusive-thread mode Only one thread in one process will be able to use cudaSetDevice() with this device.Compute-exclusive-process mode Many threads in one process will be able to use cudaSetDevice() with this device.Compute-prohibited mode No threads can use cudaSetDevice() with this device. -
Method Summary
Modifier and TypeMethodDescriptionstatic CudaComputeMode
Returns the enum constant of this type with the specified name.static CudaComputeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default compute mode Multiple threads can use cudaSetDevice() with this device. -
EXCLUSIVE
Compute-exclusive-thread mode Only one thread in one process will be able to use cudaSetDevice() with this device. WARNING: This mode was deprecated! Using EXCLUSIVE_PROCESS instead. -
PROHIBITED
Compute-prohibited mode No threads can use cudaSetDevice() with this device. -
EXCLUSIVE_PROCESS
Compute-exclusive-process mode Many threads in one process will be able to use cudaSetDevice() with this device.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-