Class: Google::Apis::ContainerV1beta1::GpuSharingConfig

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb

Overview

GPUSharingConfig represents the GPU sharing configuration for Hardware Accelerators.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GpuSharingConfig

Returns a new instance of GpuSharingConfig.



2907
2908
2909
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2907

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#gpu_sharing_strategyString

The type of GPU sharing strategy to enable on the GPU node. Corresponds to the JSON property gpuSharingStrategy

Returns:

  • (String)


2900
2901
2902
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2900

def gpu_sharing_strategy
  @gpu_sharing_strategy
end

#max_shared_clients_per_gpuFixnum

The max number of containers that can share a physical GPU. Corresponds to the JSON property maxSharedClientsPerGpu

Returns:

  • (Fixnum)


2905
2906
2907
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2905

def max_shared_clients_per_gpu
  @max_shared_clients_per_gpu
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2912
2913
2914
2915
# File 'lib/google/apis/container_v1beta1/classes.rb', line 2912

def update!(**args)
  @gpu_sharing_strategy = args[:gpu_sharing_strategy] if args.key?(:gpu_sharing_strategy)
  @max_shared_clients_per_gpu = args[:max_shared_clients_per_gpu] if args.key?(:max_shared_clients_per_gpu)
end