Reference documentation and code samples for the Google Cloud Container V1 Client class GPUSharingConfig.
GPUSharingConfig represents the GPU sharing configuration for Hardware Accelerators.
Generated from protobuf message google.container.v1.GPUSharingConfig
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ max_shared_clients_per_gpu |
int|string
The max number of containers that can share a physical GPU. |
↳ gpu_sharing_strategy |
int
The type of GPU sharing strategy to enable on the GPU node. |
getMaxSharedClientsPerGpu
The max number of containers that can share a physical GPU.
Generated from protobuf field int64 max_shared_clients_per_gpu = 1;
Returns | |
---|---|
Type | Description |
int|string |
setMaxSharedClientsPerGpu
The max number of containers that can share a physical GPU.
Generated from protobuf field int64 max_shared_clients_per_gpu = 1;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getGpuSharingStrategy
The type of GPU sharing strategy to enable on the GPU node.
Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
Returns | |
---|---|
Type | Description |
int |
hasGpuSharingStrategy
clearGpuSharingStrategy
setGpuSharingStrategy
The type of GPU sharing strategy to enable on the GPU node.
Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |