![]() |
VisionWorks Toolkit ReferenceDecember 18, 2015 | 1.2 Release |
Gives more control to the application of resources usage.
The application can control the target device type that will be used to execute primitives in the different execution modes:
Enumerations | |
enum | nvx_device_type_e { NVX_DEVICE_ANY = 0x0, NVX_DEVICE_CPU = 0x1, NVX_DEVICE_GPU = 0x2 } |
Defines types of devices that can execute vision functions. More... | |
Functions | |
vx_status | nvxSetNodeTargetDevice (vx_node node, vx_enum device) |
Sets the target device type for the node. More... | |
enum nvx_device_type_e |
Sets the target device type for the node.
With this function, the application can control on which device type the node is executed. In case the given device type is not supported by the node, the fuction returns an error and the function call has no effect on the node.
[in] | node | The node reference to which to assign affinity. |
[in] | device | The device type on which to execute the node. |
vx_status
enumerator. VX_SUCCESS | No errors. |
VX_ERROR_INVALID_REFERENCE | The node was not a valid reference. |
VX_ERROR_NOT_SUPPORTED | The node cannot be executed on that device type. |