-
Notifications
You must be signed in to change notification settings - Fork 5
Building on MacOS
Peter Spackman edited this page Aug 12, 2019
·
4 revisions
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
.
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
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.