Mali OpenCL SDK v1.1.0
 All Classes Files Functions Variables Macros Pages
hello_world_opencl.cpp File Reference
#include "common.h"
#include "image.h"
#include <CL/cl.h>
#include <iostream>

Go to the source code of this file.

Functions

int main (void)
 Basic integer array addition implemented in OpenCL.
 

Function Documentation

int main ( void  )

Basic integer array addition implemented in OpenCL.

A sample which shows how to add two integer arrays and store the result in a third array. The main calculation code is in an OpenCL kernel which is executed on a GPU device.

Returns
The exit code of the application, non-zero if a problem occurred.

Definition at line 25 of file hello_world_opencl.cpp.