diff options
author | Clement Farabet <clement.farabet@gmail.com> | 2011-09-04 01:35:48 +0400 |
---|---|---|
committer | Clement Farabet <clement.farabet@gmail.com> | 2011-09-04 01:35:48 +0400 |
commit | 38b8bea69d7cca9198ea98a0d68dc4343548579c (patch) | |
tree | 76e41b67bd2413f88accfa0151123953938a1082 | |
parent | ab854c6f2490c33802fb074b1ace517a407848ee (diff) |
using new parallel API: fork/exec.
-rw-r--r-- | BatchOptimization.lua | 3 |
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) |