Skip to content

Compile SRW on Linux & Mac

Maksim Rakitin edited this page Apr 5, 2017 · 9 revisions

Compilation of SRW on Linux and Mac

Common steps to compile SRW on both Linux & Mac:

  • git clone https://github.com/mrakitin/SRW - clone a clean SRW repository

On Mac you need to install several things:

Make all the components (FFTW/C++ SRW library/Python client):

  • make all – should compile FFTW-2 and SRW

Test the compiled SRW:

  • make test – test should pass (a short version of Example 10 will be executed)

MPI support

For MPI support you need to install mpi4py Python library:

$ pip install mpi4py

Then test your MPI with a simple test:

$ git clone https://github.com/mrakitin/test_mpi
$ cd test_mpi
$ bash run.sh

This should produce something like:

rank 1 out of 3 proc.
rank 2 out of 3 proc.
rank 0 out of 3 proc.

Make sure the rank is different for all three processes.

OpenMP support

For OpenMP support see SRW-and-OpenMP.

Clone this wiki locally