get_compute_device_paramT_get_compute_device_paramGetComputeDeviceParamGetComputeDeviceParamget_compute_device_param (Operator)

Name

get_compute_device_paramT_get_compute_device_paramGetComputeDeviceParamGetComputeDeviceParamget_compute_device_param — 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)

def get_compute_device_param(device_handle: HHandle, gen_param_name: str) -> Sequence[Union[str, int, float]]

def get_compute_device_param_s(device_handle: HHandle, gen_param_name: str) -> Union[str, int, float]

Beschreibung

get_compute_device_paramget_compute_device_paramGetComputeDeviceParamGetComputeDeviceParamGetComputeDeviceParamget_compute_device_param gibt die Werte von Parametern des Compute Devices DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle für den aktuellen HALCON Thread zurück in GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value zurück.

Die folgenden Parameter können in GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name gesetzt und damit abgefragt werden (für genauere Beschreibungen siehe set_compute_device_paramset_compute_device_paramSetComputeDeviceParamSetComputeDeviceParamSetComputeDeviceParamset_compute_device_param):

'alloc_pinned'"alloc_pinned""alloc_pinned""alloc_pinned""alloc_pinned""alloc_pinned"

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

'asynchronous_execution'"asynchronous_execution""asynchronous_execution""asynchronous_execution""asynchronous_execution""asynchronous_execution"

Wenn 'asynchronous_exection'"asynchronous_exection""asynchronous_exection""asynchronous_exection""asynchronous_exection""asynchronous_exection" auf 'true'"true""true""true""true""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'"buffer_cache_capacity""buffer_cache_capacity""buffer_cache_capacity""buffer_cache_capacity""buffer_cache_capacity"

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

'buffer_cache_used'"buffer_cache_used""buffer_cache_used""buffer_cache_used""buffer_cache_used""buffer_cache_used"

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

'image_cache_capacity'"image_cache_capacity""image_cache_capacity""image_cache_capacity""image_cache_capacity""image_cache_capacity"

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

'image_cache_used'"image_cache_used""image_cache_used""image_cache_used""image_cache_used""image_cache_used"

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

'pinned_mem_cache_capacity'"pinned_mem_cache_capacity""pinned_mem_cache_capacity""pinned_mem_cache_capacity""pinned_mem_cache_capacity""pinned_mem_cache_capacity"

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

'pinned_mem_cache_used'"pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used""pinned_mem_cache_used"

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

Ausführungsinformationen

Parameter

DeviceHandleDeviceHandleDeviceHandleDeviceHandledeviceHandledevice_handle (input_control)  compute_device HComputeDevice, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Compute Device Handle.

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (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"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (output_control)  string(-array) HTupleSequence[Union[str, int, float]]HTupleHtuple (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_paramGetComputeDeviceParamGetComputeDeviceParamGetComputeDeviceParamget_compute_device_param den Wert TRUE zurück. Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

activate_compute_deviceactivate_compute_deviceActivateComputeDeviceActivateComputeDeviceActivateComputeDeviceactivate_compute_device

Siehe auch

set_compute_device_paramset_compute_device_paramSetComputeDeviceParamSetComputeDeviceParamSetComputeDeviceParamset_compute_device_param, get_compute_device_infoget_compute_device_infoGetComputeDeviceInfoGetComputeDeviceInfoGetComputeDeviceInfoget_compute_device_info

Modul

Foundation