Enum Class ComputeNuts

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

public enum ComputeNuts extends Enum<ComputeNuts>
Controls whether NUTS target evaluation may or must use an accelerator.
  • Enum Constant Details

    • OFF

      public static final ComputeNuts OFF
      Require CPU target evaluation for NUTS.
    • AUTO

      public static final ComputeNuts AUTO
      Use the configured compute policy and its profitability thresholds.
    • FORCE

      public static final ComputeNuts FORCE
      Require hardware-accelerated target evaluation even when it may be slower.
  • Method Details

    • values

      public static ComputeNuts[] 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 ComputeNuts 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 ComputeNuts parse(String value)
      Parses a case-insensitive command-line or system-property value.