Google Cloud Container V1 Client - Class AcceleratorConfig (1.17.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

Namespace

Google \ Cloud \ Container \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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.

↳ gpu_driver_installation_config Google\Cloud\Container\V1\GPUDriverInstallationConfig

The configuration for auto installation of GPU driver.

getAcceleratorCount

The number of the accelerator cards exposed to an instance.

Returns
TypeDescription
int|string

setAcceleratorCount

The number of the accelerator cards exposed to an instance.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getAcceleratorType

The accelerator type resource name. List of supported accelerators here

Returns
TypeDescription
string

setAcceleratorType

The accelerator type resource name. List of supported accelerators here

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGpuPartitionSize

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

Returns
TypeDescription
string

setGpuPartitionSize

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGpuSharingConfig

The configuration for GPU sharing options.

Returns
TypeDescription
Google\Cloud\Container\V1\GPUSharingConfig|null

hasGpuSharingConfig

clearGpuSharingConfig

setGpuSharingConfig

The configuration for GPU sharing options.

Parameter
NameDescription
var Google\Cloud\Container\V1\GPUSharingConfig
Returns
TypeDescription
$this

getGpuDriverInstallationConfig

The configuration for auto installation of GPU driver.

Returns
TypeDescription
Google\Cloud\Container\V1\GPUDriverInstallationConfig|null

hasGpuDriverInstallationConfig

clearGpuDriverInstallationConfig

setGpuDriverInstallationConfig

The configuration for auto installation of GPU driver.

Parameter
NameDescription
var Google\Cloud\Container\V1\GPUDriverInstallationConfig
Returns
TypeDescription
$this