Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish support for list-of-targets #11382

Merged
merged 12 commits into from
May 23, 2022

Commits on May 22, 2022

  1. Finish support for list-of-targets

    This finishes the work started in apache#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.
    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    5dfaf07 View commit details
    Browse the repository at this point in the history
  2. - Lints

    - Revert unintended changes
    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    5f8dce6 View commit details
    Browse the repository at this point in the history
  3. - more lints

    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    995778e View commit details
    Browse the repository at this point in the history
  4. - Fix model_library_format handling of target.

    - Improve comments in compilation_config.h
    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    ea0ac06 View commit details
    Browse the repository at this point in the history
  5. - Lints

    - Update target/target_host params documentation
    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    5f11a25 View commit details
    Browse the repository at this point in the history
  6. - Fix micro library format tests

    - Rev micro library format from 5 to 6
    - Use Target.current() in a few places
    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    81a75a2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    31a1585 View commit details
    Browse the repository at this point in the history
  8. - Woops, one more device: target map left

    - Handle host already being in Target
    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    c9687a5 View commit details
    Browse the repository at this point in the history
  9. - lint

    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    de2ffd1 View commit details
    Browse the repository at this point in the history
  10. - lint

    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    1843254 View commit details
    Browse the repository at this point in the history
  11. - Bug with append

    - Take device type from target
    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    5291e5b View commit details
    Browse the repository at this point in the history
  12. - Fix hexagon

    mbs-octoml committed May 22, 2022
    Configuration menu
    Copy the full SHA
    715daab View commit details
    Browse the repository at this point in the history