GridTools
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners 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 No publishing access yet

      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.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      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
    • 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 Help
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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners 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 No publishing access yet

    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.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    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
    # [DaCe] Optimization IX <!-- [DaCe] Optimization IX -- Потёмкин Оптимизатор Потёмкин --> - Shaped by: Philip - Appetite (FTEs, weeks): - Developers: <!-- Filled in at the betting table unless someone is specifically required here --> ## Problem We essentially continue our work on the DaCe optimizer. The current state is as follows: - [`15_to_28`](https://github.com/C2SM/icon4py/pull/772): Currently cleaned up by Hannes, however, according to Christoph the corrector is kind of done, while the predictor not. Giacomo has started with it, but unclear if he continues. - `29_to_37`: Is currently handled by Christoph no EAT known. - `39_to_60`: Very near its completion, currently handled by Ioannis. The work would be pretty straight forward from what we have done before. However, it was suggested that the stencils are first cleaned up, before new stencils are analyzed. We consider this as a dependency or even a task in the scope of this project, however, we do not handle it. ### Branches Here are the branches to use: - ICON4Py: [`all_opts`](https://github.com/C2SM/icon4py/pull/812) (probably needs an update) + `main`. - GT4Py: `main`. - Benchmark Repo: `all_opts`. #### Left Overs A list of standing issues in DaCe and/or GT4Py can be found [here](https://hackmd.io/tZ3BKzwNTlWwv81fW2H2ww). In previous cycle this was part of the respective shaping document but it was now decided that it should become its own document. Something that has become urgent is the `n_lev` issue, which is caused is related to the promotion of a `Scalar` to a `symbol` on an `InterstateEdge`, however, we are working on. ## Appetite As long as it takes. ## Solution ## No-Go ## Rabbit holes Uncountable. ## Important TODOs - [ ] Failing verification - [ ] `dy_15_to_28_predictor` - Multiple writes (race conditions) in multiple access nodes - [x] `calculate_nabla2_and_smag_coefficients_for_vn` - ~~Started failing after introducing only using the default stream. Not sure why. SDFG looks simple~~ - Problem with https://github.com/GridTools/gt4py/pull/2178 - It seems that the same bug that affects `apply_diffusion_to_theta_and_exner` is the same. - [x] `apply_diffusion_to_theta_and_exner` - Problem with https://github.com/GridTools/gt4py/pull/2178 - Philip tackles this - [ ] DaCe transformations - [ ] Enable VerticalMapFusion only if all the input edges of an AccessNode are generated by maps - See `dy_41_to_60_corrector` SDFG where the same map is split between `1:14` and `14:80` (issue originates from the pattern shown below around `next_w`) - ![image](https://hackmd.io/_uploads/rJWqdh4Pgx.png) - [ ] Fix `next_w` copies in `41_to_60_corrector`/`39_to_60_predictor` - ![image](https://hackmd.io/_uploads/rJcyK24Pex.png) - [ ] Check `30_to_38` to see if there's anything to improve - [x] Corrector/predictor in SL2 look good - [x] See SL1 performance overhead for predictor below - [ ] Other performance aspects - [ ] Compare SDFGs of stencils that have differences between SL1 and SL2 performance ## Progress - [ ] `15_to_28` - [x] https://github.com/C2SM/icon4py/pull/772 - [x] Check if the corrector is really okay. - [ ] Check predictor when ready --> failing - [x] Check the state of the current integration into the benchmark repo (fixed values and flavors). - [x] Update the OpenACC reference time. - [x] Actual work: - [x] Fix `ConstantSubstitution` for `AccessNode`s as well - [x] Check why with the current version is failing - [ ] `30_to_38` - [ ] Ask Christoph when it is done and how its state is. - [ ] See https://github.com/C2SM/icon4py/pull/802 - [x] Find out which flavor there are and which are the correct values. - [x] Integrate into the optimizer. - [x] Determine the OpenACC reference time. - [ ] Actual work: - Check the SDFGs to see if there's anything to improve - [ ] `39_to_60` - [x] Write `41_to_60_corrector` in a single fieldop - [x] Not really possible because `next_w` and `vertical_mass_flux` need to be written for one extra level - [x] Check if they really have to be written for this extra level by running the `timeloop` tests in `icon4py` - [x] Write `39_to_60_predictor` in a single fieldop - [x] Same as above - [x] Symbol substitution fails for `n_lev` if it's set from the `gtx.program` - [x] Works if it's passed as a parameter to the `gtx.program` and then to the `gtx.fieldop` - [x] Need Edoaro's fix for the `symbolic expressions` - [ ] https://github.com/C2SM/icon4py/pull/784 - [x] Check why 41_to_60_corrector verification fails on GPU only with benchmark_2 - [ ] Check why CI needs specific parallelism otherwise CUDA_ILLEGAL_ADDRESS_ERROR - [ ] Check SL1 vs SL2 performance - [ ] In `VerticalMapFusion` check if there are cases where we can fuse maps that are before/after an AccessNode that has overlapping edges - To fuse successfully the maps in this case we would have to duplicate the computations of the overlapping range which might not be beneficial

    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
    Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    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