Skip to content

Parallel run

Oscar Barragán edited this page Dec 10, 2018 · 1 revision

Parallel run

Run pyaneti in parallel is really easy.

To compile the code in parallel you just need to type in your terminal (you need openMP installed).

make para

if you have all the libraries installed, the compilation should finish without any problem. Now you only need to run the code.

./pyaneti.py test

This option will run the code with all the processors available on your computer.

If you want to specify the number of CPUs to be used by pyaneti, you have to run the env OMP_NUM_THREADS=N option, where N is the number of CPUs.

env OMP_NUM_THREADS=2 ./pyaneti.py test