Package jdistlib.accelerator
Enum Class Compute
- All Implemented Interfaces:
Serializable,Comparable<Compute>,Constable
Selects automatic, CPU, or required accelerator execution.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRoute eligible large operations to an available accelerator and small work to CPU.Always use the deterministic CPU reference implementation.Require the optional CUDA provider.Require any available hardware accelerator.Require the optional Intel oneMKL native CPU provider.Require the optional OpenBLAS native CPU provider.Require the optional OpenCL provider.Require the optional Vulkan compute provider. -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeParses a case-insensitive command-line or system-property value.static ComputeReturns the enum constant of this class with the specified name.static Compute[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Route eligible large operations to an available accelerator and small work to CPU. -
CPU
Always use the deterministic CPU reference implementation. -
ONEMKL
Require the optional Intel oneMKL native CPU provider. -
OPENBLAS
Require the optional OpenBLAS native CPU provider. -
GPU
Require any available hardware accelerator. -
CUDA
Require the optional CUDA provider. -
OPENCL
Require the optional OpenCL provider. -
VULKAN
Require the optional Vulkan compute provider.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
parse
Parses a case-insensitive command-line or system-property value.
-