Enum Class Compute

java.lang.Object
java.lang.Enum<Compute>
jdistlib.accelerator.Compute
All Implemented Interfaces:
Serializable, Comparable<Compute>, Constable

public enum Compute extends Enum<Compute>
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 Constants
    Enum Constant
    Description
    Route 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 Type
    Method
    Description
    static Compute
    parse(String value)
    Parses a case-insensitive command-line or system-property value.
    static Compute
    Returns the enum constant of this class with the specified name.
    static Compute[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • AUTO

      public static final Compute AUTO
      Route eligible large operations to an available accelerator and small work to CPU.
    • CPU

      public static final Compute CPU
      Always use the deterministic CPU reference implementation.
    • ONEMKL

      public static final Compute ONEMKL
      Require the optional Intel oneMKL native CPU provider.
    • OPENBLAS

      public static final Compute OPENBLAS
      Require the optional OpenBLAS native CPU provider.
    • GPU

      public static final Compute GPU
      Require any available hardware accelerator.
    • CUDA

      public static final Compute CUDA
      Require the optional CUDA provider.
    • OPENCL

      public static final Compute OPENCL
      Require the optional OpenCL provider.
    • VULKAN

      public static final Compute VULKAN
      Require the optional Vulkan compute provider.
  • Method Details

    • values

      public static Compute[] 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

      public static Compute valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • parse

      public static Compute parse(String value)
      Parses a case-insensitive command-line or system-property value.