KlassenKlassenKlassenKlassen | | | | Operatoren

get_compute_device_paramget_compute_device_paramGetComputeDeviceParamget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParam (Operator)

Name

get_compute_device_paramget_compute_device_paramGetComputeDeviceParamget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParam — Abfragen von Compute Device Parametern.

Signatur

get_compute_device_param( : : DeviceHandle, ParamName : ParamValue)

Herror get_compute_device_param(const Hlong DeviceHandle, const char* ParamName, char* ParamValue)

Herror T_get_compute_device_param(const Htuple DeviceHandle, const Htuple ParamName, Htuple* ParamValue)

Herror get_compute_device_param(const HTuple& DeviceHandle, const HTuple& ParamName, char* ParamValue)

Herror get_compute_device_param(const HTuple& DeviceHandle, const HTuple& ParamName, HTuple* ParamValue)

HTuple HComputeDevice::GetComputeDeviceParam(const HTuple& ParamName) const

void GetComputeDeviceParam(const HTuple& DeviceHandle, const HTuple& ParamName, HTuple* ParamValue)

HTuple HComputeDevice::GetComputeDeviceParam(const HString& ParamName) const

HTuple HComputeDevice::GetComputeDeviceParam(const char* ParamName) const

void HOperatorSetX.GetComputeDeviceParam(
[in] VARIANT DeviceHandle, [in] VARIANT ParamName, [out] VARIANT* ParamValue)

VARIANT HComputeDeviceX.GetComputeDeviceParam([in] BSTR ParamName)

static void HOperatorSet.GetComputeDeviceParam(HTuple deviceHandle, HTuple paramName, out HTuple paramValue)

HTuple HComputeDevice.GetComputeDeviceParam(string paramName)

Beschreibung

get_compute_device_paramget_compute_device_paramGetComputeDeviceParamget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParam gibt die Werte von Parametern des Compute Devives DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle für den aktuellen HALCON Thread zurück.

Die folgenden Parameter können abgefragt werden (für genauere Beschreibungen siehe set_compute_device_paramset_compute_device_paramSetComputeDeviceParamset_compute_device_paramSetComputeDeviceParamSetComputeDeviceParam):

'alloc_pinned'

Wenn 'alloc_pinned' auf 'true' gesetzt ist, werden Ausgabebildmatrizen in page locked Speicher erzeugt.

'asynchronous_execution'

Wenn 'asynchronous_exection' auf 'true' gesetzt ist, warten Operatoren, die auf dem Compute Device ausgeführt werden, nicht auf Beendigung der Berechnungen sondern kehren nach dem Anstoßen der Berechnung zurück.

'buffer_cache_capacity'

Maximale Größe (in Byte) des Compute Device Buffer Caches.

'buffer_cache_used'

Aktuelle Größe (in Byte) des Compute Device Buffer Caches.

'image_cache_capacity'

Maximale Größe (in Byte) des Compute Device Image Caches.

'image_cache_used'

Aktuelle Größe (in Byte) des Compute Device Image Caches.

'pinned_mem_cache_capacity'

Maximale Größe (in Bytes) des page locked Speicher Caches.

'pinned_mem_cache_used'

Aktuelle Größe (in Bytes) des page locked Speicher Caches.

Parallelisierung

Parameter

DeviceHandleDeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle (input_control)  compute_device HComputeDevice, HTupleHTupleHComputeDevice, HTupleHComputeDeviceX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Compute Device Handle.

ParamNameParamNameParamNameParamNameParamNameparamName (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name des abzufragenden Parameters.

Defaultwert: 'buffer_cache_capacity' "buffer_cache_capacity" "buffer_cache_capacity" "buffer_cache_capacity" "buffer_cache_capacity" "buffer_cache_capacity"

Werteliste: 'alloc_pinned'"alloc_pinned""alloc_pinned""alloc_pinned""alloc_pinned""alloc_pinned", 'asynchronous_execution'"asynchronous_execution""asynchronous_execution""asynchronous_execution""asynchronous_execution""asynchronous_execution", 'buffer_cache_capacity'"buffer_cache_capacity""buffer_cache_capacity""buffer_cache_capacity""buffer_cache_capacity""buffer_cache_capacity", 'buffer_cache_used'"buffer_cache_used""buffer_cache_used""buffer_cache_used""buffer_cache_used""buffer_cache_used", 'image_cache_capacity'"image_cache_capacity""image_cache_capacity""image_cache_capacity""image_cache_capacity""image_cache_capacity", 'image_cache_used'"image_cache_used""image_cache_used""image_cache_used""image_cache_used""image_cache_used", 'pinned_mem_cache_capacity'"pinned_mem_cache_capacity""pinned_mem_cache_capacity""pinned_mem_cache_capacity""pinned_mem_cache_capacity""pinned_mem_cache_capacity", 'pinned_mem_cache_used'"pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used"

ParamValueParamValueParamValueParamValueParamValueparamValue (output_control)  string(-array) HTupleHTupleHTupleVARIANTHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double) (BSTR / Hlong / double) (char* / Hlong / double)

Wert des Parameters.

Ergebnis

Sind alle Parameterwerte korrekt, gibt get_compute_device_paramget_compute_device_paramGetComputeDeviceParamget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParam den Wert 2 (H_MSG_TRUE) zurück. Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceactivate_compute_deviceActivateComputeDeviceActivateComputeDevice

Siehe auch

set_compute_device_paramset_compute_device_paramSetComputeDeviceParamset_compute_device_paramSetComputeDeviceParamSetComputeDeviceParam, get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfo

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren