局部共轭用于共享输入的同时预积累
Local Adjoints for Simultaneous Preaccumulations with Shared Inputs
AI总结:
本文探讨了在共享内存并行自动微分中,通过转向合适的局部共轭来重新启用共享输入的同时预积累的优缺点,分析了不同向量和映射方法在内存消耗、分配和访问时间方面的性能。
摘要:
在共享内存并行自动微分中,如果雅可比矩阵使用单一共享向量的共轭变量进行累积,共享输入的同时线程局部预累积会导致数据竞争。本文讨论了通过转向合适的局部共轭重新启用此类预累积的益处和权衡。我们提出了不同的向量和映射方法来存储局部共轭变量,并分析了它们在多线程同时预累积中的内存消耗、内存分配和共轭变量访问时间。我们已在CoDiPack中实现了这些方法,并在多物理场模拟套件SU2中的并行离散共轭计算中进行了基准测试。
英文摘要:
In shared-memory parallel automatic differentiation, inputs that are shared among simultaneous thread-local preaccumulations lead to data races if Jacobians are accumulated with a single, shared vector of adjoint variables. In this work, we discuss the benefits and tradeoffs of re-enabling such preaccumulations by a transition to suitable local adjoints. We propose different vector- and map-based approaches for storing local adjoint variables and analyze them with respect to memory consumption, memory allocation, and adjoint variable access times in the context of simultaneous preaccumulations in multiple threads. We implement the approaches in CoDiPack and benchmark them in parallel discrete adjoint computations in the multiphysics simulation suite SU2.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。