Mali OpenCL SDK v1.1.0
 All Classes Files Functions Variables Macros Pages
Running the Samples

How to run the Hello World samples.

Enabling Output

To see output from any of the samples in this section, uncomment the printing section:

/* Uncomment the following block to print results. */
/*
for (int i = 0; i < arraySize; i++)
{
cout << "i = " << i << ", output = " << output[i] << "\n";
}
*/

Warning: This will cause the application to print out arraySize number of elements (default size is 1000000).

C/C++ Implementation

  1. From a command prompt in the root of the SDK, run:

    cd samples/hello_world_c
    make install

    This compiles the hello world C/C++ sample code and copies all the files it needs to run to the bin folder in the root directory of the SDK.

  2. Copy this folder to the board.
  3. Navigate to the folder on the board and run the hello world binary:

    ./hello_world_c

OpenCL Implementation

  1. From a command prompt in the root of the SDK, run:

    make install

    This compiles the hello world OpenCL sample code and copies all the files it needs to run to the bin folder in the root directory of the SDK.

  2. Copy this folder to the board.
  3. Navigate to the folder on the board and run the hello world binary:

Vectorized OpenCL Implementation

  1. From a command prompt in the root of the SDK, run:

    make install

    This compiles the vectorized hello world OpenCL sample code and copies all the files it needs to run to the bin folder in the root directory of the SDK.

  2. Copy this folder to the board.
  3. Navigate to the folder on the board and run the hello world binary:

More Information

Main Tutorial: Hello World.

Find solutions for Common Issues.