PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Post Reply
User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Mon Oct 14, 2013 8:58 pm

===============================================================================================
Update!

After registration process with Imagination, you download the OpenCL SDK package for Android from Imagination.

According to "Imagination GPU Compute Test Platform.Quick Start Guide.1.0.17.External.pdf ",
we need to use the Android-ndk-r8b to build the OpenCL example.

But we could find only the Android-ndk-r9b.
If you build the OpenCL example with NDK-r9b version, you will meet this error.

Code: Select all

/media/codewalker/92fc070a-3bc1-43e0-af27-03d08ba9dd3e/home/codewalker/projects/OpneCL_SDK/OpenCL_for_ODROID-XU/SDKPackage_OCL_OGLES2/Shell/OS/Android/PVRShellOS.cpp:410:81: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors

make: *** [obj/local/armeabi/objs/OCL_OGLES2ImageConvolution/Shell/OS/Android/PVRShellOS.o] Error 1
To fix this issue, we should comment out a line in the "SDKPackage_OCL_OGLES2/Shell/OS/Android/PVRShellOS.cpp"
Line 410

Code: Select all

402 /*!***********************************************************************
403  @Function      OsDisplayDebugString
404  @Input         str     string to output
405  @Description   Prints a debug string
406 *************************************************************************/
407 void PVRShellInit::OsDisplayDebugString(char const * const str)
408 {
409     const char* pszAppName = m_pShell->m_pShellData->pszAppName;
410     //__android_log_print(ANDROID_LOG_INFO, pszAppName ? pszAppName : "PVRShell", str);
411 }
The OpenCL example shows the OpenCL driven fast image convolution.
opencl_test.png
===============================================================================================
Original Link.
http://www.imgtec.com/powervr/insider/gpu_compute/

OpenCL on PowerVR GPUs

Imagination has been one of the early pioneers of mobile GPU compute, being the first mobile IP vendor to achieve OpenCL conformance on its PowerVR SGX GPU IP family. To encourage wider adoption of GPU compute in mobile, Imagination is inviting GPU compute developers to enrol in our EAP (Early Access Program) initiative.

If you’re a developer and you would like to take advantage of this exciting opportunity, please complete the below registration form. Make sure to provide as much detail as you can in the ‘Project description’ section of the form; this will allow us to select a limited number of projects that are suitable for mobile use cases.

Though not a comprehensive list, here are some of the following areas of particular interest:

* Image processing: computational photography (image filters and effects, HDR imaging, noise reduction for low cost sensors, etc.), face detection and beautification (red-eye removal, smile/blink detection, etc.), augmented reality, UI control
* Audio processing: voice recognition, synthesis and control, audio effects, noise cancellation, beamforming (for directional microphones and/or speakers)
* Video processing: multi-standard video encoding/decoding (HEVC, VP9, etc.), noise reduction for low cost sensors, video filters and effects (increasing brightness in low light conditions, anti-shaking and image stabilizing, etc.)

Available platforms

PowerVR Series5XT GPUs
Hardkernel, a hardware supplier specialized in affordable open development platforms, has recently released the high-performance, low-cost ODROID-XU development board.

With ODROID-XU, developers can access the following applications programming interfaces (APIs):

* Full OpenGL ES 2.0 for Android
* OpenCL EP 1.1 for Android
* Renderscript and Filterscript for Android

The combination of these capabilities allows developers to create new and compelling applications for mobile devices, using the full potential of the PowerVR SGX544MP3 GPU from Imagination.

* You need to register to access the SDK and documents via this link.
* You may not like this registration process, but you may get the technical support from Imagination directly.
http://www.imgtec.com/powervr/insider/gpu_compute/

forever13639
Posts: 3
Joined: Thu Oct 24, 2013 2:23 pm
languages_spoken: korean
ODROIDs: ODROID-XU
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by forever13639 » Fri Oct 25, 2013 8:32 am

I want to use opencl on ubuntu.
If I got this sdk, Can I use opencl on ubuntu on ODROD-XU?

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by mdrjr » Fri Oct 25, 2013 9:35 am

Nope you can't. We are facing some several issues with PVR DDK for Ubuntu.

Roger H.
Posts: 8
Joined: Thu Oct 24, 2013 12:39 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by Roger H. » Fri Oct 25, 2013 2:37 pm

Hello,
on this page [http://www.imgtec.com/corporate/newsdet ... NewsID=789 ] it is said, that opencl is already available for linux and the odroid-xu but in the forum it is said, that there is still no image for ubuntu. So does anybody know how it should be possible to use the odroid-xu with opencl in ubuntu?

regards Roger

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Fri Oct 25, 2013 3:00 pm

The news in Imagination is wrong.
There is no way to use the OpenCL in Ubuntu at this moment.

If you can use the hybris, you may access the Android OpenCL library via bionic under Ubuntu.

Roger H.
Posts: 8
Joined: Thu Oct 24, 2013 12:39 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by Roger H. » Fri Oct 25, 2013 3:14 pm

Do you know a link to an android opencl ep example that can easily be build?
Or could you possible upload a “Hello OpenCL EP” for android?
I only need easy access to opencl for the odroid-xu
Regrads

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Fri Oct 25, 2013 3:17 pm

The example code and document should be released by Imagination.
We have no right to release it.
So you need to register in that link and wait for Img's response.
http://www.imgtec.com/powervr/insider/gpu_compute/

Roger H.
Posts: 8
Joined: Thu Oct 24, 2013 12:39 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by Roger H. » Fri Oct 25, 2013 5:02 pm

Do you know another easy Android OpenCL example without waiting for hours of registration?

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Fri Oct 25, 2013 6:28 pm

Roger H. wrote:Do you know another easy Android OpenCL example without waiting for hours of registration?
I don't know.
Even I googled, there is no dev board which supports the OpenCL in the world.

BlueByLiquid
Posts: 21
Joined: Thu Sep 19, 2013 2:33 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by BlueByLiquid » Sat Oct 26, 2013 1:09 pm

odroid wrote:
Roger H. wrote:Do you know another easy Android OpenCL example without waiting for hours of registration?
I don't know.
Even I googled, there is no dev board which supports the OpenCL in the world.
THere are a fair number of examples out there. I believe I was the first person to confirm Nexus 10 drivers worked on Android 4.2.2 (and unfortunately also the first to confirm Google made those drivers not work on 4.3).

Either way, while non of my code is public, there are examples that work on the Nexus 4 as well and the nexus 10. Here is the one for the nexus 10 http://www.openclblog.com/2013/03/openc ... us-10.html which has a link to his code on github. As a side note he is the author of OpenCL in Action which is a great resource for learning OpenCL.

That code should work but you might have to tweak it because the ARM T604 support the full profile of OpenCL unlike the xdroid XU. You will have to change the System.load to point to where the OpenCL directory is on the xdroid as it is different on the Mali ARM board.

There is another example or two out there but to be honest the main issue, if you are new to android is compiling and linking to the NDK stuff with JNI.

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Sat Oct 26, 2013 2:11 pm

I didn't consider the consumer products. I focused only development boards.
Anyway, we need to wait for the Imagination's documents and examples for ODROID-XU.

youandme
Posts: 1
Joined: Fri Nov 22, 2013 1:05 am
languages_spoken: english
ODROIDs: mobile
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by youandme » Sat Nov 30, 2013 7:59 pm

odroid wrote:Original Link.
http://www.imgtec.com/powervr/insider/gpu_compute/

OpenCL on PowerVR GPUs

Imagination has been one of the early pioneers of mobile GPU compute, being the first mobile IP vendor to achieve OpenCL conformance on its PowerVR SGX GPU IP family. To encourage wider adoption of GPU compute in mobile, Imagination is inviting GPU compute developers to enrol in our EAP (Early Access Program) initiative.

If you’re a developer and you would like to take advantage of this exciting opportunity, please complete the below registration form. Make sure to provide as much detail as you can in the ‘Project description’ section of the form; this will allow us to select a limited number of projects that are suitable for mobile use cases.

Though not a comprehensive list, here are some of the following areas of particular interest:

* Image processing: computational photography (image filters and effects, HDR imaging, noise reduction for low cost sensors, etc.), face detection and beautification (red-eye removal, smile/blink detection, etc.), augmented reality, UI control
* Audio processing: voice recognition, synthesis and control, audio effects, noise cancellation, beamforming (for directional microphones and/or speakers)
* Video processing: multi-standard video encoding/decoding (HEVC, VP9, etc.), noise reduction for low cost sensors, video filters and effects (increasing brightness in low light conditions, anti-shaking and image stabilizing, etc.)

Available platforms

PowerVR Series5XT GPUs
Hardkernel, a hardware supplier specialized in affordable open development platforms, has recently released the high-performance, low-cost ODROID-XU development board.

With ODROID-XU, developers can access the following applications programming interfaces (APIs):

* Full OpenGL ES 2.0 for Android
* OpenCL EP 1.1 for Android
* Renderscript and Filterscript for Android

The combination of these capabilities allows developers to create new and compelling applications for mobile devices, using the full potential of the PowerVR SGX544MP3 GPU from Imagination.

* You need to register to access the SDK and documents via this link.
* You may not like this registration process, but you may get the technical support from Imagination directly.
http://www.imgtec.com/powervr/insider/gpu_compute/
Dear writer, It's a simple but not easy. You can use another easy Android OpenCL. That is very cool. :D

Roger H.
Posts: 8
Joined: Thu Oct 24, 2013 12:39 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by Roger H. » Fri Dec 13, 2013 6:14 pm

odroid wrote:
Roger H. wrote:Do you know another easy Android OpenCL example without waiting for hours of registration?
I don't know.
Even I googled, there is no dev board which supports the OpenCL in the world.
That's not correct.
The Freescale imx6 supports OpenCL since a long time.
So if you have a "Sabre-Lite" or other boards with the imx6 you could use OpenCL.

Hochwart
Posts: 2
Joined: Wed Sep 18, 2013 12:43 am
languages_spoken: english german italian
ODROIDs: Exynos5 Octa - ODROID XU
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by Hochwart » Sun Jan 19, 2014 5:26 am

Sorry to revive the post, but I didn't understand. I have here an Odroid - Xu, and I need to program OpenCL. I downloaded the SDK from http://www.imgtec.com, but I can't compile anything (maybe I didn't understand how use it). I pulled from the board the library libPVROCL.so under /vendor/lib which contains some OpenCL calls. But I still can't compile.

Can anyone tell me which libs I have to use and where can i get them ?

Thank you.

Hochwart

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Sun Jan 19, 2014 12:14 pm

Did you get the OpenCL SDK for ODROID-XU from Imagination?
There should be a document "ODROID-XU OpenCL.Quick Start Guide.1.0.6.External.pdf".

Hochwart
Posts: 2
Joined: Wed Sep 18, 2013 12:43 am
languages_spoken: english german italian
ODROIDs: Exynos5 Octa - ODROID XU
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by Hochwart » Tue Jan 21, 2014 9:53 pm

Hello everyone and thanks for the reply,
I didn't understand there was 2 SDK... Now I filled the form for the OpenCL SDK and I'm waiting for it.

Regards

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Tue Jan 21, 2014 10:31 pm

Yes.. you needed to get a special openCL SDK for ODROID-XU from Imagination.

User avatar
peepo
Posts: 76
Joined: Mon Feb 03, 2014 7:01 am
languages_spoken: English
ODROIDs: U3 eMMC, XU lite emmc
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by peepo » Mon Feb 17, 2014 11:59 pm

Please can you confirm that each developer needs to sign an NDA in order to participate?
I had not understood this from this thread so far.

thanks again

~:"

ie IMG are asking me to sign an NDA, and its not clear to me that this is a requirement.

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by mdrjr » Tue Feb 18, 2014 9:15 am

peepo wrote:Please can you confirm that each developer needs to sign an NDA in order to participate?
I had not understood this from this thread so far.

thanks again

~:"

ie IMG are asking me to sign an NDA, and its not clear to me that this is a requirement.
Yes you need :( Its their requirement :( Sadly... nothing we can do about it.

micrel.odroid
Posts: 15
Joined: Thu Oct 10, 2013 2:33 am
languages_spoken: english italian
ODROIDs: ODROID-XU+E ODROID-XU3
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by micrel.odroid » Thu Feb 20, 2014 4:08 am

I successfully compiled an openCL Kernel on the Android odroid-xu!

But the output info I can retrieve from some clGetDeviceInfo:

CL_PLATFORM_NAME = PowerVR SGX 544
CL_PLATFORM_VERSION = OpenCL 1.1
1 devices found
Device #0 name = PowerVR SGX
Driver version = 1.1
Global Memory (MB): 256
Global Memory Cache (MB): 0
Local Memory (KB): 1
Max clock (MHz) : 333
Max Work Group Size: 1
Number of parallel compute cores: 1

and those are complitely wrong related to the specs on the Imagination website. Is there some different runtime to use or a specific Android release?

Thank you

User avatar
odroid
Site Admin
Posts: 33043
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 296 times
Been thanked: 417 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by odroid » Thu Feb 20, 2014 12:19 pm

Because of the hot-plug feature, you can see only one GPU core.
If you run the OpenCL application, the cores will be 3 and the clock will be increased to 533Mhz.
It is a characteristic of mobile platform.

User avatar
peepo
Posts: 76
Joined: Mon Feb 03, 2014 7:01 am
languages_spoken: English
ODROIDs: U3 eMMC, XU lite emmc
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by peepo » Sat Feb 22, 2014 5:14 pm

Is this NDA offer, for corporate employees only?

I seem to be receiving a lot of chaff

cheers

Jonathan

mdrjr
Site Admin
Posts: 11733
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 17 times
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by mdrjr » Sun Feb 23, 2014 2:14 am

Nope.. it seems to works for individuals too.

iprouteth0
Posts: 19
Joined: Tue Jun 17, 2014 3:09 am
languages_spoken: english
ODROIDs: Odroid-XU lite, odroid C1
Has thanked: 0
Been thanked: 0
Contact:

Re: PowerVR GPU Compute(OpenCL) SDK (Android on ODROID-XU)

Unread post by iprouteth0 » Tue Feb 17, 2015 7:16 am

Has there been any new on release of the OpenCL SDK for linux with the PowerVR GPU? I have the Kali Linux image installed currently and as the GPU does support OpenCL, I was thinking it might be possible to get Pyrit working with OpenCL on it. I think all Pyrit really has for dependencies is Python, zlib, and OpenSSL.

https://code.google.com/p/pyrit/

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest