NEURON on Trestles
Posted: Tue Apr 02, 2013 5:19 pm
Trestles is a supercomputer provided by the San Diego Supercomputing Center. It has over 10,000 cores. There are multiple ways to gain access to Trestles. One is via the Neuroscience Gateway as detailed in the post Run parallel simulations via the Neuroscience Gateway. Another is via an allocation from NSF's XSEDE program. For information on obtaining an XSEDE allocation, visit https://portal.xsede.org/web/guest/how- ... allocation. Note that, if you use the Neuroscience Gateway, it has been designed to relieve the user of duties such as installing NEURON or dealing with jobscripts. Installing NEURON is only necessary if you access Trestles outside of the Neuroscience Gateway, such as with an XSEDE allocation, AND if you do not want to use the NEURON version already installed for the Neuroscience Gateway.
In general, it should be sufficient to just use the NSG's NEURON installation (even if you are running simulations on your own XSEDE allocation, independently of the NSG). The NSG installation is located at: /projects/ps-nsg/home/nsguser/applicati ... /bin/nrniv. To use it, simply add the following to one of your profile scripts that runs upon login, such as .bashrc:
To test, log out and log back in again. Then enter:
and make sure the NSG installation of nrniv is returned. Then you should be good to go!
However, if you want to customize your install, read on for the installation procedure for Trestles.
To install NEURON on Trestles, follow these steps:
1. On Trestles, cd to your HOME directory:
2. Create a directory named 'neuron':
3. Enter the neuron directory:
4. Put the desired nrn-nn.tar.gz file (either the current standard distribution or a development version) in the neuron directory. Note that you will not be installing Interviews, so iv-nn.tar.gz is not needed.
5. Unpack the file:
6. Rename the unpacked directory:
7. Create the nrninstall.sh script that will install NEURON on Trestles. This file should contain the following text:
There are several other arguments that you probably didn't include when installing NEURON on your own machine; these arguments are nicely explained elsewhere on the forum.
8. In the neuron directory, create a second folder called 'mpi':
This is the directory in which NEURON will be built. The nrn directory will be kept clean, in case you want to build other versions of NEURON on your Trestles account.
9. Enter the mpi directory:
10. From the mpi directory, run the install script and write the output and errors to a log:
Testing the installation and running job scripts are covered in the reply to this post.
In general, it should be sufficient to just use the NSG's NEURON installation (even if you are running simulations on your own XSEDE allocation, independently of the NSG). The NSG installation is located at: /projects/ps-nsg/home/nsguser/applicati ... /bin/nrniv. To use it, simply add the following to one of your profile scripts that runs upon login, such as .bashrc:
Code: Select all
# load modules
module purge
module load gnubase
module load gnu
module load openmpi_ib
module load python
module load globus
# add NSG NEURON installation to your path
. /projects/ps-nsg/home/nsguser/applications/neuron7.3/nrnenv
Code: Select all
which nrniv
However, if you want to customize your install, read on for the installation procedure for Trestles.
To install NEURON on Trestles, follow these steps:
1. On Trestles, cd to your HOME directory:
Code: Select all
cd $HOME
Code: Select all
mkdir neuron
Code: Select all
cd neuron
5. Unpack the file:
Code: Select all
tar xzf nrn-nn.tar.gz
Code: Select all
mv nrn-nn nrn
Code: Select all
module purge
module load gnu openmpi
../nrn/configure --prefix=`pwd` --with-paranrn --with-nrnpython --without-x
make
make install
8. In the neuron directory, create a second folder called 'mpi':
Code: Select all
mkdir mpi
9. Enter the mpi directory:
Code: Select all
cd mpi
Code: Select all
sh ../nrninstall.sh > & installnotes.log