面向高性能科学计算的C++17线程池
A C++17 Thread Pool for High-Performance Scientific Computing
AI总结:
本文提出了一种基于C++17的轻量线程池,通过避免高级多线程API实现对并行化细节的精确控制,以提升高性能科学计算的效率。
摘要:
我们提出了一种现代C++17兼容的线程池实现,该实现专为高性能科学计算而设计。线程池以一个轻量且自包含的类实现,仅依赖C++17标准库,从而具有高度的可移植性。特别地,我们的实现不使用任何高级多线程API,因此给程序员提供了对并行化细节的精确低级控制,这允许更稳健的优化。该线程池在具有最多40个核心和80个线程的AMD和Intel CPU上进行了广泛测试。
英文摘要:
We present a modern C++17-compatible thread pool implementation, built from scratch with high-performance scientific computing in mind. The thread pool is implemented as a single lightweight and self-contained class, and does not have any dependencies other than the C++17 standard library, thus allowing a great degree of portability. In particular, our implementation does not utilize any high-level multithreading APIs, and thus gives the programmer precise low-level control over the details of the parallelization, which permits more robust optimizations. The thread pool was extensively tested on both AMD and Intel CPUs with up to 40 cores and 80 threads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。