Skip to content

Commit

Permalink
Add MultiNest
Browse files Browse the repository at this point in the history
  • Loading branch information
tikk3r committed May 17, 2024
1 parent 5b2b3c0 commit 902b56d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions singularity/Singularity.amd_aocl
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ From: fedora:38
export FLEXIBLAS=OPENBLAS
export FLEXIBLAS64=OPENBLAS

# MultiNest
cd $INSTALLDIR
git clone https://github.com/JohannesBuchner/MultiNest
cd MultiNest/build
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR/MultiNest ..
make
cd $INSTALLDIR

#
# Setup the Python environment.
#
Expand Down Expand Up @@ -788,6 +796,7 @@ From: fedora:38
echo export PATH=\$INSTALLDIR/wsclean/bin:\$PATH >> $INSTALLDIR/init.sh
echo export PATH=\$INSTALLDIR/runners:\$PATH >> $INSTALLDIR/init.sh
echo export PATH=\$INSTALLDIR/utility:\$PATH >> $INSTALLDIR/init.sh
echo export PATH=\$INSTALLDIR/MultiNest/bin:\$PATH >> $INSTALLDIR/init.sh

echo export LD_LIBRARY_PATH=/opt/flang/lib:$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export PATH=/opt/flang/bin:\$PATH >> $INSTALLDIR/init.sh
Expand All @@ -799,6 +808,7 @@ From: fedora:38
echo export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=\$INSTALLDIR/sagecal/lib:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=\$INSTALLDIR/lofarstman/lib64/:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=\$INSTALLDIR/MultiNest/lib/:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
# OPENBLAS_NUM_THREADS=1 is required for WSClean
echo export NCPU=\$\(nproc\) >> $INSTALLDIR/init.sh
echo export OPENBLAS_NUM_THREADS=1 >> $INSTALLDIR/init.sh
Expand Down
10 changes: 10 additions & 0 deletions singularity/Singularity.intel_mkl
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,14 @@ EOF
export FLEXIBLAS=OPENBLAS
export FLEXIBLAS64=OPENBLAS

# MultiNest
cd $INSTALLDIR
git clone https://github.com/JohannesBuchner/MultiNest
cd MultiNest/build
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR/MultiNest ..
make
cd $INSTALLDIR

#
# Setup the Python environment.
#
Expand Down Expand Up @@ -714,12 +722,14 @@ EOF
echo export PATH=\$INSTALLDIR/wsclean/bin:\$PATH >> $INSTALLDIR/init.sh
echo export PATH=/usr/lib64/openmpi/bin:\$PATH >> $INSTALLDIR/init.sh
echo export PATH=\$INSTALLDIR/utility:\$INSTALLDIR/runners:\$PATH >> $INSTALLDIR/init.sh
echo export PATH=\$INSTALLDIR/MultiNest/bin:\$PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/opt/hdf5/lib:/opt/intel/mkl/lib/intel64/:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=\$INSTALLDIR/aoflagger/lib:\$INSTALLDIR/casacore/lib:\$INSTALLDIR/DPPP/lib:\$INSTALLDIR/dysco/lib:\$INSTALLDIR/EveryBeam/lib:/opt/hdf5/lib:\$INSTALLDIR/idg/lib:\$INSTALLDIR/lofar/lib:\$INSTALLDIR/lofar/lib64:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=/opt/OpenBLAS/lib64:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=\$INSTALLDIR/sagecal/lib:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=\$INSTALLDIR/lofarstman/lib64/:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
echo export LD_LIBRARY_PATH=\$INSTALLDIR/MultiNest/lib/:\$LD_LIBRARY_PATH >> $INSTALLDIR/init.sh
# OPENBLAS_NUM_THREADS=1 is required for WSClean
echo export NCPU=\$\(nproc\) >> $INSTALLDIR/init.sh
echo export OPENBLAS_NUM_THREADS=1 >> $INSTALLDIR/init.sh
Expand Down

0 comments on commit 902b56d

Please sign in to comment.