-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (23 loc) · 921 Bytes
/
install.sh
File metadata and controls
executable file
·29 lines (23 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
#
# Installer for PyLops 4 ways environment with Cupy and CUDA 11.8 and MPI4Py
#
# Run: ./install.sh
#
# M. Ravasi, 26/08/2021
echo 'Creating PyLops GPU+MPI environment'
# create conda env
export CONDA_ALWAYS_YES="true"
conda env create -f environment.yml
source $CONDA_PREFIX/etc/profile.d/conda.sh
conda activate pylops_4ways
echo 'Created and activated environment:' $(which python)
# install latest versions of pylops and pyproximal
pip install git+https://github.com/PyLops/pyproximal.git@dev
pip install git+https://github.com/PyLops/pylops-mpi.git
pip install git+https://github.com/PyLops/pylops.git@dev
# check cupy and pylops work as expected
echo 'Checking cupy version and running a command...'
python -c 'import cupy as cp; print(cp.__version__); cp.ones(10000)*10'
python -c 'import numpy as np; import pylops; print(pylops.__version__); pylops.Identity(10) * np.ones(10)'
echo 'Done!'