CogDLRuntimeControl GetComputeDevices Method Cognex VisionPro 9.25 SR1
Get a read-only collection of compute device descriptions.

Namespace: Cognex.VisionPro.DLRuntime
Assembly: Cognex.VisionPro.DLRuntime (in Cognex.VisionPro.DLRuntime.dll) Version: 93.1.0.0 (93.1.0.0)
Syntax

public static CogDLRuntimeComputeDeviceCollection GetComputeDevices()

Return Value

Type: CogDLRuntimeComputeDeviceCollection
A collection of compute device descriptions. If no valid GPUs are found the returned collection will be empty.
Exceptions

ExceptionCondition
CogInternalErrorException If the underlying ViDi control could not be created. Please ensure that no other ViDi control instance exists in this process.
See Also