Interface GpuDeviceInfo.Builder

  • Method Details

    • name

      The name of the GPU accelerator.

      Parameters:
      name - The name of the GPU accelerator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • manufacturer

      GpuDeviceInfo.Builder manufacturer(String manufacturer)

      The manufacturer of the GPU accelerator.

      Parameters:
      manufacturer - The manufacturer of the GPU accelerator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • count

      The number of GPUs for the instance type.

      Parameters:
      count - The number of GPUs for the instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logicalGpuCount

      GpuDeviceInfo.Builder logicalGpuCount(Integer logicalGpuCount)

      Total number of GPU devices of this type.

      Parameters:
      logicalGpuCount - Total number of GPU devices of this type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • gpuPartitionSize

      GpuDeviceInfo.Builder gpuPartitionSize(Double gpuPartitionSize)

      The size of each GPU as a fraction of a full GPU, between 0 (excluded) and 1 (included).

      Parameters:
      gpuPartitionSize - The size of each GPU as a fraction of a full GPU, between 0 (excluded) and 1 (included).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloads

      GpuDeviceInfo.Builder workloads(Collection<String> workloads)

      A list of workload types this GPU supports.

      Parameters:
      workloads - A list of workload types this GPU supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • workloads

      GpuDeviceInfo.Builder workloads(String... workloads)

      A list of workload types this GPU supports.

      Parameters:
      workloads - A list of workload types this GPU supports.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryInfo

      Describes the memory available to the GPU accelerator.

      Parameters:
      memoryInfo - Describes the memory available to the GPU accelerator.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memoryInfo

      Describes the memory available to the GPU accelerator.

      This is a convenience method that creates an instance of the GpuDeviceMemoryInfo.Builder avoiding the need to create one manually via GpuDeviceMemoryInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to memoryInfo(GpuDeviceMemoryInfo).

      Parameters:
      memoryInfo - a consumer that will call methods on GpuDeviceMemoryInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: