aboutsummaryrefslogblamecommitdiff
path: root/fastnn/threads/test/test-threads-multiple.lua
blob: 442969607287ac739f7903d7df91cfee0628cc51 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                
local threads = require 'threads'

for i=1,1000 do
   io.write(string.format('%04d.', tonumber(i)))
   io.flush()
   local pool =
      threads.Threads(
         4,
         function(threadid)
            require 'torch'
         end
      )
end
print()
print('PASSED')