Property DeviceNumber
DeviceNumber
Gets the number of the device the context resides on. -1 indicates the CPU;
a value of 0 or greater is the GPU device number (see
DeviceNumber), matching the
convention used by MainGpu.
public int DeviceNumber { get; }