Function Snpe_SNPE_SetExecutionPriorityHint

Function Documentation

Snpe_ErrorCode_t Snpe_SNPE_SetExecutionPriorityHint(Snpe_SNPE_Handle_t snpeHandle, Snpe_ExecutionPriorityHint_t priority)

Sets a preference for execution priority.

Sets a preference for execution priority. Allows users to set the priority of the graph. Setting this option overwrites the previous priority. SNPE runtime is free to use this information to co-ordinate between different workloads that may or may not extend beyond SNPE.

Parameters
  • snpeHandle[in] Handle to access the SNPE object

  • priority[in] The target performance profile

Returns

true if successfully applied

Note

On the Android platform, performance is determined by the priority level. In contrast, on Windows, the operating system can adjust the priority level, which means that performance cannot be guaranteed.