Reference documentation and code samples for the Google Cloud Container V1 Client class AcceleratorConfig.
AcceleratorConfig represents a Hardware Accelerator request.
Generated from protobuf message google.container.v1.AcceleratorConfig
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ accelerator_count
int|string
The number of the accelerator cards exposed to an instance.
↳ accelerator_type
↳ gpu_partition_size
string
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide .
↳ gpu_sharing_config
getAcceleratorCount
The number of the accelerator cards exposed to an instance.
int|string
setAcceleratorCount
The number of the accelerator cards exposed to an instance.
var
int|string
$this
getAcceleratorType
The accelerator type resource name. List of supported accelerators here
string
setAcceleratorType
The accelerator type resource name. List of supported accelerators here
var
string
$this
getGpuPartitionSize
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide .
string
setGpuPartitionSize
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide .
var
string
$this
getGpuSharingConfig
The configuration for GPU sharing options.
hasGpuSharingConfig
clearGpuSharingConfig
setGpuSharingConfig
The configuration for GPU sharing options.
$this