Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. MOD2IR: High-Performance Code Generation for a Biophysically Detailed Neuronal Simulation DSL
 
conference paper

MOD2IR: High-Performance Code Generation for a Biophysically Detailed Neuronal Simulation DSL

Mitenkov, George
•
Magkanaris, Ioannis  
•
Awile, Omar  
Show more
2023
Proceedings of the 32nd ACM SIGPLAN International Conference on Compiler Construction
CC '23: 32nd ACM SIGPLAN International Conference on Compiler Construction

Advances in computational capabilities and large volumes of experimental data have established computer simulations of brain tissue models as an important pillar in modern neuroscience. Alongside, a variety of domain specific languages (DSLs) have been developed to succinctly express properties of these models, ensure their portability to different platforms, and provide an abstraction that allows scientists to work in their comfort zone of mathematical equations, delegating concerns about performance optimizations to downstream compilers. One of the popular DSLs in modern neuroscience is the NEURON MODeling Language (NMODL). Until now, its compilation process has been split into first transpiling NMODL to C++ and then using a C++ toolchain to emit the efficient machine code. This approach has several drawbacks including the reliance on different programming models to target heterogeneous hardware, maintainability of multiple compiler back-ends and the lack of flexibility to use the domain information for C++ code optimization. To overcome these limitations, we present MOD2IR, a new open-source code generation pipeline for NMODL. MOD2IR leverages the LLVM toolchain to target multiple CPU and GPU hardware platforms. Generating LLVM IR allows the vector extensions of modern CPU architectures to be targeted directly, producing optimized SIMD code. Additionally, this gives MOD2IR significant potential for further optimizations based on the domain information available when LLVM IR code is generated. We present experiments showing that MOD2IR is able to produce on-par execution performance using a single compiler back-end implementation compared to code generated via state-of-the-art C++ compilers, and can even surpass them by up to 1.26×. Moreover, MOD2IR supports JIT-execution of NMODL, yielding both efficient code and an on-the-fly execution workflow.

  • Files
  • Details
  • Metrics
Type
conference paper
DOI
10.1145/3578360.3580268
Author(s)
Mitenkov, George
Magkanaris, Ioannis  
Awile, Omar  
Kumbhar, Pramod  
Schürmann, Felix  
Donaldson, Alastair F.
Date Issued

2023

Publisher

ACM

Published in
Proceedings of the 32nd ACM SIGPLAN International Conference on Compiler Construction
ISBN of the book

979-8-4007-0088-0

Total of pages

13

Start page

203

End page

215

Editorial or Peer reviewed

REVIEWED

Written at

EPFL

EPFL units
BBP-CORE  
GR-FSCH  
Event nameEvent placeEvent date
CC '23: 32nd ACM SIGPLAN International Conference on Compiler Construction

Montréal QC Canada

2023-02-17

RelationURL/DOI

IsSupplementedBy

https://doi.org/10.5281/zenodo.7521260
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/203042
Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés