SST macro installation

March 03, 2017 | 2 Minute Read

In this post, we are going to install hpc modeling software.

What is sst-macro?

A HPC simulator for interconnection and application performance prediction.

Goal of this post:

Install sst-macro with sst-core .

  • http://sst-simulator.org/SSTPages/SSTBuildAndInstall6dot1dot0SeriesDetailedBuildInstructions/
  • https://github.com/sstsimulator/sst-macro/blob/v6.1.0_beta/docs/manual/manual.md and sst-elements modeling support for detailed simulation.

Details Installation Instruction:

My machine Spec:

  • UBUNTU 14.04, x86_64

Dependencies

  1. gcc, g++ 4.9, 5.+
  2. openmpi 1.8.8 (Make from source)
    • Note: mpich from apt-get didnt work for me
  3. boost 1.59
  4. sst-core 6.0.1
  5. sst-elements

Installing gcc 4.9

From : http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

Configure ~/.bashrc OR env file

export MPICC=mpicc
export MPICXX=mpicxx

export MPIHOME=/usr/local/packages/OpenMPI-1.8.8
export BOOST_HOME=/usr/local/packages/boost-1.59
export SST_CORE_HOME=/local/sst/sstcore
export SST_ELEMENTS_HOME=/local/sst/sstelements
export SST_MACRO_HOME=/local/sst/sstmacro

export PATH=$MPIHOME/bin:$SST_CORE_HOME/bin:$SST_ELEMENTS_HOME/bin:$SST_MACRO_HOME/bin:$PATH
export LD_LIBRARY_PATH=$BOOST_HOME/lib:$SST_MACRO_HOME/lib:$MPIHOME/lib:$LD_LIBRARY_PATH

Now, source .bashrc

source ~/.bashrc

Installing Dependency: (1) openmpi

sudo su -
cd /local/scratch/src
scp obaida@prime-server.cs.fiu.edu:~/hpc/sst/*.tar.gz .
scp obaida@prime-server.cs.fiu.edu:~/hpc/sst/*.tar.bz2 .
tar -zxf openmpi-1.8.8.tar.gz
cd openmpi-1.8.8
./configure --prefix=$MPIHOME
make all install

Installing Dependency: (2) boost

cd /local/scratch/src/boost_1_59_0
./bootstrap.sh --prefix=$BOOST_HOME
./b2 install
#...updated 12357 targets...; NO ERROR? WOW

Installing Dependency: (3) sst-core & (4)sst-elements

cd /local/scratch/src/sstcore-6.1.0
./configure --prefix=$SST_CORE_HOME --with-boost=$BOOST_HOME
make all
make install

@installing sst-elements
cd /local/scratch/src/sst-elements-library-6.1.0
./configure --prefix=$SST_ELEMENTS_HOME --with-sst-core=$SST_CORE_HOME
make all
make install

# Test sst installation
sst --version
# Should see the sst version 6.1.0
sst /local/scratch/src/sst-elements-library-6.1.0/src/sst/elements/simpleElementExample/tests/test_simpleRNGComponent_mersenne.py

sst-macro installation

There is a bug with the –with-sst flag, we need to ignore that. Developers think macro would work with default parameters.

cd /local/scratch/src
git clone https://github.com/sstsimulator/sst-macro.git
cd sst-macro
./bootstrap.sh
mkdir build 
cd build
../configure --prefix=$SST_MACRO_HOME --disable-regex CC=$MPICC CXX=$MPICXX
# Ubuntu Bug [as mentioned in the documentation] , you might need
#   LDFLAGS="-Wl,-no-as-needed" 
# Doesnt work[BUG], c++ issue:
#   --with-sst-core=$SST_CORE_HOME

make
make install

# check sst++ --version
sst++ --version

# Test sst-macro
cd ../skeletons/sendrcv
make all
./runsendrcv
#Should see some output from the simulator

Feel free to get in touch with the developers(not me!) if you get in trouble.