Default use one thread in fluid#7208
Conversation
| 'speed will not be optimized if you use data parallel. It will ' | ||
| 'fail if this PaddlePaddle binary is compiled with OpenBlas since' | ||
| ' OpenBlas does not support multi-threads.'.format(num_threads), | ||
| file=sys.stderr) |
There was a problem hiding this comment.
这段注释没太看明白。openblas的时候可以用OPENBLAS_NUM_THREADS来设置,不知道和这个PR有没有关系。
There was a problem hiding this comment.
这个PR非常简单,就是要把OMP_NUM_THREADS默认设置成1。因为确实在数据并行��,这个环境变量设置成其他的值并不合适。
There was a problem hiding this comment.
当cpu核数大于trainer_count时,如果设成1,会导致cpu核数没用满。
OMP_NUM_THREADS = cpu核数/trainer_count
Paddle/python/paddle/v2/__init__.py
Lines 112 to 115 in 7508d52
|
Could you add an issue to describe the problem? |
|
Two concern I should point out :
|
|
I see. Change |
No description provided.