How to get started with OpenCL on Android OS

Updated on 27-Oct-2014
HIGHLIGHTS

The main focus for the tutorial is to show how to use OpenCL in an Android application, how to start writing OpenCL code, and how to link to OpenCL runtime.

OpenCL™ Basic Tutorial for Android* OS provides guidelines on using OpenCL in Android applications. The tutorial is an interactive image processing Android application.
The main focus for the tutorial is to show how to use OpenCL in an Android application, how to start writing OpenCL code, and how to link to OpenCL runtime. The tutorial shows a typical sequence of OpenCL API calls and general workflow to get a simple image processing kernel running with an animation on an OpenCL device. Advanced topics like efficient data sharing or Android OpenCL performance BKMs are out of the scope of this tutorial.

Complexity Level: Novice
Development Platform: Any
Target Platform: Android* OS 4.2.2 and higher
Target Device: GPU device on Android* devices

NOTE:
Android emulator does not provide GPU OpenCL device support. To run the sample on Android emulator, change target OpenCL device type from GPU to CPU by replacing CL_DEVICE_TYPE_GPU to CL_DEVICE_TYPE_CPUat line 451 of the jni/step.cpp file.

For more information about the sample refer to the sample User's Guide inside the sample package.

* OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission by Khronos.

For more such Android resources and tools from Intel, please visit the Intel® Developer Zone

Connect On :