HALCON Reference Manual 10.0.2
Table of Contents / System / Compute Devices ClassesClassesClasses | | | Operators

open_compute_deviceopen_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice (Operator)

Name

open_compute_deviceopen_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice — Open a compute device.

Signature

open_compute_device( : : DeviceIdentifier : DeviceHandle)

Herror open_compute_device(const Hlong DeviceIdentifier, Hlong* DeviceHandle)

Herror T_open_compute_device(const Htuple DeviceIdentifier, Htuple* DeviceHandle)

Herror open_compute_device(const HTuple& DeviceIdentifier, Hlong* DeviceHandle)

void HComputeDevice::OpenComputeDevice(const HTuple& DeviceIdentifier)

void HOperatorSetX.OpenComputeDevice(
[in] VARIANT DeviceIdentifier, [out] VARIANT* DeviceHandle)

void HComputeDeviceX.OpenComputeDevice([in] Hlong DeviceIdentifier)

static void HOperatorSet.OpenComputeDevice(HTuple deviceIdentifier, out HTuple deviceHandle)

public HComputeDevice(int deviceIdentifier)

void HComputeDevice.OpenComputeDevice(int deviceIdentifier)

Description

open_compute_deviceopen_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice opens the compute device referenced by DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier and returns DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle. Enable computation on DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle via activate_compute_deviceactivate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice.

DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle must be obtained by query_available_compute_devicesquery_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevices.

Parallelization

Parameters

DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier (input_control)  integer HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Compute device Identifier.

DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle (output_control)  compute_device HComputeDevice, HTupleHComputeDevice, HTupleHComputeDeviceX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Compute device handle.

Result

open_compute_deviceopen_compute_deviceopen_compute_deviceOpenComputeDeviceOpenComputeDevice returns the value 2 (H_MSG_TRUE) if DeviceIdentifierDeviceIdentifierDeviceIdentifierDeviceIdentifierdeviceIdentifier is valid. Otherwise an exception will be raised.

Possible Predecessors

query_available_compute_devicesquery_available_compute_devicesquery_available_compute_devicesQueryAvailableComputeDevicesQueryAvailableComputeDevices

Possible Successors

activate_compute_deviceactivate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice, init_compute_deviceinit_compute_deviceinit_compute_deviceInitComputeDeviceInitComputeDevice

Module

Foundation


Table of Contents / System / Compute Devices ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH