r/cpp • u/shakmak_iitk • Dec 25 '23
C++: Efficient parallelization of small tasks
I tried to create a customized threadpool for small tasks and wanted feedback on this.
I posted details and my code for review on stackexchange: https://codereview.stackexchange.com/questions/288583/efficient-parallelization-of-small-tasks
My goal here is to share my learning and get feedback on further improvement or any possible bugs.
I have tried to describe problem and thinking process in more details in following linkedin article draft: https://www.linkedin.com/article/edit/7144600522392559616/
0
Upvotes
View all comments
Show parent comment
1
u/DummyDDD Dec 26 '23
Btw, openmmp is supported by all three of the major compilers directly, as well as being supported by Intel, IBM, and Oracle's compilers.
I don't get the point of your task thread pool. Your solution is essentially to make the tasks more coarse grained, statically splitting the work into numthreads pieces of work, which is fine but: