CogTrevista GPUDeviceIndex Property Cognex VisionPro 9.21 SR1
Cognex Internal Use Only Gets or sets the GPU device to use when ProcessorType is set to GpuIfAvailable

Namespace: Cognex.VisionPro.Trevista
Assembly: Cognex.VisionPro.Trevista (in Cognex.VisionPro.Trevista.dll) Version: 85.1.0.0
Syntax

public int GPUDeviceIndex { get; set; }

Property Value

Type: Int32
The Default value is 0 Value can not be less than 0
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Exceptions

ExceptionCondition
ObjectDisposedException If the object has been disposed.
ArgumentOutOfRangeException The supplied value is less than zero.
Remarks

If selected GPUDeviceIndex is greater than the number of available GPUs, then the max index of the available GPUs will be used instead.
See Also