forked from ochubar/SRW
-
Notifications
You must be signed in to change notification settings - Fork 1
Compile SRW on Linux & Mac
Maksim Rakitin edited this page Apr 5, 2017
·
9 revisions
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:
-
brew install wget
(see http://stackoverflow.com/questions/4572153/os-x-equivalent-of-linuxs-wget) -
brew install coreutils
(see http://stackoverflow.com/questions/3504945/timeout-command-on-mac-os-x) ln -s /usr/local/bin/gtimeout /usr/local/bin/timeout
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 ofExample 10
will be executed)
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.
For OpenMP support see SRW-and-OpenMP.