Skip to content

Commit 92489c9

Browse files
author
Lesur Geoffroy
committed
updates in preparation for asnum school
1 parent b531e72 commit 92489c9

6 files changed

Lines changed: 104 additions & 78 deletions

File tree

Readme.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,25 @@ This tutorial was prepared by Geoffroy Lesur (geoffroy.lesur@univ-grenoble-alpes
88
Deployment
99
-----------
1010

11-
You should first install idefix and this tutorial on the target machine (which can be your machine). We first follow the [idefix documentation](https://idefix.readthedocs.io/latest/) to install it, and then we clone this repository and install the tutorial.
12-
13-
Idefix installation
14-
===================
15-
16-
You can play around with this tutorial on a distant machine or on your laptop (for the asnum school, we recommend deploying on either the dgx, h200x4 or procamd machines). In any cases, you should clone this tutorial and idefix source code on the target machine, so that you can directly use these source files and test what you are doing.
11+
You can play around with this tutorial on a distant machine or on your laptop (for the asnum school, we recommend deploying on either the dgx, h200x4 or procamd machines). In any cases, you should clone this tutorial on the target machine, so that you can directly use these source files and test what you are doing.
1712

1813
We first connect to the target machine (here dgx, but change it as needed to balance the charge between users) and make a tunnel to a unix socket (which will be used by our jupyter notebook)
1914

2015
```shell
2116
ssh dgx.cbp.ens-lyon.fr -L 8888:/home/<your_login>/mysock.sock
2217
```
2318

24-
In the directory of your choice, you then clone idefix sources and our tutorial:
19+
In the directory of your choice, you then clone the tutorial to the directory `idefix-tutorial`:
2520

2621
```shell
27-
git clone --recurse-submodules https://github.com/idefix-code/idefix.git idefix.src
28-
git clone --branch asnum2026 https://github.com/idefix-code/tutorial.git
22+
git clone --branch asnum2026 https://github.com/idefix-code/tutorial.git ./idefix-tutorial
2923
```
3024

31-
Keep in mind the directory where `idefix.src` and `tutorial` have been deployed as these will become handy soon.
32-
33-
Jupyter lab deployment for the tutorial
34-
============================================
35-
36-
We first create a python environement, install what we need, and launch a jupyter lab session
25+
We then create a python environement, install what we need, and launch a jupyter lab session
3726
```shell
3827
python3 -m venv ./idefix-env
3928
source idefix-env/bin/activate
40-
pip install -r tutorial/python_requirements.txt
29+
pip install -r ./idefix-tutorial/python_requirements.txt
4130
jupyter lab --sock=~/mysock.sock
4231
```
4332

@@ -47,7 +36,7 @@ you're now good to go. On your laptop, using your favourite browser, open the li
4736
http://localhost:8888/lab?token=<your_token>
4837
```
4938

50-
Which should open your jupyter lab session running on the distant machine. From there, go to the tutorial directory noted above, and open `start.ipynb``
39+
Which should open your jupyter lab session running on the distant machine. From there, go to the tutorial directory `idefix-tutorial` created above, and open `start.ipynb`.
5140

5241

5342

SimpleSetup/problem1/read_problem.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"name": "python",
9797
"nbconvert_exporter": "python",
9898
"pygments_lexer": "ipython3",
99-
"version": "3.12.3"
99+
"version": "3.13.5"
100100
}
101101
},
102102
"nbformat": 4,

VisualisationAndPost/paraview/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Idefix paraview tutorial
22

33
This tutorial will be done in presentation mode. To reproduce what is being done
4-
in this presentation, you will need paraview>5.8 and the idefix dataset available following [this link](https://filesender.renater.fr/?s=download&token=fead5091-7308-4252-ba3c-8d740b40695a). The pdf of the presentation is [available here](slides.pdf).
4+
in this presentation, you will need paraview>5.8 and the idefix dataset available following [this link](https://cloud.univ-grenoble-alpes.fr/s/zmbbrJFECxjKWK4). The pdf of the presentation is [available here](slides.pdf).
55

66
In addition, you will need the following formula for Paraview calculator that you can directly copy/paste from this document:
77

environements/dgx.env

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Use GCC12 to compile instead of default
2+
export CXX=/usr/bin/g++-12
3+
export CC=/usr/bin/gcc-12
4+
export CPP=/usr/bin/cpp-12
5+
6+
# Use custom openmpi for cuda
7+
source /local/openmpi-cuda/bin/activate.sh
8+
9+
export OMPI_MCA_btl_smcuda_use_cuda_ipc=0
10+
export OMPI_MCA_btl_openib_want_cuda_gdr=0
11+
12+
export IDEFIX_GPU_FLAGS="-DKokkos_ENABLE_CUDA=ON -DKokkos_ARCH_AMPERE80=ON"
13+

python_requirements.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@ jupyter >= 1.1.1
22
ipympl >= 0.10.0
33
numpy>=1.16.6
44
matplotlib>=2.2.5
5-
pybind11>=2.10.0
5+
pybind11>=2.10.0
6+
scipy>=1.2.3
7+
8+
# note that no version of inifix supports Python older than 3.6
9+
inifix>=0.11.2
10+
11+
# To run the test suite, we can use pytest, mostly any version
12+
# 6.0 is the one available on system available on debian-11
13+
pytest >= 6.0

0 commit comments

Comments
 (0)