Class: Google::Apis::ContainerV1::AcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::AcceleratorConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb
Overview
AcceleratorConfig represents a Hardware Accelerator request.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
The number of the accelerator cards exposed to an instance.
-
#accelerator_type ⇒ String
The accelerator type resource name.
-
#gpu_driver_installation_config ⇒ Google::Apis::ContainerV1::GpuDriverInstallationConfig
GPUDriverInstallationConfig specifies the version of GPU driver to be auto installed.
-
#gpu_partition_size ⇒ String
Size of partitions to create on the GPU.
-
#gpu_sharing_config ⇒ Google::Apis::ContainerV1::GpuSharingConfig
GPUSharingConfig represents the GPU sharing configuration for Hardware Accelerators.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AcceleratorConfig
constructor
A new instance of AcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AcceleratorConfig
Returns a new instance of AcceleratorConfig.
59 60 61 |
# File 'lib/google/apis/container_v1/classes.rb', line 59 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
The number of the accelerator cards exposed to an instance.
Corresponds to the JSON property acceleratorCount
32 33 34 |
# File 'lib/google/apis/container_v1/classes.rb', line 32 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
The accelerator type resource name. List of supported accelerators here
Corresponds to the JSON property acceleratorType
38 39 40 |
# File 'lib/google/apis/container_v1/classes.rb', line 38 def accelerator_type @accelerator_type end |
#gpu_driver_installation_config ⇒ Google::Apis::ContainerV1::GpuDriverInstallationConfig
GPUDriverInstallationConfig specifies the version of GPU driver to be auto
installed.
Corresponds to the JSON property gpuDriverInstallationConfig
44 45 46 |
# File 'lib/google/apis/container_v1/classes.rb', line 44 def gpu_driver_installation_config @gpu_driver_installation_config end |
#gpu_partition_size ⇒ String
Size of partitions to create on the GPU. Valid values are described in the
NVIDIA mig user guide.
Corresponds to the JSON property gpuPartitionSize
51 52 53 |
# File 'lib/google/apis/container_v1/classes.rb', line 51 def gpu_partition_size @gpu_partition_size end |
#gpu_sharing_config ⇒ Google::Apis::ContainerV1::GpuSharingConfig
GPUSharingConfig represents the GPU sharing configuration for Hardware
Accelerators.
Corresponds to the JSON property gpuSharingConfig
57 58 59 |
# File 'lib/google/apis/container_v1/classes.rb', line 57 def gpu_sharing_config @gpu_sharing_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
64 65 66 67 68 69 70 |
# File 'lib/google/apis/container_v1/classes.rb', line 64 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) @gpu_driver_installation_config = args[:gpu_driver_installation_config] if args.key?(:gpu_driver_installation_config) @gpu_partition_size = args[:gpu_partition_size] if args.key?(:gpu_partition_size) @gpu_sharing_config = args[:gpu_sharing_config] if args.key?(:gpu_sharing_config) end |