twitter-archive / torch-ipc

A set of primitives for parallel computation in Torch
Apache License 2.0
95 stars 28 forks source link

pool.addTask() eventually hangs #13

Closed clementfarabet closed 8 years ago

clementfarabet commented 8 years ago
pool = BackgroundTaskPool(16)

-- works:
for i = 1,32 do pool.addTask(function(i) return math.sqrt(i) end, i) end

-- hangs:
for i = 1,1000 do pool.addTask(function(i) return math.sqrt(i) end, i) end