NLeSC / team-atlas

1 stars 0 forks source link

Check dependencies for the lensing application #229

Open rogerkuou opened 3 years ago

rogerkuou commented 3 years ago

To test swyft, we are going to use the gravity lensing application: swyft-lens-sim as the test case. The installation of dependencies of swyft-lens-sim need to be checked.

rogerkuou commented 3 years ago

@meiertgrootes @fnattino I have checked the dependencies for swyft-lens-sim. Documenting my findings here. Most of the dependencies are able to be installed, following the ReadMe.

One dependency needs extra attention: pyrofit_lensing. It's a private repo and need permission granted by Christoph. After granted permission one can clone it via http+credentials, and install it as mentioned in the manual.

summary of the installation commands on Cartesius:


# Load software module on Cartesius
module load 2020

# CUDA/CuCNN
module load CUDA/11.0.2-GCC-9.3.0 
module load cuDNN

# gcc (available by default)
module load GCC/9.3.0

# cmake
module load CMake/3.16.4-GCCcore-9.3.0

# torchinterp1d, need pytorch
git clone git@github.com:aliutkus/torchinterp1d.git
conda install pytorch
pip install .

# clippy
git  clone git@github.com:kosiokarchev/clipppy.git
cd clipppy
pip install .

#pyrofit-utils
cd pyrofit-utils
git clone git@github.com:kosiokarchev/pyrofit-utils.git

#pyrofit_lensing (use http since username/pw required)
git clone https://github.com/cweniger/pyrofit_lensing.git
cd pyrofit_lensing/
git checkout production
pip install -r requirements.txt