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 \ V1Methods
__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 |
GPUSharingConfig
The configuration for GPU sharing options. |
↳ gpu_driver_installation_config |
GPUDriverInstallationConfig
The configuration for auto installation of GPU driver. |
getAcceleratorCount
The number of the accelerator cards exposed to an instance.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
setAcceleratorCount
The number of the accelerator cards exposed to an instance.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAcceleratorType
The accelerator type resource name. List of supported accelerators here
| Returns | |
|---|---|
| Type | Description |
string |
|
setAcceleratorType
The accelerator type resource name. List of supported accelerators here
| 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.
| Returns | |
|---|---|
| Type | Description |
string |
|
setGpuPartitionSize
Size of partitions to create on the GPU. Valid values are described in the NVIDIA mig user guide.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGpuSharingConfig
The configuration for GPU sharing options.
| Returns | |
|---|---|
| Type | Description |
GPUSharingConfig|null |
|
hasGpuSharingConfig
clearGpuSharingConfig
setGpuSharingConfig
The configuration for GPU sharing options.
| Parameter | |
|---|---|
| Name | Description |
var |
GPUSharingConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGpuDriverInstallationConfig
The configuration for auto installation of GPU driver.
| Returns | |
|---|---|
| Type | Description |
GPUDriverInstallationConfig|null |
|
hasGpuDriverInstallationConfig
clearGpuDriverInstallationConfig
setGpuDriverInstallationConfig
The configuration for auto installation of GPU driver.
| Parameter | |
|---|---|
| Name | Description |
var |
GPUDriverInstallationConfig
|
| Returns | |
|---|---|
| Type | Description |
$this |
|