arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1803.04154cs.MS
收藏

领域特定语言的语法分化

Algorithmic Differentiation for Domain Specific Languages

Max Sagebaum, Nicolas R. Gauger

摘要:

数学微分(AD)可以用来自动生成衍生物在任意的软件项目。这将生成mainertial导数,始终与软件的计算一致。如果在软件中使用域特定语言(DSL),则现有技术的方法是用相同的AD工具来区分DSL库。这种解决方案的缺点是性能降低,因为编译器不再能够优化例如SIMD操作。本文的新方法将DSL的类型和操作集成到AD工具中。它将是一个从DSL的抽象定义生成的操作符重载工具。这种方法使编译器能够再次优化,例如SIMD操作,因为所有计算仍然使用原始数据类型执行。这还将减少AD所需的内存,因为AD工具不再看到DLS实现中的语句。实施的文件和第一个结果的解决方案的性能。

英文摘要:

Algorithmic Differentiation (AD) can be used to automate the generation of derivatives in arbitrary software projects. This will generate maintainable derivatives, that are always consistent with the computation of the software. If a domain specific language (DSL) is used in a software the state of the art approach is to differentiate the DSL library with the same AD tool. The drawback of this solution is the reduced performance since the compiler is no longer able to optimize the e.g. SIMD operations. The new approach in this paper integrates the types and operations of the DSL into the AD tool. It will be an operator overloading tool that is generated from an abstract definition of a DSL. This approach enables the compiler to optimize again e.g. for SIMD operation since all calculations are still performed with the original data types. This will also reduce the required memory for AD since the statements inside the DLS implementation are no longer seen by the AD tool. The implementation is presented in the paper and first results for the performance of the solution are presented.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑