Hello
I have the Mali OpenCL SDK and I want to run the samples in Odroid-XU3 ( Ubuntu 14.04) with Mali T-628 GPU.
Can anyone please explain how to perform the cross-compiling?
Thanks
The Mali OpenCL SDK we provide already targets ARM Linux out of the box. Please follow the guide provided with the SDK in order to successfully compile and run these samples.
I may be saying a stupidity but why not try direct compilation with the libs already ported by linaro ?
by using libclc-dev, may the Mali T-628 is not already implemented, i do not try it.
is libclc-dev basically a shim for the purposes of linking? No reason that wouldn't work for compilation purposes, of course you would still need the real implementation at runtime.
Unfortunatly i have no idea on this, due of i dont try it personaly
@Michael McGeagh ackmicro chrisvarns .
The documentation suggests installation of Sourcery CodeBench Lite for Arm EABI. Can i do this way?
Or i will use libclc-dev? But all i know is that libclc is an open implementation of the OpenCL C programming language. How do i use it?
Can anyone help?
Ignore libclc-dev, none of us have ever heard of it It's probably a CPU implementation or just a shim for linking against. In any case it 99.9% likely won't use the GPU.
Also ignore CodeBench, that is definitely out of date. I'd use a recent linaro toolchain.
Cheers,
Chris
aravind, you can use any cross compiler of choice, you do not explicitly have to use Sourcery CodeBench Lite for ARM EABI.
Alternatively, as ackmicro has mentioned, you can look at building the SDK natively on your XU3.
I do not believe the SDK supports this out of the box, so some modification may be necessary... I have not tried myself so cannot say for certain.
Hope it helps,
Michael McGeagh
As i say i've never experiented libclc-dev, but if you are on odroid-U3 it's an official ubuntu package https://launchpad.net/ubuntu/raring/armhf/opencl-headers/1.2-2012.04.18a-1
But i repeat i never test it personally
Thanks Michael
But ur above reply is antithetical to what u gave earlier. Does Mali SDK provide support to run out of box ?
If no can i use android ndk to do cross-compilation ?
Thks
To clarify...
The Mali OpenCL SDK supports - out of the box - ARM Linux only, and not Android.
This thread is explicitly asking about Ubuntu 14.04 support, which is Linux, which the SDK does support.
I think you have this thread and your other thread (asking about Android) mixed up.
You would not want to use Android NDK in order to make binaries to run under Ubuntu Linux on your ARM device.
Android binaries are not compatible with Linux and vice versa
So I could just use linaro toolchain instead of Code Bench and follow the documentation to run the sample cpp files ? chrisvarns
That is correct yes, linaro toolchains are to be advised for ARM Linux platforms.