Skip to content

Installing AFINES

antoszewski edited this page Jun 11, 2022 · 1 revision

To install AFINES, you will need git, make, a C++11 compiler, and boost.

Downloading and compiling AFINES can be done as follows:

git clone https://github.com/Simfreed/AFINES
cd AFINES
git checkout master  # or any other branch you want
make network

If everything goes well, there should now be an AFINES binary at bin/afines.

Midway2

  • Make sure that gcc, intel, or any other compiler is not loaded using modules.
    Running which g++ should give /bin/g++.

  • Make sure that boost is not loaded using modules.
    Running echo $BOOST_ROOT should give a blank line.

Python Bindings

The Python bindings for AFINES are currently not mature and severely undocumented. However, as far as I (Chatipat) can tell, they appear to work properly. In addition to the usual dependencies, the Python bindings require cmake and a working installation of Python 2.7 or 3.x. If you are on Midway, install your own Python using Anaconda.

Downloading and compiling AFINES as a Python module can be done as follows:

git clone https://github.com/Chatipat-and-Steven-friendship-forever/AFINES.git
cd AFINES
git checkout chatipat_python
git submodule update --init --recursive

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release  # change to -DCMAKE_BUILD_TYPE=Debug for debugging

make pyafines

Clone this wiki locally