Where are the OpenCL kernel sources stored when setting tgt = tvm.target.mali()?

I’ve followed nnvm/deploy_model_on_mali_gpu.py and have saved lib using export_library to the file system. Inside the tar file I can see the model (devc.cc) and lib.o but I’m wondering where the CL kernels are. Are they stored in binary form in one of these files?

Thanks,
Martyn

This may not answer your question, but if you just want to view the sources, you can try an example like https://github.com/dmlc/tvm/blob/895ef9725ffae4855e22d8d23d8d8fef5aaec7ce/tutorials/get_started.py#L155

1 Like

@MartynBliss hi, did you figure out your question? And do you know how can we add custom operators that powered by OpenCl?

HI, yes did get this figured out, and saved the sources as detailed in the comment from @egy. For custom operators, I think you would need to add at the top level, and then extend the opencl backend. There are also intrinsics you may be able to make use of.