Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libstdc++ parallel mode: Who's using it? Is it safe? Any similar projects? [closed]

the GNU implementation of the C++ Library supports a parallel mode, explained 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

like image 656
sascha Avatar asked Nov 07 '10 14:11

sascha


1 Answers

Too late answer, but:

I would seriously consider Intel TBB. One thing that I noted missing from C++ standard parallel mode is parallel containers. TBB containers do not follow the interface of C++ standard containers, but they provide justifications for this. Besides, TBB has a number of examples and design patterns.

like image 102
amit kumar Avatar answered Sep 23 '22 11:09

amit kumar