Hello,
I’m attempting to build and deploy a Relax example using C++ on a system that does not support dynamic loading. I use the following sequence to export a static library from the Relax IR module:
target = tvm.target.Target("llvm")
executable = relax.build(mod, target, exec_mode="compiled", system_lib=True)
executable.export_library("compiled_artifact.a", fcompile=cc.create_staticlib)
The generated library includes a __vmtir__main function that corresponds to the main function in the IR module.
Is the expectation that the user calls the __vmtir_main function directly (or) is there a higher level abstraction similar to the DSO approach (Deploy Relax IR using C++ API)?
Any pointers/suggestions on how to proceed?
Thanks! Ajay