diff options
Diffstat (limited to 'fastnn/threads/test/test-threads-multiple.lua')
-rw-r--r-- | fastnn/threads/test/test-threads-multiple.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fastnn/threads/test/test-threads-multiple.lua b/fastnn/threads/test/test-threads-multiple.lua new file mode 100644 index 0000000..4429696 --- /dev/null +++ b/fastnn/threads/test/test-threads-multiple.lua @@ -0,0 +1,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') |