AnsweredAssumed Answered

How to use OpenCL on iMX8 with Android

Question asked by Dzmitry Yunitski on Jun 8, 2020
Latest reply on Jun 17, 2020 by anon nop

We try to use OpenCL on the board using MACE library. It seems OpenCL library is not accessible on the board, we're getting the following errors : 

E/linker: library "/system/vendor/lib64/" ("/vendor/lib64/") needed or dlopened by "/data/app/!/lib/arm64-v8a/" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/"]


Internet suggests to add to the /system/etc/public.libraries.txt (1, 2, 3), but that hadn't worked for us. Seems entries in the /system/etc/public.libraries.txt only list libraries at the /system/lib and not /system/vendor/lib64. So when we've added to this list device just wasn't able to boot after the reboot, complaining unable to load the

We've tried to copy to /system/lib, which produced another error since libOpenCL depends on another library, that is also not in the /system/lib, that depend on another library and so on. 


How could we correctly expose libOpenCL? Seems that there should be another public.libraries.txt listing exposed vendor libraries, but we were unable to locate one.