slyubomirsky opened a new pull request #6219:
URL: https://github.com/apache/incubator-tvm/pull/6219


   In reference to [this 
RFC](https://discuss.tvm.ai/t/rfc-incorporate-existing-relay-aot-compiler-in-mainline/7393),
 this PR is intended to incorporate the existing external [Relay ahead-of-time 
(AoT) compiler](https://github.com/uwsampl/relay-aot), which was primarily 
written by @MarisaKirisame, into TVM. To start, I am simply including most of 
the files from the AoT compiler repo nearly verbatim, though the interfaces 
should be changed to better adhere to the high-level vision for TVM (especially 
since the initial code comes from a research prototype).
   
   The prototype AoT compiler operates by translating Relay ASTs directly into 
C++ code and using TVM's JIT compiler to register all primitive functions 
(i.e., the C++ code calls into TVM's operator cache to handle operators). This 
results in producing a C++ file and requires calling the system's C++ compiler 
(in the prototype, assuming it to be `clang`).
   
   I would be curious to hear others' thoughts (e.g., @jroesch @weberlo 
@tqchen) about how this compiler can be better integrated into TVM's systems. 
Based on the discussion in the RFC, it sounds that the interface should be made 
to take an IRModule and produce a runtime module that can call the compiled 
functions. Ideally the system could be made modular to allow for target 
languages other than C++


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to