How to support a new device in TVM

How to add support for unsupported GPU in TVM?

Do you mean the “unsupported GPU” doesn’t support either OpenCL or OpenGL ? There should be a programming interface to interact with the GPU, and what is that ?

Unsupported here means not mali nor nvidia. The GPU in the system I have has OpenCL interface.

The point is, generating generic Opencl didn’t show good results on the GPU, it was way slower(2.5x) than the CPU.

Under tvm/topi/python/topi/, there is intel_graphics and mali for OpenCL based GPU backends. “Unsupported” GPU optimizations can be added there, too, I think.