Is it possible to cmake tensorflow-lite GPU with backend openGL?

I saw this part TFLite GPU backend uses OpenGL ES 3.1 compute shaders or OpenCL. in README.md.

But when I built it with -DTFLITE_ENABLE_GPU=ON, it seems it only builds the openCL codes.

Checked the CMakeLists.txt, couldn’t even find any openGL source included by the build target.

So I got a bit confused, is it possible to cmake tesorflow-lite with GPU backend openGL?

1 Like

I have done it and am using it on a Quest3 headset in our Qemu based emulator with an XR screen running Debian 10 arm64 Linux. Can’t remember the exact steps but I remember finding the code there or in an earlier version and having to edit the BUILD files. I can compile the label_image example and run it.