Reference documentation and code samples for the Google Cloud Life Sciences V2beta Client class Accelerator.
Carries information about an accelerator that can be attached to a VM.
Generated from protobuf message google.cloud.lifesciences.v2beta.Accelerator
Namespace
Google \ Cloud \ LifeSciences \ V2betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
string
The accelerator type string (for example, "nvidia-tesla-t4"). Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is attached, the required runtime libraries will be made available to all containers under |
↳ count |
int|string
How many accelerators of this type to attach. |
getType
The accelerator type string (for example, "nvidia-tesla-t4").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia
. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
Returns | |
---|---|
Type | Description |
string |
setType
The accelerator type string (for example, "nvidia-tesla-t4").
Only NVIDIA GPU accelerators are currently supported. If an NVIDIA GPU is
attached, the required runtime libraries will be made available to all
containers under /usr/local/nvidia
. The driver version to install must
be specified using the NVIDIA driver version parameter on the virtual
machine specification. Note that attaching a GPU increases the worker VM
startup time by a few minutes.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCount
How many accelerators of this type to attach.
Returns | |
---|---|
Type | Description |
int|string |
setCount
How many accelerators of this type to attach.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |