Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3747b05
How to install X-PSI in Jean-Zay
Mar 6, 2026
b3956ac
Update HPC_systems.rst
pstammler Mar 6, 2026
c1230e5
Removed old synthesise method and fixed background in the new version
lmauviard Mar 8, 2026
4b9b225
Added changelog
lmauviard Mar 8, 2026
ac9f588
Update Example_job.rst
pstammler Mar 9, 2026
469596a
Update Example_job.rst
pstammler Mar 9, 2026
1d13d1b
Update Example_job.rst
pstammler Mar 9, 2026
916e575
Update HPC_systems.rst
pstammler Mar 9, 2026
df32c3a
Create 666.attribution.rst
pstammler Mar 9, 2026
5e9a727
Create 666.added.rst
pstammler Mar 9, 2026
8d2f9e2
Update 666.attribution.rst
pstammler Mar 9, 2026
913f79f
Update Example_job.rst
pstammler Mar 9, 2026
0d42ddf
Update Example_job.rst
pstammler Mar 9, 2026
90e441c
Update Example_job.rst
pstammler Mar 9, 2026
0f84d17
Update Example_job.rst
pstammler Mar 9, 2026
ea55e0a
Rename 666.attribution.rst to 688.attribution.rst
pstammler Mar 9, 2026
e63603e
Rename 666.added.rst to 688.added.rst
pstammler Mar 9, 2026
68cd264
Fixing a ceding vs super region cell mesh allocation bug caused by th…
thjsal Mar 12, 2026
36c1fae
Update HPC_systems.rst
pstammler Mar 13, 2026
fd8e7d2
Update HPC_systems.rst
pstammler Mar 13, 2026
46fd46a
Small update to doc
sguillot Mar 15, 2026
4784622
fix warning in doc compilation
sguillot Mar 15, 2026
bc612b9
Merge pull request #688 from xpsi-group/666-IDRIS-install
sguillot Mar 15, 2026
c1e821e
Update Synthetic_data.ipynb
sguillot Mar 15, 2026
ddeb6b6
Merge pull request #687 from lmauviard/clean-synthesize-methods
sguillot Mar 15, 2026
0272643
Fixed corrupted Instrument Synergy (#695)
sguillot Mar 15, 2026
617b98c
694 fix corrupted instrument synergy tutorial (#696)
thjsal Mar 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/687.attribution.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lucien Mauviard
3 changes: 3 additions & 0 deletions changelog.d/687.fixed.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Removed the old synthesise method from `synthesise.pyx`.

Fixed the Signal synthesize to handle better the background
1 change: 1 addition & 0 deletions changelog.d/688.added.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add documentation about installing X-PSI in the Jean-Zay supercomputer.
1 change: 1 addition & 0 deletions changelog.d/688.attribution.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pierre Stammler
1 change: 1 addition & 0 deletions changelog.d/690.attribution.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Tuomo Salmi
1 change: 1 addition & 0 deletions changelog.d/690.fixed.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed a ceding vs super region cell mesh allocation bug caused by the removal of fast parameters in commit #7e6d6ad.
56 changes: 50 additions & 6 deletions docs/source/Example_job.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
Example job
===========

For both jobs you will need these
For the three jobs below you will need these
`auxiliary files <https://zenodo.org/record/7113931>`_ inside the ``model_data/``
directory.

Snellius
--------
Snellius (SURF)
---------------

The following job script ``job.sh`` is an example job script for analysis on the Snellius system (see :ref:`hpcsystems`).

Expand Down Expand Up @@ -58,8 +58,8 @@ number of processes to spawn as a flag argument.

Finally, note that only the root process will generate output for inspection.

Helios
------
Helios (API)
------------

For Helios, we can use the following type of job script:

Expand Down Expand Up @@ -109,4 +109,48 @@ For Helios, we can use the following type of job script:
#Clean the scratch automatically here.
#But remember to remove manually in each node, if the main program ends by crashing.
rm -rf $OUTPUT_FOLDER



Jean-Zay (IDRIS)
----------------

For Jean-Zay, a script like the following one can be prepared. Just check your working project account first, with ``idrproj``.

.. code-block:: bash

#!/bin/bash
#SBATCH --account=nameproject@cpu
#SBATCH --job-name=XPSI3_BBTest
#SBATCH --time=20:00:00
#SBATCH --partition=cpu_p1
#SBATCH --qos=qos_cpu-t3
#SBATCH --ntasks=200
#SBATCH --ntasks-per-node=40
#SBATCH --hint=nomultithread
#SBATCH --mail-user=myemail@mailservice.com
#SBATCH --mail-type=END,FAIL

module purge
module load miniforge/24.9.0
module load intel-all/19.0.4
module load gsl/2.5

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WORK/Softwares/MultiNest/MultiNest_v3.12_CMake/multinest/lib
export LD_PRELOAD=$MKLROOT/lib/intel64/libmkl_core.so:$MKLROOT/lib/intel64/libmkl_sequential.so

conda activate $WORK/conda/xpsi

cd $WORK
mkdir TestBBXPSIrun/
cd TestBBXPSIrun/
mkdir examples/
cd examples/
mkdir examples_modeling_tutorial/
cd examples_modeling_tutorial/
cp -r $WORK/Softwares/xpsi/examples/examples_modeling_tutorial/* ./
mkdir run

srun python TestRun_BB.py > out1 2> err1

cp -r out1 err1 run $WORK/Softwares/xpsi/examples/examples_modeling_tutorial/.

112 changes: 109 additions & 3 deletions docs/source/HPC_systems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -224,16 +224,122 @@ If the above works, we can then continue building X-PSI:
git clone https://github.com/xpsi-group/xpsi.git
cd xpsi
CC=$(which cc) pip install .

Batch usage
^^^^^^^^^^^

For example job scripts, see the Helios example in :ref:`example_job`.

Jean-Zay (IDRIS)
----------------

`Jean-Zay <http://www.idris.fr/eng/jean-zay/index.html>`_ is the French national supercomputer.

Installation
^^^^^^^^^^^^

To install X-PSI in Jean-Zay, you need to check out if you have different projects for your IDRIS account, with the command ``idrproj``. The installation will be done only in your currently working project, so you may have to switch between your projects and redo the complete installation.

For any installation, it is preferable to process in the ``$WORK`` folder of your project, because of the small storage of the ``$HOME``

First prepare your modules:

.. code-block:: bash

module purge
module load miniforge/24.9.0
module load cmake/3.21.3
module load intel-all/19.0.4
module gsl/2.5

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.

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

.. code-block:: bash

cd $WORK
mkdir conda
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


Then point to the Intel compilers. If needed, mention them explicitly:

.. code-block:: bash

export CC=icc
export CXX=icpc
export FC=ifort
#export CC=/gpfslocalsys/intel/parallel_studio_xe_2019_update4_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icc
#export CXX=/gpfslocalsys/intel/parallel_studio_xe_2019_update5_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icpc
#export FC=/gpfslocalsys/intel/parallel_studio_xe_2019_update5_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/ifort

Then install mpi4py:

.. code-block:: bash

cd $WORK
mkdir Softwares
cd Softwares
wget https://github.com/mpi4py/mpi4py/releases/download/4.0.3/mpi4py-4.0.3.tar.gz
tar zxvf mpi4py-4.0.3.tar.gz
cd mpi4py-4.0.3
python setup.py build
python setup.py install


Now that the environment is set, MultiNest can be installed:

.. code-block:: bash

cd $WORK/Softwares
git clone https://github.com/farhanferoz/MultiNest.git ./MultiNest
cd MultiNest/MultiNest_v3.12_CMake/multinest/
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=~/pathtosoftwares/MultiNest \
-DCMAKE_{C,CXX}_FLAGS="-O3 -xCORE-AVX512 -mkl" \
-DCMAKE_Fortran_FLAGS="-O3 -xCORE-AVX512 -mkl" \
-DCMAKE_C_COMPILER=mpiicc \
-DCMAKE_CXX_COMPILER=mpiicpc \
-DCMAKE_Fortran_COMPILER=mpiifort ..
make
ls ../lib

Then its Python interface:

.. code-block:: bash

cd $WORK/Softwares
git clone https://github.com/JohannesBuchner/PyMultiNest.git ./pymultinest
cd pymultinest
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$WORK/Softwares/MultiNest/MultiNest_v3.12_CMake/multinest/lib
export LD_PRELOAD=$MKLROOT/lib/intel64/libmkl_core.so:$MKLROOT/lib/intel64/libmkl_sequential.so
python setup.py install

Finally, xpsi can be installed:

.. code-block:: bash

cd $WORK/Softwares
git clone https://github.com/xpsi-group/xpsi.git
cd xpsi/
LDSHARED="icc -shared" CC=icc pip install .
#LDSHARED="/gpfslocalsys/intel/parallel_studio_xe_2019_update4_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icc -shared" CC="/gpfslocalsys/intel/parallel_studio_xe_2019_update4_cluster_edition/compilers_and_libraries_2019.4.243/linux/bin/intel64/icc" pip install .

# To check your installation
cd ../
python -c "import xpsi"

Batch usage
^^^^^^^^^^^

For example job scripts, see the Jean-Zay example in :ref:`example_job`.

.. _CALMIPsystem:

CALMIP
------------------------------------
CALMIP (U. of Toulouse)
-----------------------

`CALMIP <https://www.calmip.univ-toulouse.fr>`_ is the supercomputer of `Université Fédérale de Toulouse <https://www.univ-toulouse.fr>`_

Expand Down
Loading
Loading