nix-community / nix-on-droid

Nix-enabled environment for your Android device. [maintainers=@t184256,@Gerschtli]
https://nix-on-droid.unboiled.info
MIT License
1.15k stars 65 forks source link

OpenCL support #314

Open kurnevsky opened 6 months ago

kurnevsky commented 6 months ago

I got it working in termux just by installing opencl-vendor-driver, opencl-headers, opencl-clhpp, ocl-icd, clinfo and setting export LD_LIBRARY_PATH=/system/vendor/lib64:$LD_LIBRARY_PATH.

I tried to create icd file with link to /system/vendor/lib64/libOpenCL.so manually but it didn't work. opencl-vendor-driver has some magic with copying and patching vendor libOpenCL.so, maybe this helps somehow.