- CUDA > 10
- NEURON > 7.6.7
- Makefile
- GCC > 8.3.0
- see requirements.txt for other python requirments
There are a few steps for porting NEURON models to NeuroGPU:
- Upload hoc/mod files to a directory (like BBP_TTPC_Example folder).
- Compile with
nrnivmodl. - run
python extractModel.pyto build a directory calledPyNeuroGPU_Unix. - run
moveFiles.shto copy files intoPyNeuroGPU_Unix. - chdir to
PyNeuroGPU_Unix/python - Inside that directory you run
python extractModel.pyagain. - Then run
python extractModel_mappings.py. - Now you can run NeuroGPU by running
python runBBP.py
- We commonly move the simulation (NeuroGPU executable in
PyNeuroGPU_Unixfolder) to other repos / places for convienence. - To do this you can just move the whole
PyNeuroGPU_Unixfolder to wherever you want to run the simulation. - NeuroGPU requires that:
- If you change the params you use
allparams_from_mapping(param_values). - There needs to be two folders available one directory up from the directory
NeuroGPUis being called from --Dataandsrc.Datacontains files NeuroGPU needs to accesss andsrccontains the source code for the CUDA model.
- If you change the params you use
- To use another model one just needs to replace the hoc/mod files in BBP_TTPC_Example folder.
- Not all hoc and mod files are supported.
Please reach out to zladd@berkeley.edu or rbenshalom@ucdavis.edu if you encounter any issues. Or you can open an issue in https://github.com/roybens/NeuroGPU.
2022-12: MOD-C-2-CPP: Compatibility fixed for NEURON 9.0, 8.2 and 8.1 2023-04: Remove generated C files and hidden files. Update branching.mod for compatibility with new data structures coming in NEURON 9.0.