Cell splitting in neural networks extends strong scaling (Hines et al. 2008)

 Download zip file   Auto-launch 
Help downloading and running models
Accession:97917
Neuron tree topology equations can be split into two subtrees and solved on different processors with no change in accuracy, stability, or computational effort; communication costs involve only sending and receiving two double precision values by each subtree at each time step. Application of the cell splitting method to two published network models exhibits good runtime scaling on twice as many processors as could be effectively used with whole-cell balancing.
Reference:
1 . Hines ML, Eichner H, Schürmann F (2008) Neuron splitting in compute-bound parallel network simulations enables runtime scaling with twice as many processors. J Comput Neurosci 25:203-10 [PubMed]
Citations  Citation Browser
Model Information (Click on a link to find other models with that property)
Model Type: Realistic Network;
Brain Region(s)/Organism: Generic;
Cell Type(s):
Channel(s):
Gap Junctions:
Receptor(s):
Gene(s):
Transmitter(s):
Simulation Environment: NEURON;
Model Concept(s): Methods;
Implementer(s): Hines, Michael [Michael.Hines at Yale.edu];
/
splitcell
nrntraub
cells
hoc
mod
net
README
balcomp.hoc *
bgrunme
bgsmall.sh
bgsplit.sh
cell_templates.hoc *
clear.hoc *
finit.hoc *
fortmap.hoc *
gidcell.hoc
gidcell.ses *
init.hoc
manage_setup.hoc
metisbal.sh
mosinit_orig.hoc *
onecell.hoc
onecell.ses *
prcellstate.hoc *
prepare.sh
printcon.hoc *
spkplt.hoc *
vclampg.hoc *
vcompclamp.hoc *
vcompsim.hoc *
                            
#!/bin/sh

NRNIV=/home/hines/neuron/nrnmpi/x86_64/bin/nrniv

np=1
PHASE=0
if test "$1" != "" ; then
	PHASE="$1"
fi

run() {
  np=$1
  shift
  echo "mpiexec -n $np $NRNIV -mpi $*"
  mpiexec -n $np $NRNIV -mpi $*
}

phase() {
 np=$1
 p=$2
 shift
 shift
 run $np -c "load_balance_phase=$p" $*
}

# create mcomplex.dat
if test "$PHASE" = "1" ; then
phase 1 $PHASE init.hoc
fi

# whole cell load balance with specified prefix and nhost
if test "$PHASE" = "4" ; then
prefix=cxwhole
nhost=256
sed "
/default_var.*wholecell_prefix/s/cxwhole/$prefix/
" init.hoc > _init.hoc
phase 4 $PHASE _init.hoc
run 1 -c "{load_file(\"hoc/binfo.hoc\")}" -c "mymetis2(\"$prefix\",$nhost)"
fi

#whole cell load balance run with specified prefix
if test "$PHASE" = "5" ; then
prefix=cxwhole
nhost=256
if test "$2" != "" ; then
  nhost="$2"
fi

sed "
/default_var.*wholecell_prefix/s/cxwhole/$prefix/
" init.hoc > _init.hoc
phase $nhost $PHASE _init.hoc
sortspike out$nhost.dat out$nhost.$PHASE
rm out$nhost.dat
fi

# base round robin run
if test "$PHASE" = "0" ; then
nhost=256
if test "$2" != "" ; then
  nhost="$2"
fi
phase $nhost $PHASE init.hoc
sortspike out$nhost.dat out$nhost.$PHASE
rm out$nhost.dat
fi

# multisplit load balance with specified prefix and nhost
if test "$PHASE" = "6" ; then
prefix=cx
nhost=256
if test "$2" != "" ; then
  nhost="$2"
fi
sed "
/default_var.*multisplit_prefix/s/cx/$prefix/
/default_var.*multisplit_nhost/s/256/$nhost/
" init.hoc > _init.hoc
phase 4 $PHASE _init.hoc
run 1 -c "{load_file(\"hoc/binfo.hoc\")}" -c "mymetis3(\"$prefix\",$nhost)"
#run 1 -c "{load_file(\"hoc/binfo.hoc\")}" -c "mkbalinfo(\"$prefix\",$nhost)"
fi


# multisplit load balance run
if test "$PHASE" = "7" ; then
prefix=cx
nhost=256
if test "$2" != "" ; then
  nhost="$2"
fi
sed "
/default_var.*multisplit_prefix/s/cx/$prefix/
" init.hoc > _init.hoc
phase $nhost $PHASE _init.hoc
sortspike out$nhost.dat out$nhost.$PHASE
rm out$nhost.dat
fi