-
Notifications
You must be signed in to change notification settings - Fork 10
Don't merge: Muphys staging branch #1097
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
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Icon4py performance on MI300 | ||
|
|
||
| ## Quickstart | ||
|
|
||
| ``` | ||
| # Connect to Beverin (CSCS system with MI300A) | ||
| ssh beverin.cscs.ch | ||
| ``` | ||
|
|
||
| In Beverin: | ||
|
|
||
| ``` | ||
| # Enter scratch directory | ||
| cd $SCRATCH | ||
|
|
||
| # Clone icon4py and checkout the correct branch | ||
| git clone git@github.com:C2SM/icon4py.git | ||
| cd icon4py | ||
| git checkout amd_profiling | ||
|
|
||
| # Pull the correct `uenv` image. *!* NECESSARY ONLY ONCE *!* | ||
| uenv image pull build::prgenv-gnu/25.12:2333839235 | ||
|
|
||
| # Start the uenv and mount the ROCm 7.1.0 environment. *!* This needs to be executed before running anything everytime *!* | ||
| uenv start --view default prgenv-gnu/25.12:2333839235 | ||
|
|
||
| # Install the necessary venv | ||
| bash amd_scripts/install_icon4py_venv.sh | ||
|
|
||
| # Source venv | ||
| source .venv/bin/activate | ||
|
|
||
| # Source other necessary environment variables | ||
| source amd_scripts/setup_env.sh | ||
|
|
||
| # Set GT4Py related environment variables | ||
| export GT4PY_UNSTRUCTURED_HORIZONTAL_HAS_UNIT_STRIDE="1" | ||
| export GT4PY_BUILD_CACHE_LIFETIME=persistent | ||
| export GT4PY_BUILD_CACHE_DIR=amd_profiling_granule | ||
| export GT4PY_COLLECT_METRICS_LEVEL=10 | ||
| export GT4PY_DYCORE_ENABLE_METRICS="1" | ||
| export GT4PY_ADD_GPU_TRACE_MARKERS="1" | ||
| export HIPFLAGS="-std=c++17 -fPIC -O3 -march=native -Wno-unused-parameter -save-temps -Rpass-analysis=kernel-resource-usage" | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -e | ||
|
|
||
| date | ||
|
|
||
| # Go to the root of the icon4py repository to run the installation from there | ||
| ICON4PY_GIT_ROOT=$(git rev-parse --show-toplevel) | ||
| cd $ICON4PY_GIT_ROOT | ||
|
|
||
| # Set necessasry flags for compilation | ||
| source $ICON4PY_GIT_ROOT/amd_scripts/setup_env.sh | ||
|
|
||
| # Install uv locally | ||
| export PATH="$PWD/bin:$PATH" | ||
| if [ ! -x "$PWD/bin/uv" ]; then | ||
| curl -LsSf https://astral.sh/uv/install.sh | UV_UNMANAGED_INSTALL="$PWD/bin" sh | ||
| else | ||
| echo "# uv already installed at $PWD/bin/uv" | ||
| fi | ||
|
|
||
| # Install icon4py, gt4py, DaCe and other basic dependencies using uv | ||
| uv sync --extra rocm7 --python $(which python3.12) | ||
|
|
||
| # Activate virtual environment | ||
| source .venv/bin/activate | ||
|
|
||
| # Install the requirements for rocprofiler-compute so we can run the profiler from the same environment | ||
| uv pip install -r /user-environment/linux-zen3/rocprofiler-compute-7.1.0-rjjjgkz67w66bp46jw7bvlfyduzr6vhv/libexec/rocprofiler-compute/requirements.txt | ||
|
|
||
| echo "# install done" | ||
| date |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| export CC="$(which gcc)" | ||
| export MPICH_CC="$(which gcc)" | ||
| export CXX="$(which g++)" | ||
| export MPICH_CXX="$(which g++)" | ||
| export HUGETLB_ELFMAP="no" | ||
| export HUGETLB_MORECORE="no" | ||
| export PYTHONOPTIMIZE="2" | ||
| export HCC_AMDGPU_TARGET="gfx942" | ||
| export ROCM_HOME="/user-environment/env/default" | ||
| export HIPCC=$(which hipcc) | ||
| export ROCM_VERSION="7.1.0" | ||
| export LD_LIBRARY_PATH=/user-environment/linux-zen3/rocprofiler-dev-7.1.0-i7wbbbgrx7jjp4o2xroyj5j263dkzplv/lib:$LD_LIBRARY_PATH | ||
| export LD_PRELOAD=/user-environment/env/default/lib/libomp.so:$LD_PRELOAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use
gt4pyv.1.19, right? So this needs to be reverted I have the impression