Trees | Indices | Help |
---|
|
Splits a FDist run.
The idea is to split a certain number of simulations in smaller numbers (e.g. 30.000 sims split in 30 packets of 1.000). This allows to run simulations in parallel, thus taking advantage of multi-core CPUs.
Each SplitFDist object can only be used to run a single FDist simulation.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Constructor. Parameters: report_fun - Function that is called when a single packet is run, it should have a single parameter: Fst. num_thr - Number of desired threads, typically the number of cores. split_size - Size that a full simulation will be split in. ext - Binary extension name (e.g. nothing on Unix, '.exe' on Windows). |
Monitors and reports (using report_fun) execution. Every time a partial simulation ends, calls report_fun. IMPORTANT: monitor calls can be concurrent with other events, ie, a tasks might end while report_fun is being called. This means that report_fun should be consider that other events might be happening while it is running (it can call acquire/release if necessary). |
Runs FDist. Parameters can be seen on FDistController.run_fdist. It will split a single execution in several parts and create separated data directories. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Sep 15 09:24:59 2008 | http://epydoc.sourceforge.net |