Tutorial: Getting Started with OpenCL™ on Android* OS

ID 759586
Updated 11/17/2015
Version Latest
Public

author-image

By

Download Code Sample 

Download Documentation

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_CPU at line 451 of the jni/step.cpp file.

For more information about the sample refer to the sample documentation inside the package.

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