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

Go to the source code of this file.

Functions

int main (void)
 Long data type (64-bit integer) OpenCL example.
 

Function Documentation

int main ( void  )

Long data type (64-bit integer) OpenCL example.

An example to calculate, for an image:

  • the sum of the squares of the pixels values
  • sum of the pixels values. Makes use of the long data type and 64-bit atomics. 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 32 of file 64_bit_integer.cpp.