Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2011-09-04 01:35:48 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-09-04 01:35:48 +0400
commit38b8bea69d7cca9198ea98a0d68dc4343548579c (patch)
tree76e41b67bd2413f88accfa0151123953938a1082
parentab854c6f2490c33802fb074b1ace517a407848ee (diff)
using new parallel API: fork/exec.
-rw-r--r--BatchOptimization.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/BatchOptimization.lua b/BatchOptimization.lua
index f2b38d5..b05c9ab 100644
--- a/BatchOptimization.lua
+++ b/BatchOptimization.lua
@@ -301,8 +301,9 @@ function Batch:setup_mapreduce ()
-- (2) startup all workers
for t = 1,P do
- parallel.run(worker_code)
+ parallel.fork()
end
+ parallel.children:exec(worker_code)
-- (3) and send them the module + criterion architecture
parallel.children:send(self.module)