get_compute_device_paramT_get_compute_device_paramGetComputeDeviceParamGetComputeDeviceParam (Operator)

Name

get_compute_device_paramT_get_compute_device_paramGetComputeDeviceParamGetComputeDeviceParam — Abfragen von Compute Device Parametern.

Signatur

get_compute_device_param( : : DeviceHandle, GenParamName : GenParamValue)

Herror T_get_compute_device_param(const Htuple DeviceHandle, const Htuple GenParamName, Htuple* GenParamValue)

void GetComputeDeviceParam(const HTuple& DeviceHandle, const HTuple& GenParamName, HTuple* GenParamValue)

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

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

HTuple HComputeDevice::GetComputeDeviceParam(const wchar_t* GenParamName) const   (Nur Windows)

static void HOperatorSet.GetComputeDeviceParam(HTuple deviceHandle, HTuple genParamName, out HTuple genParamValue)

HTuple HComputeDevice.GetComputeDeviceParam(string genParamName)

Beschreibung

get_compute_device_paramget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParamGetComputeDeviceParam gibt die Werte von Parametern des Compute Devives DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle 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_paramSetComputeDeviceParamSetComputeDeviceParamSetComputeDeviceParam):

'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.

Ausführungsinformationen

Parameter

DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandle (input_control)  compute_device HComputeDevice, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Compute Device Handle.

GenParamNameGenParamNameGenParamNameGenParamNamegenParamName (input_control)  string HTupleHTupleHtuple (string) (string) (HString) (char*)

Name des abzufragenden Parameters.

Defaultwert: '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", '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_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_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_used'"pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValue (output_control)  string(-array) HTupleHTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)

Wert des Parameters.

Ergebnis

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

Vorgänger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDevice

Siehe auch

set_compute_device_paramset_compute_device_paramSetComputeDeviceParamSetComputeDeviceParamSetComputeDeviceParam, get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfoGetComputeDeviceInfo

Modul

Foundation