Class: AWSCDK::Deadline::CfnFleet::AcceleratorCapabilitiesProperty

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

Overview

Provides information about the GPU accelerators used for jobs processed by a fleet.

Accelerator capabilities cannot be used with wait-and-save fleets. If you specify accelerator capabilities, you must use either spot or on-demand instance market options. > Each accelerator type maps to specific EC2 instance families:

  • t4 : Uses G4dn instance family
  • a10g : Uses G5 instance family
  • l4 : Uses G6 and Gr6 instance families
  • l40s : Uses G6e instance family

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(selections:, count: nil) ⇒ AcceleratorCapabilitiesProperty

Returns a new instance of AcceleratorCapabilitiesProperty.

Parameters:



671
672
673
674
675
676
# File 'deadline/cfn_fleet.rb', line 671

def initialize(selections:, count: nil)
  @selections = selections
  Jsii::Type.check_type(@selections, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZGVhZGxpbmUuQ2ZuRmxlZXQuQWNjZWxlcmF0b3JTZWxlY3Rpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "selections")
  @count = count.is_a?(Hash) ? ::AWSCDK::Deadline::CfnFleet::AcceleratorCountRangeProperty.new(**count.transform_keys(&:to_sym)) : count
  Jsii::Type.check_type(@count, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19kZWFkbGluZS5DZm5GbGVldC5BY2NlbGVyYXRvckNvdW50UmFuZ2VQcm9wZXJ0eSJ9XX19")), "count") unless @count.nil?
end

Instance Attribute Details

#countAWSCDK::IResolvable, ... (readonly)

The number of GPU accelerators specified for worker hosts in this fleet.

You must specify either acceleratorCapabilities.count.max or allowed_instance_types when using accelerator capabilities. If you don't specify a maximum count, AWS Deadline Cloud uses the instance types you specify in allowed_instance_types to determine the maximum number of accelerators.



695
696
697
# File 'deadline/cfn_fleet.rb', line 695

def count
  @count
end

#selectionsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Deadline::CfnFleet::AcceleratorSelectionProperty> (readonly)

A list of accelerator capabilities requested for this fleet.

Only Amazon Elastic Compute Cloud instances that provide these capabilities will be used. For example, if you specify both L4 and T4 chips, AWS Deadline Cloud will use Amazon EC2 instances that have either the L4 or the T4 chip installed.

  • You must specify at least one accelerator selection.
  • You cannot specify the same accelerator name multiple times in the selections list.
  • All accelerators in the selections must use the same runtime version.


688
689
690
# File 'deadline/cfn_fleet.rb', line 688

def selections
  @selections
end

Class Method Details

.jsii_propertiesObject



697
698
699
700
701
702
# File 'deadline/cfn_fleet.rb', line 697

def self.jsii_properties
  {
    :selections => "selections",
    :count => "count",
  }
end

Instance Method Details

#to_jsiiObject



704
705
706
707
708
709
710
711
# File 'deadline/cfn_fleet.rb', line 704

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