View on GitHub

BrainGrid

A project to facilitate construction of high-performance neural simulations

2. Installation

2.1 Necessary Hardware/Software

BrainGrid is designed to be easy to use and fast to simulate with, but given its scope and flexibility, there are some tradeoffs.

First, and perhaps most importantly, for the speedups that we desire, we found that CUDA was the most reasonable way to go. Hence,  if you want to use BrainGrid for migrating your model to GPUs, you will need the following:

To become a BrainGrid user or collaborator, you might also need:

Of course, BrainGrid is totally open source. If you wanted, you could modify BrainGrid and make an OpenCL version.

2.2 Download BrainGrid

In order to get started with BrainGrid, you will need to build it from scratch, which means getting its source codes. You can either download BrainGrid source codes as a zip file of a stable release (See 2.2.1 Download a release) or fork the development version from BrainGrid GitHub repository (See 2.2.2 Fork and clone BrainGrid).

2.2.1 Download a release

Point your browser to https://github.com/UWB-Biocomputing/BrainGrid/releases and download a release from the list by clicking the relevant source code button.

After downloading the source code, unpack it in a convenient location and continue to install BrainGrid as described in the Installing BrainGrid section below.

2.2.2 Fork and clone BrainGrid

If you are a Github user, you can simply fork and clone BrainGrid. If you are new to Github, follow our Wiki page on Contribute to BrainGrid open source project. You can also go over our Git Crash Course for some useful tips.

2.3 Install BrainGrid

In order to compile and run BrainGrid, you will need to set up a couple things in the Makefile first.

  1. Change to BrainGrid directory in your terminal

    $ cd BrainGrid
    
  2. Open Makefile and change the following parameters:

    If you are using CUDA,

    • change the CUDA library directory: CUDALIBDIR = YOUR_CUDA_LIBRARY_PATH
    • you might also need to add your CUDA home directory into the PATH environment variable

    If you are using HDF5,

    • change HDF5 home directory: H5INCDIR = YOUR_HDF5_HOME_PATH
    • change HDF5 library directory: H5LIBDIR = YOUR_HDF5_LIBRARY_PATH
    • make CUSEHDF5 = yes in line 17 to use HDF5 file format instead of XML
  3. BrainGrid is written in C++ and CUDA C/C++. Make sure you have all these dependencies in order to compile BrainGrid:

    • make
    • g++
    • h5c++: compile script for HDF5 C++ programs
    • nvcc: if you are using GPU for high performance, nvcc is the compiler by Nvidia for use with CUDA

» Next: 3. Quickstart


« Go back to BrainGrid Home page