Reference documentation and code samples for the Google Cloud Dataproc V1 Client class AcceleratorConfig.
Specifies the type and number of accelerator cards attached to the instances of an instance. See GPUs on Compute Engine .
Generated from protobuf message google.cloud.dataproc.v1.AcceleratorConfig
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ accelerator_type_uri
string
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes
. Examples: * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80
* projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80
* nvidia-tesla-k80
Auto Zone Exception: If you are using the Dataproc Auto Zone Placement
feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80
.
↳ accelerator_count
int
The number of the accelerator cards of this type exposed to this instance.
getAcceleratorTypeUri
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes .
Examples:
-
https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80
-
projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80
-
nvidia-tesla-k80
Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example,nvidia-tesla-k80
.
string
setAcceleratorTypeUri
Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes .
Examples:
-
https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80
-
projects/[project_id]/zones/[zone]/acceleratorTypes/nvidia-tesla-k80
-
nvidia-tesla-k80
Auto Zone Exception: If you are using the Dataproc Auto Zone Placement feature, you must use the short name of the accelerator type resource, for example,nvidia-tesla-k80
.
var
string
$this
getAcceleratorCount
The number of the accelerator cards of this type exposed to this instance.
int
setAcceleratorCount
The number of the accelerator cards of this type exposed to this instance.
var
int
$this