Optimizing reduce_by_key implementation using TBB

Optimizing reduce_by_key implementation using TBB

Hello Everyone,

I'm quite new to TBB & have been trying to optimize reduce_by_key implementation using TBB constructs. However serial STL code is always outperforming the TBB code! It would be helpful if I'm given an idea about how reduce_by_key can be improvised using tbb::parallel_scan. Any help at the earliest would be much appreciated.

Thanks.

1 条帖子 / 0 全新
如需更全面地了解编译器优化,请参阅优化注意事项