Skip to content

Commit e883e17

Browse files
authored
Installation and script fixes (#324)
* Syntax correction in conda installing correct cython version * Load MPI module before activating xpsi environment or installing mpi4py
1 parent dec9787 commit e883e17

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

docs/source/Example_job.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ The following job script ``job.sh`` is an example job script for analysis on the
3131
module purge
3232
3333
module load 2022
34+
module load intel/2022a
3435
module load Anaconda3/2022.05
3536
source /sw/arch/RHEL8/EB_production/2022/software/Anaconda3/2022.05/etc/profile.d/conda.sh
3637
conda activate xpsi_py3
37-
module load intel/2022a
3838
3939
cp -r $HOME/xpsi/examples/examples_modeling_tutorial/* $TMPDIR/
4040
mkdir $TMPDIR/run
@@ -81,8 +81,8 @@ For Helios, we can use the following type of job script:
8181
8282
module purge
8383
module load anaconda3/2021-05
84-
conda activate xpsi_py3
8584
module load openmpi/3.1.6
85+
conda activate xpsi_py3
8686
8787
export OMP_NUM_THREADS=1
8888
export OPENBLAS_NUM_THREADS=1

docs/source/HPC_systems.rst

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,20 +230,17 @@ Let's start by loading the necessary modules and creating a conda environment. A
230230

231231
.. code-block:: bash
232232
233+
module load anaconda3/2021-05
234+
module load openmpi/3.1.6
233235
git clone https://github.com/xpsi-group/xpsi.git
234236
cd xpsi
235-
module load anaconda3/2021-05
236237
conda create -n xpsi_py3 python=3.10.6
237238
conda activate xpsi_py3
238239
conda install -c conda-forge mpi4py
239-
conda install cython ~= 0.29
240+
conda install cython~=0.29
240241
conda install scipy
241242
conda install matplotlib
242243
conda install wrapt
243-
244-
.. code-block:: bash
245-
246-
module load openmpi/3.1.6
247244
248245
Let's then test if mpi4py works:
249246

@@ -336,7 +333,7 @@ Then, create the conda environnnement and Install python packages with conda (or
336333
conda create -n xpsi --clone base
337334
conda activate xpsi
338335
conda install numpy scipy matplotlib wrapt
339-
conda install cython ~= 0.29
336+
conda install cython~=0.29
340337
conda install h5py
341338
conda install -c conda-forge fgivenx
342339
pip install schwimmbad --user

0 commit comments

Comments
 (0)