libstdc ++并行模式:谁在使用它?安全吗?有类似的项目吗? [英] libstdc++ parallel mode: Who's using it? Is it safe? Any similar projects?
本文介绍了libstdc ++并行模式:谁在使用它?安全吗?有类似的项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
C ++库的GNU实现支持并行模式,此处解释... >
- 有使用经验吗?好的?不好吗?特别是在正确性和性能方面.
- 是否有一些或多或少认真"的项目正在使用它?
- 您是否将其与全局并行打开开关-D_GLIBCXX_PARALLEL一起使用,还是将其与手动打开特定的并行化功能(例如
__gnu_parallel::sort(v.begin(), v.end());
)一起使用时小心使用了? - 是否有任何类似的开源项目?含义:比使用openMP更容易并行化.
感谢您的经验.
Sascha
解决方案
我已将其用于一些小型项目,对于大型stl操作,它具有很好的加速效果.我从未遇到任何问题(我使用了全局开关).但是,我实际上并没有做太多基准测试,您可能希望参考 http ://algo2.iti.kit.edu/singler/mcstl/parallelmode_se.pdf 和here.
- Any experiences in using it? Good ones? Bad ones? Especially regarding correctness, but also performance.
- Are there some "more or less serious" projects using it?
- Do you use it with the global turn-on-parallel switch -D_GLIBCXX_PARALLEL or do you use it carefully with manually turn-on specific parallelization functions like:
__gnu_parallel::sort(v.begin(), v.end());
? - Are there any similar open source projects? Meaning: more easy parallelization than using openMP.
Thanks for your experiences.
Sascha
解决方案
I've used it for some small projects, with a nice speedup for large stl operations. I never encountered any problems (I used the global switch). However I didn't really do much benchmarking, you might want to refer to studies like http://algo2.iti.kit.edu/singler/mcstl/parallelmode_se.pdf and http://ls11-www.cs.uni-dortmund.de/people/gutweng/AD08/VO11_parallel_mode_overview.pdf.
这篇关于libstdc ++并行模式:谁在使用它?安全吗?有类似的项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文