Running amuse on the Huygens super computer

This super computer consists of SUSE Linux Enterprise Server, powerpc 6 nodes with xlc and mpfort compilers.

At the time of writing this description not all codes could be build with xlx, most codes need different flags and some other settings to get it to work.


Make a directory for all work files etc.

mkdir amuse

cd amuse

Get the latest amuse release


To get an svn version of AMUSE (if you have an svn account):

module load subversion

svn co amuse-svn

For a release download, unzip and untar the release

gzip -d amuse-5.0.tar.gz

tar -xvf amuse-5.0.tar

Create a file called 'setdev' and put this text in it:


module load hdf5 
module load fftw3 
moudle load gsl

export AMUSEROOT=/home/<username>/<directory>

export PYTHONPATH=${PYTHONPATH}:${AMUSEROOT}/amuse-5.0/src
export PYTHONPATH=${AMUSEROOT}/prerequisites/lib/python2.6/site-packages/:${PYTHONPATH}

export PREFIX=${AMUSEROOT}/prerequisites/
export PATH=${PREFIX}/bin:${PATH}

export FC=gfortran
export F77=gfortran
export FORTRAN=gfortran
export CC=gcc
export CXX=g++

export MPIFC='mpfort -compiler gfortran'
export MPICC='mpcc -compiler gcc'
export MPICXX='mpCC -compiler g++ -cpp'

Take care to replace <username> with your name and <directory> with the directory containing the workfiles ('amuse' if you follow all steps to the letter). Also take car to replace amuse-5.0 with amuse-svn if you ran the svn checkout line.

Before installing any packages or building amuse do:

source setdev

mkdir $PREFIX

Nosetests and docutils

Nose and docutils are straightforward python install packages. Download and untar the packages ( Nose,  docutils ) and type

python build
python install --prefix=$PREFIX

from their respective directories.

building mpi4py

First download and untar the mpi4py package (

Next open the mpi.cfg file and add the following lines to the [mpi] section:

mpicc  = mpcc -compiler gcc
mpicxx = mpCC -compiler gcc

Then, you can build and install mpi4py with:

python build
python install --prefix=$PREFIX

To check if it worked do (in any directory except the mpi4py package dir):

hostname > hostfile
hostname >> hostfile

cat > <<EOF
from mpi4py import MPI
print MPI.get_vendor()
print MPI.COMM_WORLD.rank
print MPI.COMM_WORLD.size

MP_HOSTFILE=${PWD}/hostfile MP_PROCS=2 python

building hdf5

source setdev


mkdir build


gzip -d h5py-2.0.1.tar

tar -xvf h5py-2.0.1.tar

cd h5py-2.0.1

CC=gcc python build
CC=gcc python install --prefix=$PREFIX

fftw, cmake

cd doc/install

python --prefix=${PREFIX} install fftw3 cmake



make clean



hostname > hostfile
hostname >> hostfile
hostname >> hostfile
hostname >> hostfile
hostname >> hostfile
hostname >> hostfile

MP_HOSTFILE=${PWD}/hostfile MP_PROCS=5 MP_WORLD_SIZES=1  nosetests -sv test/codes_tests/


You can build some code in amuse with xlc/xlfotran but not all, for now we recommend using gcc/gfortran.