Forums - DSP vs AIP Runtime

3 posts / 0 new
Last post
DSP vs AIP Runtime
prashant.b
Join Date: 17 Oct 19
Posts: 3
Posted: Thu, 2020-10-15 05:47

For the models having layers that are completely supported on NPU & DSP individually, the inference time between the AIP runtime & DSP runtime does not seem to vary much, sometimes DSP runtime giving better performance than AIP runtime.

Is AIP runtime not expected to give significantly better performance when compared to DSP runtime if all the layers are supported on NPU/HTA?

If not, what is the value add expected from AIP runtime?

  • Up0
  • Down0
gesqdn-forum
Join Date: 4 Nov 18
Posts: 184
Posted: Mon, 2020-11-09 03:09

Hi prashant,

The statement "The higher processing power of DSP will help my model perform better compared to GPU", is not always true.

We worked with  Face Expression Recognition(FER) model built using Keras and converted to the DLC file,

Comparison of Total Inference Time for GPU and DSP draws to the conclusion that  DSP performance is 60% to that of  GPU. Before drawing that conclusion we also have an account of the time consumed for RPC Execute ( acts as a communicator between CPU/GPU and DSP), SNPE Accelerator and Accelerator. On considering these mentioned parameters, it looks GPU is performing better than DSP for a single/lesser number of predictions. We can choose DSP as a run time only if we required to make a higher number of predictions using the FER model.


Request you to check the beanchmarking application from SNPE with multiple itterations and compare the results.
Here you can find the instructions on the usage of Bencharking Tool.

  • Up0
  • Down0
prashant.b
Join Date: 17 Oct 19
Posts: 3
Posted: Tue, 2020-11-10 04:57

Hi,

Thanks for your inputs.

I do understand that the DSP performance is better than GPU.

My question is whether AIP runtime that is using NPU/HTA(Hexagon Tensor Accelerator) is better than DSP or not?

The total inference time observed in AIP runtime and DSP Runtime is very close in numbers and sometimes DSP performs better than AIP. This is the case when the complete network is supported by HTA/NPU while running in AIP and there is no offloading to HVX or CPU.

So, what is the advantage of using HTA/NPU over DSP?

Request you to have a look at this : https://developer.qualcomm.com/docs/snpe/aip_runtime.html

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.