tzutalin / Boost.Compute-Android

Boost.Compute library for Android. A C++ Computing Library for OpenCL https://github.com/boostorg/compute

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boost.Compute-Android

Purpose

Boost.Compute-Anroid is a GPU/parallel-computing library for C++ based on OpenCL for Android platform

Requirements

Setup

$ ./envsetup

Build and run the first sample, sort.cpp

Make sure connecting to an Android device

$ adb devices

Build and run

$ ./build.py --test

Result on terminal:

    get the default compute device
    get name:QUALCOMM Adreno(TM)
    get global memory:956149760
    get local memory:8192
    get compute_units:4
    get device type:4
    create a compute context and command queue
    generate random 10000 numbers on the host
    create vector on the device
    copy data to the device
    sort data on the device
    copy data back to the host
    cost time:1.0061

    Compare with STL sort without Boost.Compute
    generate random 10000 numbers for stl to sort
    cost time:0.00234

About

Boost.Compute library for Android. A C++ Computing Library for OpenCL https://github.com/boostorg/compute

License:Other


Languages

Language:C 87.7%Language:Python 6.4%Language:C++ 3.2%Language:Shell 1.4%Language:Makefile 1.4%