Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Base image: nabeyratne/ubuntu-12.04-gcc-4.6.3

Install dependencies for SST

$ apt-get update
$ apt-get upgrade
$ apt-get install build-essential autoconf automake1.9 libtool
$ apt-get install libopenmpi-dev openmpi-bin openmpi-common
$ apt-get install python-dev
$ mpiexec --version
$ mpirun
$ mkdir sst
$ mkdir sst/scratch
$ mkdir sst/scratch/src
$ mkdir sst/local
$ mkdir sst/local/packages
$ mkdir sst/local/lib

Install Boost 1.54

$ cd sst/scratch/src/
$ wget http://sourceforge.net/projects/boost/files/boost/1.54.0/boost_1_54_0.tar.gz
$ tar xfz boost_1_54_0.tar.gz
$ rm boost_1_54_0.tar.gz
$ cd boost_1_54_0/
$ ./bootstrap.sh --prefix=/sst/local/packages/boost-1.54
$ sed -i.bak -e '16 a\
# Add MPI so that Boost.MPI gets built.\
using mpi ;\
' project-config.jam
$ ./b2 install
$ echo "export LD_LIBRARY_PATH=/sst/local/packages/boost-1.54/lib:/usr/lib/openmpi/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc
$ echo "export DYLD_LIBRARY_PATH=/sst/local/packages/boost-1.54/lib:/usr/lib/openmpi/lib:\$DYLD_LIBRARY_PATH" >> ~/.bashrc
$ source ~/.bashrc

Build and Install SST 4.0.x

$ cd sst/scratch/src/
$ wget http://sst-simulator.org/downloads/sst-4.0.tar.gz
$ tar xfz sst-4.0.tar.gz
$ cd sst-4.0
$ ./autogen.sh
$ ./configure --prefix=/sst/local/sst-4.0 --with-boost=/sst/local/packages/boost-1.54
$ make all
$ make install
$ cd
$ echo "export PATH=/sst/local/sst-4.0/bin:\$PATH" >> ~/.bashrc
$ source .bashrc
$ sst --version
$ sst /sst/scratch/src/sst-4.0/sst/elements/simpleRNGComponent/mersenne.xml
$ apt-get clean
$ apt-get autoremove
$ exit
Docker Pull Command
Owner
nabeyratne

Comments (0)