Class: AWSCDK::Deadline::CfnFleet::AcceleratorSelectionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Deadline::CfnFleet::AcceleratorSelectionProperty
- 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
-
#name ⇒ String
readonly
The name of the chip used by the GPU accelerator.
-
#runtime ⇒ String?
readonly
Specifies the runtime driver to use for the GPU accelerator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, runtime: nil) ⇒ AcceleratorSelectionProperty
constructor
A new instance of AcceleratorSelectionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, runtime: nil) ⇒ AcceleratorSelectionProperty
Returns a new instance of AcceleratorSelectionProperty.
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
#name ⇒ String (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 |
#runtime ⇒ String? (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 specifylatestand a new version of the runtime is released, the new version of the runtime is used.grid:r570- NVIDIA vGPU software 18grid: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:
t4anda10g: Support all runtimes (grid:r570,grid:r535)l4andl40s: Only supportgrid:r570and newerAll 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 togrid:r570for all currently supported accelerators.
805 806 807 |
# File 'deadline/cfn_fleet.rb', line 805 def runtime @runtime end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |