Is OpenGL backend supported on Android devices? (without the use of WebGL)


#1

Hi,

Can OpenGL backend be used with Android devices instead off OpenCL?
I couldn’t find the information anywhere, the documentation/tutorials only mentions Vulkan and OpenCL supports but notthing about OpenGL.
If so, does adding:

USE_OPENGL = 1
ADD_LDLIBS = /path/to/libGLES.so

to apps/android_deploy/app/src/main/jni/config.mk before building the runtime app is enough?

Thank you.


#2

I get a RuntimeError: schedule not registered for 'opengl' when trying to compile a NN with the build function from the relay api, targetting aarch64-linux-android, and the java TVMContext class does not provide any opengl context, so I guess it only works as a part of webgl now.
Could someone confirm this to me please?