# Install notes for BRC HPC SAVIO cluster¶

Installing on the SAVIO cluster is pretty straightforward, as many things can be loaded via modules. First, load the following modules.

module purge


We next need to make a virtual environment in which to build the rest of the Dedalus depencencies.

virtualenv python_build
source python_build/bin/activate


The rest of the depencies will be pip-installed. However, because we are using intel compilers, we need to specify the compiler and some how to link things properly.

export CC=icc
export LDFLAGS="-lirc -limf"


Now we can use pip to install most of the remaining dependencies.

pip-3.2 install cython
pip-3.2 install h5py
pip-3.2 install matplotlib==1.3.1


Dedalus itself can be pulled down from Bitbucket.

hg clone https://bitbucket.org/dedalus-project/dedalus
cd dedalus
pip-3.2 install -r requirements.txt


To build Dedalus, you must specify the locations of FFTW and MPI.

export FFTW_PATH=/global/software/sl-6.x86_64/modules/intel/2013_sp1.4.211/fftw/3.3.4-intel
export MPI_PATH=/global/software/sl-6.x86_64/modules/intel/2013_sp1.2.144/openmpi/1.6.5-intel
python3 setup.py build_ext --inplace


## Using Dedalus¶

To use Dedalus, put the following in your ~/.bashrc file:

module purge