setup-msbuild icon indicating copy to clipboard operation
setup-msbuild copied to clipboard

如何做到多线程加速这么明显?很多平台,2个线程会略微好一些,更多效果反而不好。

Open helloearth012 opened this issue 6 years ago • 1 comments

很多平台,2个线程会略微好一些,更多线程反而引入一些cpu对线程管理的问题,最后反而速度更慢。(使用openmp) 但是看您的数据,多线程下,加速非常明显,请问是如何实现的?

helloearth012 avatar Jun 19 '19 06:06 helloearth012

看ncnn的wiki,理论上,线程越多会越快,但速度稳定性会下降

moli232777144 avatar Jul 17 '19 11:07 moli232777144