Class: Google::Apis::DataprocV1::GkeNodePoolAcceleratorConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::GkeNodePoolAcceleratorConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request for a node pool.
Instance Attribute Summary collapse
-
#accelerator_count ⇒ Fixnum
The number of accelerator cards exposed to an instance.
-
#accelerator_type ⇒ String
The accelerator type resource namename (see GPUs on Compute Engine).
-
#gpu_partition_size ⇒ String
Size of partitions to create on the GPU.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GkeNodePoolAcceleratorConfig
constructor
A new instance of GkeNodePoolAcceleratorConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GkeNodePoolAcceleratorConfig
Returns a new instance of GkeNodePoolAcceleratorConfig.
2014 2015 2016 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2014 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator_count ⇒ Fixnum
The number of accelerator cards exposed to an instance.
Corresponds to the JSON property acceleratorCount
2000 2001 2002 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2000 def accelerator_count @accelerator_count end |
#accelerator_type ⇒ String
The accelerator type resource namename (see GPUs on Compute Engine).
Corresponds to the JSON property acceleratorType
2005 2006 2007 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2005 def accelerator_type @accelerator_type end |
#gpu_partition_size ⇒ String
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide (https://docs.nvidia.com/datacenter/tesla/mig-user-guide/
partitioning).
Corresponds to the JSON property gpuPartitionSize
2012 2013 2014 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2012 def gpu_partition_size @gpu_partition_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2019 2020 2021 2022 2023 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2019 def update!(**args) @accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count) @accelerator_type = args[:accelerator_type] if args.key?(:accelerator_type) @gpu_partition_size = args[:gpu_partition_size] if args.key?(:gpu_partition_size) end |