Skip to content
Snippets Groups Projects
Commit bebcfe33 authored by patmjen's avatar patmjen
Browse files

Update Python version for guide

parent e646fe92
No related branches found
No related tags found
No related merge requests found
...@@ -29,13 +29,15 @@ a100sh ...@@ -29,13 +29,15 @@ a100sh
2. Load modules for Python by entering: 2. Load modules for Python by entering:
``` ```
module load python3/3.8.9 module load python3/3.9.14
module load numpy/1.19.5-python-3.8.9-openblas-0.3.13 module load numpy/1.23.3-python-3.9.14-openblas-0.3.21
module load scipy/1.5.4-python-3.8.9 module load scipy/1.9.1-python-3.9.14
module load cuda/11.0 module load matplotlib/3.6.0-numpy-1.23.3-python-3.9.14
module load cuda/11.6
``` ```
We load `numpy` and `scipy` as modules, since the HPC team have made optimized versions for the HPC cluster. We load `numpy`, `scipy`, and `matplotlib` as modules, because the HPC team have made optimized versions for the HPC cluster.
NOTE: this uses Python 3.8 but others are available.
> __NOTE:__ This guide uses Python 3.9 and CUDA 11.6 but other versions are available.
3. Create a virtualenv by running: 3. Create a virtualenv by running:
``` ```
...@@ -62,10 +64,11 @@ You should now be able to install packages with pip install <PACKAGE> as normal. ...@@ -62,10 +64,11 @@ You should now be able to install packages with pip install <PACKAGE> as normal.
2. Load modules for Python by entering: 2. Load modules for Python by entering:
``` ```
module load python3/3.8.9 module load python3/3.9.14
module load numpy/1.19.5-python-3.8.9-openblas-0.3.13 module load numpy/1.23.3-python-3.9.14-openblas-0.3.21
module load scipy/1.5.4-python-3.8.9 module load scipy/1.9.1-python-3.9.14
module load cuda/11.0 module load matplotlib/3.6.0-numpy-1.23.3-python-3.9.14
module load cuda/11.6
``` ```
We load `numpy` and `scipy` as modules, since the HPC team have made optimized versions for the HPC cluster. We load `numpy` and `scipy` as modules, since the HPC team have made optimized versions for the HPC cluster.
...@@ -77,10 +80,11 @@ You should now be able to install packages with pip install <PACKAGE> as normal. ...@@ -77,10 +80,11 @@ You should now be able to install packages with pip install <PACKAGE> as normal.
> __Pro tip:__ To make life easy, put these commands in a bash script called `init.sh`: > __Pro tip:__ To make life easy, put these commands in a bash script called `init.sh`:
> ``` > ```
> #!/bin/bash > #!/bin/bash
> module load python3/3.8.9 > module load python3/3.9.14
> module load numpy/1.19.5-python-3.8.9-openblas-0.3.13 > module load numpy/1.23.3-python-3.9.14-openblas-0.3.21
> module load scipy/1.5.4-python-3.8.9 > module load scipy/1.9.1-python-3.9.14
> module load cuda/11.0 > module load matplotlib/3.6.0-numpy-1.23.3-python-3.9.14
> module load cuda/11.6
> >
> source <VENV_NAME>/bin/activate > source <VENV_NAME>/bin/activate
> ``` > ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment