Class: AWSCDK::Deadline::CfnFleet::AcceleratorSelectionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
deadline/cfn_fleet.rb

Overview

Describes a specific GPU accelerator required for an Amazon Elastic Compute Cloud worker host.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, runtime: nil) ⇒ AcceleratorSelectionProperty

Returns a new instance of AcceleratorSelectionProperty.

Parameters:

  • name (String)

    The name of the chip used by the GPU accelerator.

  • runtime (String, nil) (defaults to: nil)

    Specifies the runtime driver to use for the GPU accelerator.



765
766
767
768
769
770
# File 'deadline/cfn_fleet.rb', line 765

def initialize(name:, runtime: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @runtime = runtime
  Jsii::Type.check_type(@runtime, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "runtime") unless @runtime.nil?
end

Instance Attribute Details

#nameString (readonly)

The name of the chip used by the GPU accelerator.

The available GPU accelerators are:

  • t4 - NVIDIA T4 Tensor Core GPU (16 GiB memory)
  • a10g - NVIDIA A10G Tensor Core GPU (24 GiB memory)
  • l4 - NVIDIA L4 Tensor Core GPU (24 GiB memory)
  • l40s - NVIDIA L40S Tensor Core GPU (48 GiB memory)


783
784
785
# File 'deadline/cfn_fleet.rb', line 783

def name
  @name
end

#runtimeString? (readonly)

Specifies the runtime driver to use for the GPU accelerator.

You must use the same runtime for all GPUs in a fleet.

You can choose from the following runtimes:

  • latest - Use the latest runtime available for the chip. If you specify latest and a new version of the runtime is released, the new version of the runtime is used.
  • grid:r570 - NVIDIA vGPU software 18
  • grid:r535 - NVIDIA vGPU software 16

If you don't specify a runtime, AWS Deadline Cloud uses latest as the default. However, if you have multiple accelerators and specify latest for some and leave others blank, AWS Deadline Cloud raises an exception.

Not all runtimes are compatible with all accelerator types:

  • t4 and a10g : Support all runtimes ( grid:r570 , grid:r535 )
  • l4 and l40s : Only support grid:r570 and newer

All accelerators in a fleet must use the same runtime version. You cannot mix different runtime versions within a single fleet. > When you specify latest , it resolves to grid:r570 for all currently supported accelerators.



805
806
807
# File 'deadline/cfn_fleet.rb', line 805

def runtime
  @runtime
end

Class Method Details

.jsii_propertiesObject



807
808
809
810
811
812
# File 'deadline/cfn_fleet.rb', line 807

def self.jsii_properties
  {
    :name => "name",
    :runtime => "runtime",
  }
end

Instance Method Details

#to_jsiiObject



814
815
816
817
818
819
820
821
# File 'deadline/cfn_fleet.rb', line 814

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "runtime" => @runtime,
  })
  result.compact
end