Skip to content

Commit 36c1fae

Browse files
authored
Update HPC_systems.rst
1 parent e63603e commit 36c1fae

1 file changed

Lines changed: 24 additions & 10 deletions

File tree

docs/source/HPC_systems.rst

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,30 +254,45 @@ First prepare your modules:
254254
255255
We intend here to install X-PSI with Intel compilers. It is preferable to avoid using the recent Cmake versions because of their dependencies with the GCC compiler.
256256

257-
Now, let's prepare the conda environment for X-PSI. However, the prerequites must be mentioned explicitly:
257+
Now, let's prepare the conda environment for X-PSI, by installing some of the required packages. However, they must be mentioned explicitly:
258258

259259
.. code-block:: bash
260260
261261
cd $WORK
262262
mkdir conda
263-
conda create -p $WORK/conda/xpsi python'>=3.9.0' numpy'<2.0.0' cython'~=3.0.11' matplotlib'==3.9.2' scipy wrapt gsl pytest getdist tqdm h5py nestcheck fgivenx astropy'>=5.2,<7.0.0' emcee ultranest mpi4py cmap
263+
conda create -p $WORK/conda/xpsi python'>=3.9.0' numpy'<2.0.0' cython'~=3.0.11' matplotlib'==3.9.2' scipy wrapt gsl pytest getdist tqdm nestcheck fgivenx astropy'>=5.2,<7.0.0' emcee ultranest 'h5py<3.16.0' cmap
264264
265265
266-
Then point to the Intel compilers, here again by mentioning them explicitly:
266+
Then point to the Intel compilers. If needed, mention them explicitly:
267267

268268
.. code-block:: bash
269269
270-
export CC=/gpfslocalsys/intel/parallel_studio_xe_2019_update4_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icc
271-
export CXX=/gpfslocalsys/intel/parallel_studio_xe_2019_update5_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icpc
272-
export FC=/gpfslocalsys/intel/parallel_studio_xe_2019_update5_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/ifort
270+
export CC=icc
271+
export CXX=icpc
272+
export FC=ifort
273+
#export CC=/gpfslocalsys/intel/parallel_studio_xe_2019_update4_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icc
274+
#export CXX=/gpfslocalsys/intel/parallel_studio_xe_2019_update5_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icpc
275+
#export FC=/gpfslocalsys/intel/parallel_studio_xe_2019_update5_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/ifort
273276
274-
Now that the environment is set, MultiNest can be installed:
277+
Then install mpi4py:
275278

276279
.. code-block:: bash
277-
280+
278281
cd $WORK
279282
mkdir Softwares
280283
cd Softwares
284+
wget https://github.com/mpi4py/mpi4py/releases/download/4.0.3/mpi4py-4.0.3.tar.gz
285+
tar zxvf mpi4py-4.0.3.tar.gz
286+
cd mpi4py-4.0.3
287+
python setup.py build
288+
python setup.py install
289+
290+
291+
Now that the environment is set, MultiNest can be installed:
292+
293+
.. code-block:: bash
294+
295+
cd $WORK/Softwares
281296
git clone https://github.com/farhanferoz/MultiNest.git ./MultiNest
282297
cd MultiNest/MultiNest_v3.12_CMake/multinest/
283298
mkdir build
@@ -298,10 +313,9 @@ Then its Python interface:
298313
cd $WORK/Softwares
299314
git clone https://github.com/JohannesBuchner/PyMultiNest.git ./pymultinest
300315
cd pymultinest
301-
python setup.py install
302316
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$pathtosoftwares/MultiNest/MultiNest_v3.12_CMake/multinest/lib
303317
export LD_PRELOAD=$MKLROOT/lib/intel64/libmkl_core.so:$MKLROOT/lib/intel64/libmkl_sequential.so
304-
#Those last exports are needed for the pymultinest checking test.
318+
python setup.py install
305319
306320
Finally, xpsi can be installed:
307321

0 commit comments

Comments
 (0)