September 12, 2022

Installation FEW on Ubuntu 20.04.5 LTS

Install CUDA

This is actually not necessary. I have not yet understood whether few can use this library or not but I am leaving here the info just in case of.

I am leaving the $ out of the commands for the sake of the amazing copy and paste (TM)

sudo wget -O /etc/apt/preferences.d/cuda-repository-pin-600 \
sudo apt-key adv --fetch-keys
sudo apt-key adv --fetch-keys
sudo add-apt-repository "deb /"
sudo apt update
sudo apt install cuda
echo 'export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}' >> ~/.zshrc


nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Jun__8_16:49:14_PDT_2022
Cuda compilation tools, release 11.7, V11.7.99
Build cuda_11.7.r11.7/compiler.31442593_0

Install Anaconda

sudo apt install libgl1-mesa-glx libegl1-mesa libxrandr2 libxrandr2 libxss1 libxcursor1 libxcomposite1 libasound2 libxi6 libxtst6

Download the last one from here

bash /tmp/Anaconda*

Check that zshrc has the same source as bashrc

Update just in case of

conda update -n base -c defaults conda

Install FEW

conda create -n few_env -c conda-forge gcc_linux-64 gxx_linux-64 wget gsl lapack=3.6.1 hdf5 numpy Cython scipy tqdm jupyter ipython h5py requests matplotlib python=3.7
conda activate few_env
git clone
cd FastEMRIWaveforms
python install

And then check that it is doing what it is supposed to do

python -m unittest discover