Skip to content

/AWS1/CL_ECSPLATFORMDEVICE

The devices that are available on the container instance. The supported device types are GPUs and Neuron devices.

CONSTRUCTOR

IMPORTING

Required arguments:

iv_id TYPE /AWS1/ECSSTRING /AWS1/ECSSTRING

The ID for the GPU or Neuron device on the container instance. For GPUs, the available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file. For Neuron devices, the ID corresponds to the device index (for example, 0 for /dev/neuron0).

iv_type TYPE /AWS1/ECSPLATFORMDEVICETYPE /AWS1/ECSPLATFORMDEVICETYPE

The type of device that's available on the container instance. The supported values are GPU and NEURON_DEVICE.


Queryable Attributes

id

The ID for the GPU or Neuron device on the container instance. For GPUs, the available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file. For Neuron devices, the ID corresponds to the device index (for example, 0 for /dev/neuron0).

Accessible with the following methods

Method Description
GET_ID() Getter for ID, with configurable default
ASK_ID() Getter for ID w/ exceptions if field has no value
HAS_ID() Determine if ID has a value

type

The type of device that's available on the container instance. The supported values are GPU and NEURON_DEVICE.

Accessible with the following methods

Method Description
GET_TYPE() Getter for TYPE, with configurable default
ASK_TYPE() Getter for TYPE w/ exceptions if field has no value
HAS_TYPE() Determine if TYPE has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_PLATFORMDEVICES

TYPES TT_PLATFORMDEVICES TYPE STANDARD TABLE OF REF TO /AWS1/CL_ECSPLATFORMDEVICE WITH DEFAULT KEY
.