This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Run OpenCL sample in Android

Hello

I want to run OpenCL sample apps on Mali T-628 gpu in Android platform.

i hv downloaded Mali OpenCL SDK.

My host system is Ubuntu 12.04

I saw entire development guides but couldnt understand.Any instructions on how to go about it?

Thks

Parents
  • Hi Chris,

        My Phone is HuaWei Mate 7, GPU is T628.

        I did as your says. And I adb push the hello_world_opencl to the /mnt/sddcard/neon. And I run the executable file, there is a error that is :

    shell@hwmt7:/mnt/sdcard/neon $ ./hello_world_opencl                           

    OpenCL error: CL_OUT_OF_HOST_MEMORY

    Creating an OpenCL context failed. /root/android-ndk-r10d/samples/hello-jni/jni/common.cpp:248

    Failed to create an OpenCL context. /root/android-ndk-r10d/samples/hello-jni/jni/hello_world_opencl.cpp:39

    1|shell@hwmt7:/mnt/sdcard/neon $

    How to fix this error? Thank you very much.

Reply
  • Hi Chris,

        My Phone is HuaWei Mate 7, GPU is T628.

        I did as your says. And I adb push the hello_world_opencl to the /mnt/sddcard/neon. And I run the executable file, there is a error that is :

    shell@hwmt7:/mnt/sdcard/neon $ ./hello_world_opencl                           

    OpenCL error: CL_OUT_OF_HOST_MEMORY

    Creating an OpenCL context failed. /root/android-ndk-r10d/samples/hello-jni/jni/common.cpp:248

    Failed to create an OpenCL context. /root/android-ndk-r10d/samples/hello-jni/jni/hello_world_opencl.cpp:39

    1|shell@hwmt7:/mnt/sdcard/neon $

    How to fix this error? Thank you very much.

Children