一个优化的NEURON MODELing语言多平台源到源编译器框架
An optimizing multi-platform source-to-source compiler framework for the NEURON MODeling Language
摘要:
领域特定语言(DSL)在生成高性能软件方面发挥着越来越重要的作用。它们允许用户利用编码在构造中的特定知识来生成适应特定硬件架构的代码;同时,它们使得更容易为多种平台生成优化的代码,因为转换只需编码一次。在这里,我们描述了一个新的代码生成框架(NMODL)的现有DSL的神经元框架,广泛使用的软件,大规模并行模拟生物详细的脑组织模型。现有的NMODL DSL转译器缺乏生成优化代码的基本功能或解析用户社区中现有模型的多样性的能力。我们的NMODL框架已经针对大量以前发布的用户模型进行了测试,并在目标代码生成之前提供了高级特定于域的优化和符号代数简化。此外,提供了丰富的分析工具,允许科学家反思模型。NMODL实现了针对现代硬件优化的多个SIMD和SPMD目标。基准测试在Intel Skylake、Intel KNL和AMD Naples平台上进行。当比较NMODL生成的内核与NEURON时,我们观察到高达20倍的加速,导致两种不同生产模拟的总体加速提高了$\sim$ 10倍。与之前发布的严重依赖编译器自动向量化的SIMD优化版本相比,仍然可以观察到高达$\sim$ 2倍的加速。
英文摘要:
Domain-specific languages (DSLs) play an increasingly important role in the generation of high performing software. They allow the user to exploit specific knowledge encoded in the constructs for the generation of code adapted to a particular hardware architecture; at the same time, they make it easier to generate optimized code for a multitude of platforms as the transformation has to be encoded only once. Here, we describe a new code generation framework (NMODL) for an existing DSL in the NEURON framework, a widely used software for massively parallel simulation of biophysically detailed brain tissue models. Existing NMODL DSL transpilers lack either essential features to generate optimized code or capability to parse the diversity of existing models in the user community. Our NMODL framework has been tested against a large number of previously published user models and offers high-level domain-specific optimizations and symbolic algebraic simplifications before target code generation. Furthermore, rich analysis tools are provided allowing the scientist to introspect models. NMODL implements multiple SIMD and SPMD targets optimized for modern hardware. Benchmarks were performed on Intel Skylake, Intel KNL and AMD Naples platforms. When comparing NMODL-generated kernels with NEURON we observe a speedup of up to 20x, resulting into overall speedups of two different production simulations by $\sim$10x. When compared to a previously published SIMD optimized version that heavily relied on auto-vectorization by the compiler still a speedup of up to $\sim$2x is observed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。