Skip to content

Commit dafefd7

Browse files
committed
Small edits to the exercises for day 3 for tetralith
1 parent 0ccf686 commit dafefd7

12 files changed

+19
-74
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# Change to your own project id!
33
#SBATCH -A naiss2025-22-934
44
#SBATCH -t 00:05:00
5-
#SBATCH -n 4
5+
#SBATCH -n 32
66
#SBATCH -o output_%j.out # output file
77
#SBATCH -e error_%j.err # error messages
88

99
# Set a path where the example programs are installed.
1010
# Change the below to your own path to where you placed the example programs
11-
MYPATH=/proj/hpc-python-spring-naiss/<mydir-name>/HPC-python/Exercises/examples/programs/
11+
MYPATH=/proj/courses-fall-2025/users/<mydir-name>/Exercises/day3/programs/
1212

1313
ml purge > /dev/null 2>&1
1414
ml buildtool-easybuild/4.8.0-hpce082752a2 GCC/13.2.0 OpenMPI/4.1.6 mpi4py/3.1.5
1515

16-
mpirun -np 4 python $MYPATH/integration2d_mpi.py
16+
mpirun -np 32 python $MYPATH/integration2d_mpi.py

Exercises/day3/nsc/pandas_matplotlib-batch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
# Change to the directory where the data files and program are located
1010
# Change the below to your own path to where you placed the example programs
11-
cd /proj/hpc-python-spring-naiss/<mydir-name>/HPC-python/Exercises/examples/programs/
11+
cd /proj/courses-fall-2025/users/<mydir-name>/Exercises/day3/programs/
1212

1313
# Remove any loaded modules and load the ones we need
1414
module purge > /dev/null 2>&1
15-
module load buildtool-easybuild/4.8.0-hpce082752a2 GCC/11.3.0 OpenMPI/4.1.4 Python/3.10.4 SciPy-bundle/2022.05 matplotlib/3.5.2 Tkinter/3.10.4
15+
module load buildtool-easybuild/4.8.0-hpce082752a2 GCC/11.3.0 OpenMPI/4.1.4 matplotlib/3.5.2 SciPy-bundle/2022.05 Tkinter/3.10.4
1616

1717
# Run your Python script
18-
python pandas_matplotlib-batch-tetralith.py
18+
python pandas_matplotlib-batch.py

Exercises/day3/nsc/run_mmmult.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66

77
# Set a path where the example programs are installed.
88
# Change the below to your own path to where you placed the example programs
9-
MYPATH=/proj/hpc-python-spring-naiss/<mydir-name>/HPC-python/Exercises/examples/programs/
9+
MYPATH=/proj/courses-fall-2025/users/<mydir-name>/Exercises/day3/programs/
1010

1111
module purge > /dev/null 2>&1
12-
module load buildtool-easybuild/4.8.0-hpce082752a2 GCC/13.2.0 SciPy-bundle/2023.11
12+
module load Python/3.11.5
13+
module load buildtool-easybuild/4.9.4-hpc71cbb0050 GCC/13.2.0
14+
module load SciPy-bundle/2023.11 Python-bundle-PyPI/2023.10
15+
module load JupyterLab/4.2.0
1316

1417
# Run your Python script
1518
python $MYPATH/mmmult.py

Exercises/day3/nsc/run_serial_virtualenv.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,19 @@
55

66
# Set a path where the example programs are installed.
77
# Change the below to your own path to where you placed the example programs
8-
MYPATH=/proj/<your-projecct-storage>/<mydir-name>/HPC-python/Exercises/examples/programs/
8+
MYPATH=/proj/courses-fall-2025/users/<mydir-name>/Exercises/day3/programs/
99

1010
# Load any modules you need. This is an example
11-
ml buildtool-easybuild/4.8.0-hpce082752a2 GCC/11.3.0 OpenMPI/4.1.4 matplotlib/3.5.2
11+
module load Python/3.11.5
12+
module load buildtool-easybuild/4.9.4-hpc71cbb0050 GCC/13.2.0
13+
module load SciPy-bundle/2023.11 Python-bundle-PyPI/2023.10
14+
module load JupyterLab/4.2.0
1215

1316
# Activate your virtual environment.
1417
# CHANGE <path-to-virt-env> to the full path where you installed your
15-
# virtual environment. For instance, the vpyenv created in the course
16-
# would work with this example
18+
# virtual environment.
1719
# Example: /proj/<storage-dir>/<mydir-name>/virtenv
1820
source <path-to-virt-env>/bin/activate
1921

2022
# Run your Python script - remember to add the name of your script
21-
python $MYPATH/seaborn-example.py
23+
python $MYPATH/virt-example.py

Exercises/day3/nsc/run_sum-2args.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Set a path where the example programs are installed.
77
# Change the below to your own path to where you placed the example programs
8-
MYPATH=/proj/hpc-python-spring-naiss/<mydir-name>/HPC-python/Exercises/examples/programs/
8+
MYPATH=/proj/courses-fall-2025/users/<mydir-name>/Exercises/day3/programs/
99

1010
# Load any modules you need
1111
module purge > /dev/null 2>&1

Exercises/day3/programs/pandas_matplotlib-batch-alvis.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

Exercises/day3/programs/pandas_matplotlib-batch-cosmos.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

Exercises/day3/programs/pandas_matplotlib-batch-kebnekaise.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

Exercises/day3/programs/pandas_matplotlib-batch-pelle.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)