mbs-octoml opened a new pull request #9313:
URL: https://github.com/apache/tvm/pull/9313


   This is the first step in https://github.com/apache/tvm-rfcs/pull/38 to 
bring devices
   and targets together when doing device planning. I've gone ahead and also 
included a
   memory scope in this object since we will also need to propagate memory 
scopes across
   Relay expressions once this basic preparation is in place. In the meantime 
that field will be
   left as "".
   
   Once device planning works in units of SEScopes it will be possible to 
directly read off
   the device and target for any Relay sub-expression without the need for 
TargetMaps ort
   the construction of default Targets.
   
   SEScopes also support 'Join' and 'Default' operations needed when constraint 
solving in
   the device planner. You can see those in use in my scratchpad branch:
     https://github.com/mbs-octoml/mbs-tvm/tree/mbs-scopes
   
   This PR also brings some duplicated and the ad-hoc 'default target' handling 
logic
   together into a CompilationConfig class. (Again, see the scratchpad branch 
for how that
   will end up being used). I've placed that next to SEScope since it's main 
purpose is to
     a) establish the default SEScope for primitive ops
     b) establish the SEScope for the 'host'
     c) feed a definitive vector of Targets into device planning so it can 
resolve all
        "on_device" and "device_copy" device references to their full SEScope 
form.
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to