get_compute_device_paramπ
Short descriptionπ
get_compute_device_param β Query compute device parameters.
Signatureπ
get_compute_device_param( compute_device DeviceHandle, string GenParamName, out string GenParamValue )
Descriptionπ
get_compute_device_param returns parameters of the
compute device DeviceHandle for the current HALCON thread
in GenParamValue.
The following parameters can be queried (for more information
see set_compute_device_param) by setting them for
GenParamName:
-
'alloc_pinned' If 'true', the output image matrices of all operators are created in page locked (so called βpinnedβ) memory.
-
'asynchronous_execution' If 'true', operators executed on the compute device do not wait for the device computations to finish but return after initiation the computations.
-
'buffer_cache_capacity' Maximum size (in bytes) of the compute device buffer cache.
-
'buffer_cache_used' Current size (in bytes) of the compute device buffer cache.
-
'image_cache_capacity' Maximum size (in bytes) of the compute device image cache.
-
'image_cache_used' Current size (in bytes) of the compute device image cache.
-
'pinned_mem_cache_capacity' Maximum size (in bytes) of the page locked (pinned) memory cache.
-
'pinned_mem_cache_used' Current size (in bytes) of the page locked (pinned) memory cache.
Execution informationπ
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: local (may only be called from the same thread in which the window, model, or tool instance was created).
-
Processed without parallelization.
Parametersπ
DeviceHandle (input_control) compute_device β (handle)
Compute device handle.
GenParamName (input_control) string β (string)
Name of the parameter to query.
Default: 'buffer_cache_capacity'
List of values: 'alloc_pinned', 'asynchronous_execution', 'buffer_cache_capacity', 'buffer_cache_used', 'image_cache_capacity', 'image_cache_used', 'pinned_mem_cache_capacity', 'pinned_mem_cache_used'
GenParamValue (output_control) string(-array) β (string / integer / real)
Value of the parameter.
Resultπ
The operator get_compute_device_param returns the
value 2 (H_MSG_TRUE) if the parameters are correct. Otherwise
an exception will be raised.
Combinations with other operatorsπ
Combinations
Possible predecessors
See also
Moduleπ
Foundation