Forums - How to get the extremely high performance?

5 posts / 0 new
Last post
How to get the extremely high performance?
pvrtisrp
Join Date: 28 Sep 13
Posts: 47
Posted: Mon, 2013-09-30 20:53
Dear all,
 
I want to enable GPU optimization for Adreno 330 by using this compiler, 
 
but I cannot find any compiler option I should set in the user guide.
 
To speed up my app by using OpenGL ES 3.0 with Adreno 330 GPU,
 
which compiler option should I set for it?
 
I need to get the extremely high performance (fastest run time) by using 100% CPU(Krait 400) & GPU resources. 
 
Do NOT care code size, compile/link time, power, or other issues.
 
Could you give me some advices? Could you teach me how to configure the compiler?
 
For CPU, I will set -Ofast, but I have no any idea to tune compiler for GPU also. 
 
Your friendly help would be greatly appreciated.
 
Regards,
 
Cathy
  • Up0
  • Down0
Dakip Moderator
Join Date: 17 Apr 13
Posts: 14
Posted: Tue, 2013-10-01 08:21

Cathy,

The Snapdragon LLVM compiler only generates code for the CPU. To generate code for the Adreno CPU, you can use either OpenGL ES or depending on the nature of your GPU use, you could consider a compute environment such as OpenCL or Renderscript. The Adreno SDK is a source for tools and information on this:

      https://developer.qualcomm.com/mobile-development/mobile-technologies/gaming-graphics-optimization-adreno/tools-and-resources

The discussion forum for graphics topics is Mobile Gaming & Graphics Optimization forum:

    https://developer.qualcomm.com/forums/qdevnet-forums/mobile-gaming-graphics-optimization-adreno

I suggest that you post your graphics questions there. In your post here, you have some CPU questions, and as you have posted another question in the Snapdragon LLVM forum, we will pick up this tread to that question.

  • Up0
  • Down0
pvrtisrp
Join Date: 28 Sep 13
Posts: 47
Posted: Tue, 2013-10-01 18:41
Thank you,
 
Do you mean I can use OpenGL ES to speed up my app by GPU, and LLVM compiler will compile the OpenGL ES functions and really use the GPU resource (not only use CPU)?
 
But should I set any option to let compiler can compiler OpenGL ES functions?
 
(I think it belongs compiler questions.)
 
P.S. Because Google seems to remove OpenCL support from Android 4.3, so I cannot use OpenCL and Andreno SDK by any compiler.
  • Up0
  • Down0
Dakip Moderator
Join Date: 17 Apr 13
Posts: 14
Posted: Wed, 2013-10-02 07:30

If you have graphics operations for your application you can use OpenGL ES to accelerate the rendering of those objects, but OpenGL ES is not supported directly by Snapdragon LLVM (which is CPU only) and you need to use the Adreno SDK for that. 

Availability of OpenCL, and if Renderscript is a better fit for your application should be discussed on the Mobile Gaming and Graphics forum.

  • Up0
  • Down0
pvrtisrp
Join Date: 28 Sep 13
Posts: 47
Posted: Wed, 2013-10-02 18:20

Thansk a lot.

  • 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.