https://github.com/tzutalin/boost.compute-android
Boost.Compute library for Android. A C++ Computing Library for OpenCL https://github.com/boostorg/compute
https://github.com/tzutalin/boost.compute-android
Last synced: 27 days ago
JSON representation
Boost.Compute library for Android. A C++ Computing Library for OpenCL https://github.com/boostorg/compute
- Host: GitHub
- URL: https://github.com/tzutalin/boost.compute-android
- Owner: tzutalin
- License: other
- Created: 2016-05-25T14:52:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T13:26:51.000Z (about 9 years ago)
- Last Synced: 2025-04-02T20:38:33.337Z (2 months ago)
- Language: C
- Size: 18.8 MB
- Stars: 23
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boost.Compute-Android
## Purpose
Boost.Compute-Anroid is a GPU/parallel-computing library for C++ based on OpenCL for Android platform
## Requirements
* Prepare a Android device* [Download and setup NDK](https://github.com/tzutalin/android-ndk-downloader)
## 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.0061Compare with STL sort without Boost.Compute
generate random 10000 numbers for stl to sort
cost time:0.00234
```