Interface SharingStrategy.Builder

  • Method Details

    • nvidiaMps

      Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS). You specify the GPU memory to allocate to the container and, optionally, the maximum percentage of the GPU's compute capacity that the container can use.

      Parameters:
      nvidiaMps - Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS). You specify the GPU memory to allocate to the container and, optionally, the maximum percentage of the GPU's compute capacity that the container can use.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nvidiaMps

      Shares a GPU between containers by using NVIDIA Multi-Process Service (MPS). You specify the GPU memory to allocate to the container and, optionally, the maximum percentage of the GPU's compute capacity that the container can use.

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

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

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