Instance Property

locationNumber

A more detailed specifier for the GPU's location.

Required.

Declaration

@property(readonly) NSUInteger locationNumber;

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 (lowPower), 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

name

The name of the device.

Required.

headless

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

Required.

lowPower

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

Required.

removable

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

Required.

registryID

The registry ID value for the device.

Required.

location

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

Required.

maxTransferRate

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

Required.

hasUnifiedMemory

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

Required.

MTLDeviceLocation

Options describing possible locations for the GPU.