多核系统上OpenMP和TBB下任务并行执行的ccNUMA局部性优化
Optimizing ccNUMA locality for task-parallel execution under OpenMP and TBB on multicore-based systems
摘要:
OpenMP任务构造或某些英特尔线程构建块(TBB)组件所采用的任务并行性虽然非常适合处理不规则问题或典型的生产者/消费者方案,但如果数据访问的局部性很重要(ccNUMA系统上的内存受限代码通常就是这种情况),则可能会出现性能瓶颈。我们提出了一个薄的软件层,改善了动态任务分配的不利影响,通过将任务排序到本地队列中,每个队列最好由属于同一本地域的线程处理。动态调度是完全保留在每个域,并优于可能的负载不平衡,即使需要非本地访问,使这种策略非常适合典型的多核多插槽系统。该方法的有效性是通过使用一个阻塞的六点模板求解器作为一个玩具模型。
英文摘要:
Task parallelism as employed by the OpenMP task construct or some Intel Threading Building Blocks (TBB) components, although ideal for tackling irregular problems or typical producer/consumer schemes, bears some potential for performance bottlenecks if locality of data access is important, which is typically the case for memory-bound code on ccNUMA systems. We present a thin software layer ameliorates adverse effects of dynamic task distribution by sorting tasks into locality queues, each of which is preferably processed by threads that belong to the same locality domain. Dynamic scheduling is fully preserved inside each domain, and is preferred over possible load imbalance even if nonlocal access is required, making this strategy well-suited for typical multicore-mutisocket systems. The effectiveness of the approach is demonstrated by using a blocked six-point stencil solver as a toy model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。