Giter Site home page Giter Site logo

opencldemo's Introduction

OpenCLDemo

Demo of running OpenCL for Android phones both with or without OpenCL library in stock ROM.

This demo directly supports Google Pixel 2, which is running Android Oreo stock ROM but does not have OpenCL libraries. It has been tested to work on Nexus 5, Nexus 6P (both don't have OpenCL libraries). The demo also works on Redmi Note 4X (nikel, MTK) which has ARM Mali T880 GPU.

OpenCL Configurations for Phones having no OpenCL libraries:

  • Pixel 2 stock ROM is Android 8.1. The code in this repo is configured for that. Just download the code and ./gradlew iDeb, you are good to go.
  • I tested Nexus 5 running LineageOS 15.1 (based on Android 8.1), just push the libOpenCL.so to your phone. You can do it by first enable adb root in the developer options, then adb root; adb remount;, adb push libOpenCL.so /system/lib/, and you also need to append libOpenCL.so to the file /system/etc/public.libraries.txt, reboot your phone. It should work now.

For Nexus 5, you can ignore jniLibs, those are only for non rooted phones(in this repo for Pixel 2 only).

I also made it work on stock ROMs for Nexus 5 and Nexus 6P. For more on how to get OpenCL work on Android Phones with/without stock ROMs (especially with newer Androids like Nougat or Oreo), I'll put the details in my blog. Stay tuned.

Modified from Sony Example

opencldemo's People

Contributors

csarron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

opencldemo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.