Class CLEnvironmentOptions.Builder

java.lang.Object
foundry.veil.api.opencl.CLEnvironmentOptions.Builder
Enclosing class:
CLEnvironmentOptions

public static class CLEnvironmentOptions.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setClVersion

      Sets the version of OpenCL to target.
      Parameters:
      clVersion - The CL version to use
    • deviceDefault

      public CLEnvironmentOptions.Builder deviceDefault()
      Sets the target of the environment to the default device.
    • deviceGpu

      public CLEnvironmentOptions.Builder deviceGpu()
      Sets the target of the environment to the GPU.
    • deviceCpu

      public CLEnvironmentOptions.Builder deviceCpu()
      Sets the target of the environment to the CPU.
    • deviceAccelerator

      public CLEnvironmentOptions.Builder deviceAccelerator()
      Sets the target of the environment to a compute accelerator.
    • deviceMask

      public CLEnvironmentOptions.Builder deviceMask(int deviceMask)
      Sets the devices the environment should target. If unsure, leave the default.
      Parameters:
      deviceMask - The mask for what kinds of devices to use
    • setRequireCompiler

      public CLEnvironmentOptions.Builder setRequireCompiler(boolean requireCompiler)
      Sets whether a compiler is required for the device. This is only needed to use string programs.
      Parameters:
      requireCompiler - Whether the device needs to have a compiler
    • setRequireGL

      public CLEnvironmentOptions.Builder setRequireGL(boolean requireOpenGL)
      Sets whether a compiler is required for the device. This is only needed to use string programs.
      Parameters:
      requireOpenGL - Whether the device needs to have a compiler
    • build

      public CLEnvironmentOptions build()
      Returns:
      A new environment option spec