Detailed Build and Installation Instructions for SST 7.1.x

Overview

SST is an open source, cross platform simulation platform that provides a framework to connect multiple simulated hardware object including CPUs, network, memory, etc. Simulations using the toolkit can be run either single node, or run on multiple nodes via MPI. The toolkit provides a parallel discrete event core as well as several programming interfaces including classes to manage random number generation, statistics handling, simulation output and efficient memory pooling for simulation events. The most recent performance evaluation has shown that SST can scale to simulate beyond 1.5M objectss and operate efficiently on simulations up to 128 dual-processor nodes.

These instructions are intended to walk the user through a detailed set of steps to build and install SST. It is intended for users with intermediate knowledge in the operation of Unix/Linux/OSX environments.

NOTE: The following instructions build a basic version of SST and its required external components. Additional (optional) external components can be built to provide additional features. Instructions for these additional components are available at Instructions for Additional External SST Components.

The SST Release Notes identify what operating systems, compiler and external component combinations have been tested and proven to work with SST 7.1.x.

NOTE: Using combinations other than what is identified in the Release Notes may cause build failures and/or unexpected results.

A detailed list of elements provided with the SST distribution are available at SST Element Summary and SST Element Release Matrix.

If you encounter difficulties, go to the SST Support page.

NOTE: Building SST can sometimes be cumbersome and error prone due to the sheer number of combinations of operating systems, compiler versions and external required components. It is STRONGLY recommended that users closely follow these instructions.

General Build and Install Information

SST does not require root/superuser privileges for installation. Prior to installation, the user will need to decide on directories where SST and its prerequisites can be built and installed. This location should have sufficient space and permissions for building and storage of the libraries and other binaries.

The user is expected to have an intermediate knowledge in the operation of Unix/Linux/OSX environments. They should be able to modify their environment variables, and understand basic build/installation methods, and manipulate the file system.

NOTE: SST and all of its external components should be built using the same compiler type and version. Using different types or versions can create binary incompatibilities that may be difficult to diagnose.

Shell Used For Instructions

These instructions are targeted for users running Bourne-compatible shells. Users running different shells will need to adjust these instructions as necessary.

Specific Instructions for Operating Systems and Compilers

There are 2 main operating systems used for SST: Linux and Mac OSX.

In the instructions that follow, the following icons are used to point out specific issues for an operating system or an operating system with a specific compiler.

- Represents Instructions specific to Linux Operating Systems.

- Represents Instructions specific to Mac OSX Operating Systems.


Required system tools

Refer to SST Build Prerequisites for a list of required system tools necessary for building SST.

- Most Linux Systems contain all the necessary tools required to build SST (either pre-installed or available via the distro.), however some older versions may need their system tools updated.
NOTE - Newer versions of components for SST (such as Boost) can cause incompatibilites. It is recommended that the user use the versions defined in the SST Release Notes.

- Mac OSX systems will need the following to be installed on the system before building SST see (Mac OSX Install Options):


Example Build and Install Directories

These instructions will use the following conventions (the user can adjust these as they see fit):

Other Possible Tasks for Users

For most users, following these instructions will get SST up and running. However there may be rare circumstances that the user will have implement additional changes to their system to resolve problems.

The user may have to possibly modify their system in the following possible ways:

It is expected that the user has sufficent knowledge in Linux and/or Mac OSX operating systems to manage and understand these changes.



Building A Basic SST System

SST recommends 1 external component (OpenMPI) to be built, installed and available on the users machine. After this component is available, then SST itself can be built and installed.

Additional external components can be built to provide additional features. Instructions for these additional components are available at Instructions for Additional External SST Components.

NOTE: If OpenMPI is not available, the SST-Core must be configured with the --disable-mpi option (see configure instructions below). With OpenMPI disabled, the user will be unable to run multi-node simulations.

External Dependent Components

SST 7.1.x is regularly tested with OpenMPI 1.8.8, and this version is known to work with SST. Installation of an MPI package from source code is typically unnecessary, since many Linux distributions provide OpenMPI as an optional installable package. Instructions for building OpenMPI 1.8.8 follow.

OpenMPI can be obtained online at http://www.open-mpi.org/software/ompi/v1.8/

1. Download the OpenMPI archive file openmpi-1.8.8.tar.gz to $HOME/scratch/src

2. Unarchive the compressed tar file

$ cd $HOME/scratch/src
$ tar xfz openmpi-1.8.8.tar.gz
$ cd openmpi-1.8.8

3. Decide on an installation location. For this example: $HOME/local/packages/OpenMPI-1.8.8. Note this location will contain bin, lib, include, and other directories for use of OpenMPI.

4. Set the home directory environment variable of the OpenMPI installation.

$ export MPIHOME=$HOME/local/packages/OpenMPI-1.8.8 

5. Configure OpenMPI to be installed in $MPIHOME

$ ./configure --prefix=$MPIHOME

6. Build and install OpenMPI

$ make all install

7. Update your PATH environment variable so that it contains the bin directory of the OpenMPI installation location. Also set the MPICC and MPICXX variables to point to the correct MPI compiler options. initialization file.

$ export PATH=$MPIHOME/bin:$PATH  
$ export MPICC=mpicc   
$ export MPICXX=mpicxx

8. OPTIONAL - In some cases, it may be necessary to specify the location of the OpenMPI library files for proper operation of SST.

$ export LD_LIBRARY_PATH=$MPIHOME/lib:$LD_LIBRARY_PATH
$ export DYLD_LIBRARY_PATH=$MPIHOME/lib:$DYLD_LIBRARY_PATH
$ export MANPATH=$MPIHOME/share/man:$DYLD_LIBRARY_PATH

9. To make the changes to the environment variables a permanent change, it may require editing of your login shell’s initialization file.



SST New Build Architecture

NOTE - SST (6.x and later) is now made up of two separate packages:

NOTE - SST (7.x and later) no longer requires Boost to be built as part of the core. However a number of elements may still require Boost support.



SST CORE 7.1.x Build and Installation

After the prerequisite Components (OpenMPI and other optional components) have been successfully installed, the SST-Core can then be built and installed.

1. Obtain the SST-Core 7.1.x source code and save it in $HOME/scratch/src. The tarfile can be downloaded from here.

$ cd $HOME/scratch/src
$ tar xfz sstcore-7.1.0.tar.gz
$ cd $HOME/scratch/src/sstcore-7.1.0

2. Set the home directory environment variable to the SST-Core installation (i.e. where you want the SST-Core files installed).

$ export SST_CORE_HOME=$HOME/local/sstcore-7.1.0 

3. Review prerequisite package installation locations and use this to construct a configure line for SST-Core. For more information on SST-Core configuration click here or run $ ./configure –help

4. Configure SST-Core, being sure to make configure reference the location of SST-Core’s local prerequisite packages.

$ ./configure --prefix=$SST_CORE_HOME [other configure settings as needed]

5. Build and install SST-CORE

$ make all
$ make install

6. Update your PATH environment variable so that it contains the bin directory of the SST-CORE installation location.

$ export PATH=$SST_CORE_HOME/bin:$PATH

7. To make the changes to the environment variables a permanent change, it may require editing of your login shell’s initialization file.



SST Elements 7.1.x Build and Installation

After SST-Core) has been successfully installed, SST-Elements can then be built and installed.

1. Obtain the SST-Elements 7.1.x source code and save it in $HOME/scratch/src. The tarfile can be downloaded from here.

$ cd $HOME/scratch/src
$ tar xfz sstelements-7.1.0.tar.gz
$ cd $HOME/scratch/src/sst-elements-library-7.1.0

2. Set the home directory environment variable to the SST-Elements installation (i.e. where you want the SST-Elements files installed).

$ export SST_ELEMENTS_HOME=$HOME/local/sstelements-7.1.0 

3. Review prerequisite package installation locations and use this to construct a configure line for SST-Elements. For more information on SST-Elements configuration click here or run $ ./configure –help

4. Configure SST-Elements, being sure to make configure reference the location of SST-Elements’s local prerequisite packages.

$ ./configure --prefix=$SST_ELEMENTS_HOME --with-sst-core=$SST_CORE_HOME [other configure settings as needed]

5. Build and install SST-ELEMENTS

$ make all
$ make install

6. Update your PATH environment variable so that it contains the bin directory of the SST-ELEMENTS installation location.

$ export PATH=$SST_ELEMENTS_HOME/bin:$PATH

7. To make the changes to the environment variables a permanent change, it may require editing of your login shell’s initialization file.



Testing SST 7.1.x Functionality

1. Run a very simple sanity test

$ sst --version

2. Run a very simple simulation

$ sst <Path to SST-Elements Source Directory>/src/sst/elements/simpleElementExample/tests/test_simpleRNGComponent_mersenne.py


What’s Next…



Configuration selection for Internal Elements and Optional/Required External Components

Below is a description of the Elements provided with SST 7.1.x. Most elements are automatically included in the configuration. Some elements are only enabled when the –with-“external component” is set. For more information, see Instructions for Additional External SST Components