BLAS : Program is Terminated. Because you tried to allocate too many memory regions.

1,086 views
Skip to first unread message

Big~Newbie

unread,
Mar 20, 2017, 8:06:57 AM3/20/17
to torch7
I trainned my module with multi-threads with package threads. I  wrote my module as threadedtrain.lua demo shows. the demo works well whenever the threads number set, however, my own model run well only when I set nThreads(number of thread) =1 and throw bugs as title said when nThreads = 2. I run on 32G RAM machine, so the memory is enough. i can't find answer about BLAS of torch,all is about OpenBLAS, what should i do? recompile OpenBLAS or I miss something?

Big~Newbie

unread,
Mar 20, 2017, 10:25:58 AM3/20/17
to torch7
I solved this problem as this post Training a Classifier Problem: BLAS : Program is Terminated. Because you tried to allocate too many said :
export OPENBLAS_NUM_THREADS=1
export GOTO_NUM_THREADS=1
export OMP_NUM_THREADS=1

在 2017年3月20日星期一 UTC+8下午8:06:57,Big~Newbie写道:
Reply all
Reply to author
Forward
0 new messages