Instance Property

locationNumber

A more detailed specifier for the GPU's location.

Required.

Declaration

var locationNumber: Int { get }

Discussion

The returned value indicates which slot or Thunderbolt port the GPU is attached to. For built-in GPUs, if the GPU is low power (isLowPower), this value is 0, otherwise it is 1.

It is possible for multiple GPUs to have the same location and locationNumber, such as when a card has multiple GPUs, or multiple eGPUs are connected ot the same Thunderbolt port.

See Also

Querying GPU Properties

var name: String

The name of the device.

Required.

var isHeadless: Bool

A Boolean value that indicates whether a device is configured as headless.

Required.

var isLowPower: Bool

A Boolean value that indicates whether a device is low-power.

Required.

var isRemovable: Bool

A Boolean value that determines whether or not a GPU is removable.

Required.

var registryID: UInt64

The registry ID value for the device.

Required.

var location: MTLDeviceLocation

The physical location of the GPU relative to the host computer.

Required.

var maxTransferRate: UInt64

The highest theoretical rate of transfer between system RAM and dedicated GPU memory (VRAM), measured in bytes per second.

Required.

var hasUnifiedMemory: Bool

A Boolean that indicates whether the GPU shares all of its memory with the CPU.

Required.

enum MTLDeviceLocation

Options describing possible locations for the GPU.