Hello
I am having the Mali Opencl SDK v1.1.0
I want to run those samples in Android.
I am having OpenCL libraries so that s not an issue.
But i want to generate the activity files and native files for the corresponding cpp files.
Plse help me out.
Thks
Hi Aravind,
There is no reason in principle that you shouldn't be able to build and run the OpenCL samples on your laptop - all you need are suitable drivers and CL headers. You would need to check the make of the GPU in your laptop and see if such a driver is available, or indeed whether there is a driver that will allow OpenCL to run on whatever CPU you are using. This is all going to be dependent on the particular hardware specification of your laptop, and a question you would need to ask the manufacturers of the GPU or CPU.
Hope that helps,
Tim
Thanks Tim for ur response.
I hv actually pulled the openCL library from the Mali T-628 gpu ( Odroid-xu3) and i hv installed in my laptop.But as ur saying my lap doesnt hv a gpu so trying to run the OpenCL code will not be a good idea as the very objective of OpenCL i.e better compute wont be achieved.
So if I want to run the cpp file in the Odroid-xu3 ( there are no problems of drivers here ) what should i do ?
Is it enough if i just transfer the file to the board and then run?
Aravind
The libOpenCL.so from your Odroid is built for ARM and Android, so it is binary incompatible with your X86 Windows/Linux laptop, regardless of GPU.
Hth,
Chris
Thks Chris.
You'll need to build a binary for your device using the NDK toolchains available, and then run that on the device. You won't be able to run the .cpp file without compiling it first and you won't be able to run any binary you've compiled with the host GCC toolchain either as this will be binary incompatible with the development platform.
Thanks Chris.
ndk-build NDK_APP_APPLICATION_MK=<file> --> rebuild, using a specific Application.mk pointed to by the NDK_APP_APPLICATION_MK command-line variable.
-------------------
Application.mk:
APP_ABI := armeabi-v7a
APP_PLATFORM := android-19
APP_STL := gnustl_static
APP_CPPFLAGS += -fexceptions -frtti.
------------------
Will this work?
Alternatively,I boot Odroid-xu3 in Ubuntu and then install Mali SDK and compile the cpp sources. Will it run?