Coder Social home page Coder Social logo

modeldbrepository / 267384 Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 1.0 529 KB

NeuroGPU example on L5_TTPC1_cADpyr232_1 (Ben-Shalom 2022)(Ramaswamy et al., 2015)

Home Page: https://modeldb.science/267384

C++ 0.81% Cuda 2.43% C 0.19% AMPL 1.11% Python 30.51% Batchfile 0.01% AGS Script 62.58% Shell 0.14% Jupyter Notebook 2.21%
neocortex-layer-5-pyramidal-cell neuron-simulator python neurogpu

267384's Introduction

NeuroGPU + BBP TTPC Example

Prerequisites

  • CUDA > 10
  • NEURON > 7.6.7
  • Makefile
  • GCC > 8.3.0
  • see requirements.txt for other python requirments

Getting Started

There are a few steps for porting NEURON models to NeuroGPU:

  1. Upload hoc/mod files to a directory (like BBP_TTPC_Example folder).
  2. Compile with nrnivmodl.
  3. run python extractModel.pyto build a directory called PyNeuroGPU_Unix.
  4. run moveFiles.sh to copy files into PyNeuroGPU_Unix.
  5. chdir to PyNeuroGPU_Unix/python
  6. Inside that directory you run python extractModel.py again.
  7. Then run python extractModel_mappings.py.
  8. Now you can run NeuroGPU by running python runBBP.py

Moving the Model

  • We commonly move the simulation (NeuroGPU executable in PyNeuroGPU_Unix folder) to other repos / places for convienence.
  • To do this you can just move the whole PyNeuroGPU_Unix folder 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 NeuroGPU is being called from -- Data and src. Data contains files NeuroGPU needs to accesss and src contains the source code for the CUDA model.

Building Out from the Example

  • 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 [email protected] or [email protected] if you encounter any issues. Or you can open an issue in https://github.com/roybens/NeuroGPU.

Changelog

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.

267384's People

Contributors

alexsavulescu avatar olupton avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.