Skip to content
Peter Spackman edited this page Aug 12, 2019 · 4 revisions

Dependencies

Primarily we’ll need a fortran compiler i.e. gfortran. The easiest way to install this and other dependencies is to use one of the de-facto package managers like brew.

Once this is installed install the following:

brew install gcc cmake

Currently gfortran is included in the homebrew gcc install.

Note that we do not need to install lapack or blas on OS X as they are provided by default in Accelerate.framework.

Building

From here just follow the usual build instructions.

git clone https://github.com/dylan-jayatilaka/tonto
cd tonto
mkdir build && cd build
cmake ..
make -j

Testing

And you can run the tests with:

ctest -j

There are frequent minor false-failures on OS X in certain tests (due to small numerical differences), so don’t be too concerned if you see these.

Clone this wiki locally