AcceleratorConfigArgs

data class AcceleratorConfigArgs(val acceleratorCount: Output<Int>? = null, val acceleratorTypeUri: Output<String>? = null) : ConvertibleToJava<AcceleratorConfigArgs>

Specifies the type and number of accelerator cards attached to the instances of an instance group (see GPUs on Compute Engine (https://cloud.google.com/compute/docs/gpus/)).

Constructors

Link copied to clipboard
constructor(acceleratorCount: Output<Int>? = null, acceleratorTypeUri: Output<String>? = null)

Properties

Link copied to clipboard
val acceleratorCount: Output<Int>? = null

The number of the accelerator cards of this type exposed to this instance.

Link copied to clipboard
val acceleratorTypeUri: Output<String>? = null

Full URL, partial URI, or short name of the accelerator type resource to expose to this instance. See Compute Engine AcceleratorTypes (https://cloud.google.com/compute/docs/reference/beta/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-k80Auto Zone Exception: If you are using the Dataproc Auto Zone Placement (https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/auto-zone#using_auto_zone_placement) feature, you must use the short name of the accelerator type resource, for example, nvidia-tesla-k80.

Functions

Link copied to clipboard
open override fun toJava(): AcceleratorConfigArgs