|
1 | 1 | #!/bin/bash |
2 | | -#SBATCH -A hpc2nXXXX-YYY # Change to your own |
| 2 | +#SBATCH -A hpc2n2025-151 # Change to your own |
3 | 3 | #SBATCH --time=00:10:00 # Asking for 10 minutes |
4 | 4 | #SBATCH -n 1 # Asking for 1 core |
5 | 5 |
|
6 | 6 | # Set a path where the example programs are installed. |
7 | 7 | # Change the below to your own path to where you placed the example programs |
8 | | -MYPATH=/proj/nobackup/<your-projecct-storage>/<mydir-name>/HPC-python/Exercises/examples/programs/ |
| 8 | +MYPATH=/proj/nobackup/fall-courses/<mydir-name>/Exercises/day3/programs/ |
9 | 9 |
|
10 | | -# Load any modules you need, here for Python 3.9.5 and compatible SciPy-bundle |
11 | | -module load GCC/10.3.0 OpenMPI/4.1.1 Python/3.9.5 SciPy-bundle/2021.05 matplotlib/3.4.2 |
| 10 | +# Load any modules you need |
| 11 | +module load GCC/13.2.0 Python/3.11.5 |
| 12 | +module load SciPy-bundle/2023.11 |
| 13 | +module load Python-bundle-PyPI/2023.10 |
12 | 14 |
|
13 | | -# Activate your virtual environment. |
| 15 | +# Activate your virtual environment, which was created with the same modules loaded as bove. |
14 | 16 | # 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 |
| 17 | +# virtual environment. |
17 | 18 | # Example: /proj/nobackup/hpc2nXXXX-YYY/<mydir-name>/pythonHPC2N |
18 | 19 | source <path-to-virt-env>/bin/activate |
19 | 20 |
|
20 | 21 | # Run your Python script - remember to add the name of your script |
21 | | -python $MYPATH/seaborn-example.py |
| 22 | +python $MYPATH/virt-example.py |
0 commit comments