Google Cloud Container V1 Client - Class AcceleratorConfig (1.9.1)

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.

Parameters
Name
Description
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
string

The accelerator type resource name. List of supported accelerators here

↳ 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
Google\Cloud\Container\V1\GPUSharingConfig

The configuration for GPU sharing options.

getAcceleratorCount

The number of the accelerator cards exposed to an instance.

Generated from protobuf field int64 accelerator_count = 1;

Returns
Type
Description
int|string

setAcceleratorCount

The number of the accelerator cards exposed to an instance.

Generated from protobuf field int64 accelerator_count = 1;

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

getAcceleratorType

The accelerator type resource name. List of supported accelerators here

Generated from protobuf field string accelerator_type = 2;

Returns
Type
Description
string

setAcceleratorType

The accelerator type resource name. List of supported accelerators here

Generated from protobuf field string accelerator_type = 2;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getGpuPartitionSize

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide .

Generated from protobuf field string gpu_partition_size = 3;

Returns
Type
Description
string

setGpuPartitionSize

Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide .

Generated from protobuf field string gpu_partition_size = 3;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getGpuSharingConfig

The configuration for GPU sharing options.

Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Returns
Type
Description

hasGpuSharingConfig

clearGpuSharingConfig

setGpuSharingConfig

The configuration for GPU sharing options.

Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5;

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: