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

   This finishes the work started in https://github.com/apache/tvm/pull/11173 
to support
   'external codegen' targets in the N build-like API surfaces.
   
    - It turns out it's ok if a build is given only a single 'external codegen' 
target, so remove that check
      in CompilationConfig::Init. When Collage builds a 'candidate partition' 
it does so for a single target.
      As far as Collage is concerned it does not care whether the target is 
regular (eg Target("cuda")), or
      for a specific external codegen (eg Target("cutlass")), it just passes 
the target into the build.
   
    - Add CompilationConfig::FindPrimitiveTargetForKind which I'll later need 
to retrieve
      the external codegen Target instance corresponding to a "Compiler" 
attribute value.
   
    - Target.update_target_host_consist was supporting three API styles:
       - single target
       - map from device type to target
       - map from target to IRModule (for the ir_to_runtime API)
      I replaced all those calls with a more specialized 'canonicalize' call:
       - Target.canonicalize_target_and_host
       - Target.canonicalize_multi_targets_and_host
       - Target.canonicalize_target_map_and_host
      In particular, all the tuning interfaces (task extraction, tuning, tuning 
records) all explicitly
      *do not* support multiple targets since the underlying code just doesn't 
support that.
   


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