Introducing the nmodl_preprocessor

Post Reply
David McDougall
Posts: 2
Joined: Mon Jul 05, 2021 11:46 pm

Introducing the nmodl_preprocessor

Post by David McDougall »

Hello,

I'm proud to announce my program: the "nmodl_preprocessor".

The nmodl_preprocessor optimizes your NMODL files to run faster and use less memory.
It can yeild up to 15% performance improvements.

How it works:
1) First this program scans through all of your simulation's source code in order to better optimize it. This includes all hoc, ses, inc, and python files.
2) Then this program optimizes the NMODL files and compiles them using nrnivmodl, to produce the magic "x86_64/special" files.

Example:

Code: Select all

pip install nmodl_preprocessor

cd ./myProjectDirectory/

nmodl_preprocessor .
The simulation results should not change, but be warned this program still has a few known bugs in it! Your simulation results should be identical with both nmodl_preprocessor and nrnivmodl. Please always remember to sanity check your results.

This program is not compatible with nrngui!

Github: https://github.com/ctrl-z-9000-times/nmodl_preprocessor

I hope you find this useful.
Sincerely, David McDougall.
Post Reply