Skip to content

OpenCLDemo for Redmi Note 4X (nikel, MTK), Nexus 5, Nexus 6p and Pixel 2

Notifications You must be signed in to change notification settings

csarron/OpenCLDemo

Repository files navigation

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

About

OpenCLDemo for Redmi Note 4X (nikel, MTK), Nexus 5, Nexus 6p and Pixel 2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published