Forums - setBuilderOptions slow

1 post / 0 new
setBuilderOptions slow
gzh_zc
Join Date: 9 Jan 18
Posts: 1
Posted: Wed, 2018-03-28 21:44
Hello,
 
We try to use snpe  to support AI operations; but the setBuilderOptions( ) function is not fast enough.
 
We don‘t know if it is normal?
And, how to shorten the time of “setBuilderOptions( )”? 
 
Details as follows:
 
On sdm450 device : CPUruntime 500 - 700ms , GPUruntime 4000ms. 
 
On Snapdragon810 : CPUruntime 400 - 500 ms, GPUruntime 1300ms.
 
We tryed snpe1.8.0  1.10.1  1.12.0 and the last 1.13.0,they spent about the same time。
 
We used examples\NativeCpp:
 examples\NativeCpp\SampleCode\jni\main.cpp
      std::unique_ptr<zdl::SNPE::SNPE> snpe = setBuilderOptions(container, runtime, udlBundle, useUserSuppliedBuffers);
 
examples\NativeCpp\SampleCode\jni\SetBuilderOptions.cpp
      std::unique_ptr<zdl::SNPE::SNPE> snpe;
      zdl::SNPE::SNPEBuilder snpeBuilder(container.get());
      snpe = snpeBuilder.setOutputLayers({})
         .setRuntimeProcessor(runtime)
         .setUdlBundle(udlBundle)
         .setUseUserSuppliedBuffers(useUserSuppliedBuffers)
         .build();
 
wish reply, thank you.
 
 
 
  • Up0
  • Down0

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.