public enum CudaComputeMode extends Enum<CudaComputeMode>
Enum Constant and Description |
---|
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.
|
EXCLUSIVE_PROCESS
Compute-exclusive-process mode
Many threads in one process will be able to use cudaSetDevice() with this device.
|
PROHIBITED
Compute-prohibited mode
No threads can use cudaSetDevice() with this device.
|
Modifier and Type | Method and Description |
---|---|
static CudaComputeMode |
valueOf(String name)
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.
|
public static final CudaComputeMode DEFAULT
public static final CudaComputeMode EXCLUSIVE
public static final CudaComputeMode PROHIBITED
public static final CudaComputeMode EXCLUSIVE_PROCESS
public static CudaComputeMode[] values()
for (CudaComputeMode c : CudaComputeMode.values()) System.out.println(c);
public static CudaComputeMode 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 nullCopyright © 2024. All rights reserved.