WeiCheng14159 / bazel-android-opencl

Run OpenCL program on MOBILE GPU (Qualcomm & ARM) !

Home Page:https://sorrythenameistaken.blogspot.com/2018/06/compile-opencl-program-for-embedded-gpu.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To build this example, execute following commands on HOST machine (i.e. Mac)


cd opencl-info
./android_build.sh

To execute the compiled binary on Android devices, execute the following commands on TARGET device (i.e. A rooted Android Phone)


cd /data/local/tmp
./opencl-info

The program was tested on Snapdragon 835 (Adreno 540 GPU) and MediaTek Helio X20 (Mali T880 GPU).

Modify libopencl.BUILD and BUILD to switch between the two or add a new OpenCL device driver from your phone.

alt text

About

Run OpenCL program on MOBILE GPU (Qualcomm & ARM) !

https://sorrythenameistaken.blogspot.com/2018/06/compile-opencl-program-for-embedded-gpu.html


Languages

Language:C++ 90.3%Language:Python 7.8%Language:Shell 1.9%