JinwoongKim / Massively-Parallel-Query-Processing-on-Heterogeneous-Architecture

Homepage
http://jinwoongkim.github.io/Massively-Parallel-Query-Processing-on-Heterogeneous-Architecture/
1 stars 2 forks source link

Make a macro or function for multi-thread stuff #49

Open JinwoongKim opened 8 years ago

JinwoongKim commented 8 years ago

In this project, many codes' performances have been improved via multi-threading. These codes are similar in a sense that they call 'std::thread::hardware_concurrency()' to get the number of threads and calculate chunk size, start_offset, end_offset, and so on.

In order to reduce the code duplication on this project, a macro of function is needed.