Jianyi Cheng
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # ASPLOS 2024 Rebuttal Response We're really grateful to the reviewers for their careful reviews and helpful feedback. We especially appreciate the enthusiasm for the approach shown by Reviewer B: "Equality saturation and a set of tastefully designed heuristics for approximating code quality seem to be the right answer." We begin by addressing some concerns raised by multiple reviewers, and then respond to each reviewer in turn. ### Common Concerns #### Benchmarks Finding suitable benchmarks is a perennial problem for papers that push the limits of HLS, in part because existing benchmarks tend to be tailored to what HLS tools can already comfortably handle. SEER is amenable to programs with complex datapath blocks, control flow, or memory access patterns. In this work, we include the subset of MachSuite benchmarks (8 out of 19) in which current HLS tools are unable to achieve the optimal results. For the remaining benchmarks in MachSuite, HLS tools are already able to match expert human designers. We will more explicitly describe the benchmark selection in Section 5.1. These benchmarks are commonly used in realistic applications such as signal processing and high-performance computing. This demonstrates that our approach is broadly applicable. The scalability problem is an open challenge in both super-optimization and equality saturation. In hardware design, firstly, the modular design principles greatly help to limit the size and scope of optimization. Secondly, as observed by Reviewer B: "the bar for compile times is set so low" for hardware compilation, meaning users are willing to wait for quality results. We will clarify scalability concerns in Section 5.3 and add additional comments in the future work section. #### Why alternating between iterations of control flow rewriting and data path rewriting, not combining them? Why dynamic rewrites? This is a good question, and exploring both concurrently may offer advantages. We separated them as combining them would require significant engineering efforts in implementing all existing MLIR passes in Rust. To avoid reinventing wheels, we decided to adopt existing rewrites in MLIR and orchestrate them in egg. Specifically, we use dynamic rewrites in egg as an interface to external tools. Each dynamic rewrite will call a set of MLIR passes for analysis or transformation. We will clarify that in Section 4.3. #### Equivalence Checks The external rewrites adopted by SEER may not be verified, which could potentially lead to an non-equivalent code. To ensure correctness, we use Synopsys equivalence checker to verify the equivalence between the input code and output code. We will clarify that in Section 4.7. #### Clarification of minor issues Thank you for helping to improve the quality of the paper. We will addresses these issues in the revised draft. --- ### Reviewer A > SeerLang and $\theta$ nodes We did not use $\theta$ nodes because we did not analyze data dependences in egg. Instead, we use symbols in SeerLang to represent induction variables and memory, so that they can be translated back to MLIR for analysis. We will clarify in Section 4.2. > One cost function for extracting to enable static analyses and the other for extraction for hardware synthesis. Correct. > How often is extracting in SEER? The extraction for static analysis or transformation happen every time SEER interfaces with MLIR. This extraction is fast because we do not need to account for common sub-expressions. The extraction for hardware synthesis is slow as this stage must account for common sub-expressions. This only happens once after the exploration. We will clarify that in Section 4.6. > SEER for FPGAs This is an interesting direction. Yes, SEER can be used for exploring FPGA designs. The difference would be an FPGA-specific cost function for extracting an efficient datapath implementation. > The implementation details > LOC, language, key components of the implementation, etc.? The key components include an egg-based framework (written in ~600 lines of Rust) and a set of MLIR passes for orchestration (written in C++ and modified MLIR passes). We will clarify that in Section 4.1. > Missing citations Thanks for pointing them out. We will add them. --- ### Reviewer B > Discussion about Intel example The example is a IP free version of a resource combining algorithm that has various similar, but slightly different interpretations with various Intel's IP. Commonly it is used as write combination logic, as part of a larger state machine which is trying to maximize bus traffic. The example uses the minimization of bus accesses as a criteria and uses the bits to tracks these resources, in the IP free case these are byte enables. These small variants cause re-implementation, and due to the time critical path nature of these kind of resource management state machine the logic needs to be quick so that any decisions on dispatch can be made in few clock cycles. We will add further context in Section 5.2. --- ### Reviewer C > Non-equivalence in traditional optimization passes. That is a very interesting point. We only considered equivant rewrites but refinement would be great to discuss at the conference. > How much time does it take to verify? Is it any faster than doing end-to-end equivalence checking between the original and final programs?... The translation validation approach increases robustness as the formal equivalence checking tools are often not able to prove a complex sequence of datapath transformations. In many cases it may be unnecessary. We did not measure verification runtime as it is relatively fast (minutes) and can be run in parallel with downstream tools. > Detailed optimization time We will add further datapoints to the manuscript in Table 5. --- ### Reviewer D > Is the tool only complete with respect to the power of the static analysis? If one cannot find an invariant, the rewrite is discarded and not explored. How often does this happen? We cannot make any completeness claims in this work, but it is often the case that during the e-graph growth representations are added that enable further rewrites as the analysis tools discover an invariant. We could investigate rewrite discard rates in the full paper. > Adding power to cost function Power is challenging to estimate statically because of low-level technology information from vendors. This may be a future work. --- ### Reviewer E > Long-running kernels The problem scales with code size and complexity. Long-running kernels may have a loop with a large iteration count but a small code size. SEER can handle these kernels efficiently. > Control nodes Control nodes refer to a subset of SeerLang operations, such as `for` and `if` statements. SEER has pre-defined patterns for the cost function, so that the extractor can directly identify and extract these control nodes. > Function calls and global variables. Function calls are treated as black box ops for now, which also enables the modular design principles for better scalability. Local variables have two types: temporary variables are canonicalized in MLIR; and stack-allocated local variables are treated as memory. Global variables are not commonly used in HLS applications, because they need a register to store the information, the reset of which is impossible to assign if it is not in a SystemC module and they can create scheduling problems. We have not observed global variables in our benchmarks. We will add discussion about this in the future work section. > variable loop trip count for the cost functions In MLIR `affine` and `scf` dialects, the loop trip count is a compile-time constant. We extracted them directly using static analysis.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully