> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://docs.nvidia.com/dynamo/llms.txt. For full content including API reference and SDK examples, see https://docs.nvidia.com/dynamo/llms-full.txt.

# Device

`Device` class describes the device a given allocation resides in.
Usually host (`"cpu"`) or GPU (`"cuda"`) memory.

When a system contains multiple GPU devices, specific GPU devices can be identified by including their ordinal index number.
For example, to reference the second GPU in a system `"cuda:1"` can be used.

By default, when `"cuda"` is provided, it is assumed to be `"cuda:0"` or the first GPU enumerated by the system.

## Properties

The identity, or ordinal, of the device.
When the device is the [`HOST`](/dynamo/dev/nixl-connect/device-kind), this value is always `0`.
When the device is a [`GPU`](/dynamo/dev/nixl-connect/device-kind), this value identifies a specific GPU.

The [`DeviceKind`](/dynamo/dev/nixl-connect/device-kind) of device the instance references.

## Related Classes

* [Connector](/dynamo/dev/nixl-connect/connector)
* [Descriptor](/dynamo/dev/nixl-connect/descriptor)
* [OperationStatus](/dynamo/dev/nixl-connect/operation-status)
* [ReadOperation](/dynamo/dev/nixl-connect/read-operation)
* [ReadableOperation](/dynamo/dev/nixl-connect/readable-operation)
* [RdmaMetadata](/dynamo/dev/nixl-connect/rdma-metadata)
* [WritableOperation](/dynamo/dev/nixl-connect/writable-operation)
* [WriteOperation](/dynamo/dev/nixl-connect/write-operation)