Google Cloud Life Sciences V2beta Client - Class Accelerator (0.3.5)

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ type string

The accelerator type string (for example, "nvidia-tesla-k80"). 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.

↳ count int|string

How many accelerators of this type to attach.

getType

The accelerator type string (for example, "nvidia-tesla-k80").

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
TypeDescription
string

setType

The accelerator type string (for example, "nvidia-tesla-k80").

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
NameDescription
var string
Returns
TypeDescription
$this

getCount

How many accelerators of this type to attach.

Returns
TypeDescription
int|string

setCount

How many accelerators of this type to attach.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this