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.
Parameters | |
---|---|
Name | Description |
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: * |
↳ 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/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
projects/[project_id]/zones/us-east1-a/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
.
Generated from protobuf field string accelerator_type_uri = 1;
Returns | |
---|---|
Type | Description |
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/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
projects/[project_id]/zones/us-east1-a/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
.
Generated from protobuf field string accelerator_type_uri = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAcceleratorCount
The number of the accelerator cards of this type exposed to this instance.
Generated from protobuf field int32 accelerator_count = 2;
Returns | |
---|---|
Type | Description |
int |
setAcceleratorCount
The number of the accelerator cards of this type exposed to this instance.
Generated from protobuf field int32 accelerator_count = 2;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |