Google Cloud Container V1 Client - Class GPUSharingConfig (2.10.0)Stay organized with collectionsSave and categorize content based on your preferences.
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 messagegoogle.container.v1.GPUSharingConfig
Namespace
Google \ Cloud \ Container \ V1
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.
Returns
Type
Description
int|string
setMaxSharedClientsPerGpu
The max number of containers that can share a physical GPU.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getGpuSharingStrategy
The type of GPU sharing strategy to enable on the GPU node.
Returns
Type
Description
int
hasGpuSharingStrategy
clearGpuSharingStrategy
setGpuSharingStrategy
The type of GPU sharing strategy to enable on the GPU node.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-09 UTC."],[],[]]