Skip to content

Commit 8e20f9c

Browse files
committed
Add documentation about parallel processing.
1 parent ded3721 commit 8e20f9c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/tutorials/advanced/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Contents:
1313
strategy_transformers.rst
1414
making_tournaments.rst
1515
reading_and_writing_interactions.rst
16+
parallel_processing.rst
1617
using_the_cache.rst
1718
setting_a_seed.rst
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Parallel processing
2+
===================
3+
4+
When dealing with large tournaments on a multi core machine it is possible to
5+
run the tournament in parallel **although this is not currently supported on
6+
Windows**. Using :code:`processes=0` will simply use all available cores::
7+
8+
>>> import axelrod as axl
9+
>>> players = [s() for s in axl.basic_strategies]
10+
>>> tournament = axl.Tournament(players, turns=4, repetitions=2)
11+
>>> results = tournament.play(processes=0)

0 commit comments

Comments
 (0)