generated from just-the-docs/just-the-docs-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Add Eiger and Instructions to compile ICON #359
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
Merged
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7407033
Add Eiger
mjaehn eb67ff7
GitHub Action: Apply external link format
mjaehn ed8e6c0
Remove duplicate input data section
mjaehn 837c208
Split compile and run
mjaehn 4a121bb
Fix typo
mjaehn 8bf0f5d
Remove subtitles
mjaehn ddc3d2f
Add tab for Eiger in Run section
mjaehn 258fcdc
Merge branch 'main' of github.com:C2SM/c2sm.github.io into eiger
mjaehn fcab8f6
fix link
mjaehn 4e15e5f
Annika Review
mjaehn 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 |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| * [Alps](index.md) | ||
| * [Santis](santis.md) | ||
| * [Santis](santis.md) | ||
| * [Eiger](eiger.md) |
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,117 @@ | ||
| # Eiger | ||
|
|
||
| Eiger is an Alps cluster that provides compute nodes and file systems designed to meet the needs | ||
| of CPU-only workloads for the HPC Platform. For more information, please refer to the | ||
| [CSCS Documentation](https://docs.cscs.ch/clusters/eiger/). | ||
|
|
||
| C2SM only provides partial support for Eiger. Nevertheless, below you can find instructions on how | ||
| to set up ICON on Eiger. | ||
|
|
||
| ## Setting Up ICON with Spack on Eiger | ||
|
|
||
| ### 1. Pull and Start the Environment | ||
|
|
||
| ```bash | ||
| uenv image pull prgenv-gnu/24.11:v1 | ||
| uenv start --view=spack prgenv-gnu/24.11:v1 | ||
| ``` | ||
|
|
||
| ### 2. Clone and Setup Spack | ||
|
|
||
| ```bash | ||
| git clone -b releases/v0.23 https://github.com/spack/spack | ||
| source spack/share/spack/setup-env.sh | ||
| ``` | ||
|
|
||
| Set spack system config path: | ||
|
|
||
| ```bash | ||
| export SPACK_SYSTEM_CONFIG_PATH=/user-environment/config/ | ||
| ``` | ||
|
|
||
|
|
||
| ### 3. Modify Compiler Flags for ICON | ||
|
|
||
| Edit the file: `spack/var/spack/repos/builtin/packages/icon/package.pypackages.py` | ||
|
|
||
| Add the following under the line `if self.compiler.name == "gcc":`: | ||
|
|
||
| ```python | ||
| flags["LDFLAGS"].append("-Wl,--copy-dt-needed-entries") | ||
| flags["ICON_FCFLAGS"].append("-fallow-argument-mismatch") | ||
| flags["ICON_OCEAN_FCFLAGS"].extend([ | ||
| "-O3", | ||
| "-fno-tree-loop-vectorize", | ||
| "-fallow-argument-mismatch" | ||
| ]) | ||
| ``` | ||
|
|
||
| ### 4. Create and Configure Spack Environment for ICON | ||
|
|
||
| ```bash | ||
| spack env create my-icon | ||
| ``` | ||
|
|
||
| Modify the `spack.yaml` file in your `my-icon` environment. Example: | ||
|
|
||
| ```yaml | ||
| # This is a Spack Environment file. | ||
| # | ||
| # It describes a set of packages to be installed, along with | ||
| # configuration settings. | ||
| spack: | ||
| specs: | ||
| - icon+art+rte-rrtmgp+grib2 -ocean ~coupling | ||
| view: true | ||
| concretizer: | ||
| unify: true | ||
| develop: | ||
| icon: | ||
| spec: icon +rte-rrtmgp +art +grib2 -ocean ~coupling | ||
| path: /capstor/store/cscs/empa/em05/ckeller/icon-kit | ||
| compilers: | ||
| - compiler: | ||
| spec: gcc@=7.5.0 | ||
| paths: | ||
| cc: /usr/bin/gcc | ||
| cxx: /usr/bin/g++ | ||
| f77: /usr/bin/gfortran | ||
| fc: /usr/bin/gfortran | ||
| flags: {} | ||
| operating_system: sles15 | ||
| target: x86_64 | ||
| modules: [] | ||
| environment: {} | ||
| extra_rpaths: [] | ||
| - compiler: | ||
| spec: gcc@=12.3.0 | ||
| paths: | ||
| cc: /usr/bin/gcc-12 | ||
| cxx: /usr/bin/g++-12 | ||
| f77: /usr/bin/gfortran-12 | ||
| fc: /usr/bin/gfortran-12 | ||
| flags: {} | ||
| operating_system: sles15 | ||
| target: x86_64 | ||
| modules: [] | ||
| environment: {} | ||
| extra_rpaths: [] | ||
| ``` | ||
|
|
||
| !!! warning "Path to ICON code" | ||
| Ensure `develop.icon.path` points to your local ICON source code. | ||
|
|
||
| ### 5. Activate the Environment | ||
|
|
||
| ```bash | ||
| spack env activate path/to/my-icon | ||
| ``` | ||
|
|
||
| ### 6. Concretize and Install Packages | ||
|
|
||
| ```bash | ||
| spack concretize | ||
| spack install | ||
| ``` | ||
|
|
||
| `concretize` resolves dependencies, and `install` builds the packages. | ||
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.
I made a typo. This should read:
spack/var/spack/repos/builtin/packages/icon/package.pyThere 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.
Fixed in 4a121bb