Show / Hide Table of Contents

Class OrtHardwareDevice

Represents a hardware device that is available on the current system.

Inheritance
object
OrtHardwareDevice
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.ML.OnnxRuntime
Assembly: Microsoft.ML.OnnxRuntime.dll
Syntax
public class OrtHardwareDevice

Properties

| Improve this Doc View Source

DeviceId

Get the device ID of the hardware device if known.

Declaration
public uint DeviceId { get; }
Property Value
Type Description
uint
Remarks

This is the identifier of the device model. PCIe device IDs can be looked up at https://www.pcilookup.com/ when combined with the VendorId. It is NOT a unique identifier for the device in the current system.

| Improve this Doc View Source

Metadata

Get device metadata. This may include information such as whether a GPU is discrete or integrated. The available metadata will differ by platform and device type.

Declaration
public OrtKeyValuePairs Metadata { get; }
Property Value
Type Description
OrtKeyValuePairs
| Improve this Doc View Source

Type

Get the type of hardware device.

Declaration
public OrtHardwareDeviceType Type { get; }
Property Value
Type Description
OrtHardwareDeviceType
| Improve this Doc View Source

Vendor

The vendor (manufacturer) of the hardware device.

Declaration
public string Vendor { get; }
Property Value
Type Description
string
| Improve this Doc View Source

VendorId

Get the vendor ID of the hardware device if known.

Declaration
public uint VendorId { get; }
Property Value
Type Description
uint
Remarks

For PCIe devices the vendor ID is the PCIe vendor ID. See https://pcisig.com/membership/member-companies.

  • Improve this Doc
  • View Source
In This Article
Back to top