This repo is a supplement to Sandia National Lab's Structural Simulation Toolkit - https://github.com/sstsimulator
This repo aggregates resources intended to welcome new users of SST.
See the wiki
File types present:
*.cc
- C++ source code*.h
- header files for C++*.m4
- https://en.wikipedia.org/wiki/M4_(computer_language)*.py
- Python files*.lo
- libtool object file; generated by libtoolmake docker
The initial build process takes 1.5 hours from source for core+elements
What version of SST is this?
sst --version
what components are registered?
sst-info
test an example by running
sst build/sst-elements/src/sst/elements/simpleElementExample/tests/test_simpleRNGComponent_mersenne.py
sst build/sst-elements/src/sst/elements/simpleElementExample/tests/test_simpleClockerComponent.py
sst build/sst-elements/src/sst/elements/simpleElementExample/tests/test_simpleLookupTable.py
sst build/sst-elements/src/sst/elements/simpleSimulation/tests/test_simpleCarWash.py
Each of the .py scripts is a configuration for a simulation (SST jargon: "Project Driver file"). The components are compiled from .cc and .h file. See https://sst-simulator.org/SSTPages/SSTUserPythonFileFormat/ All of the examples are a single isolated component. (Nothing demonstrating a link?)
To generate a graphviz of the components and links, use
sst --output-dot=${outfile}.gv --run-mode=init ${cfgfile}.py
where "outfile" is the name of the graphviz file produced and "cfgfile" is the Python Project Driver file.
docker run -it --rm -v `pwd`:/scratch sst:latest sst --output-dot=/scratch/file.gv --run-mode=init /home/sst/build/sst-elements/src/sst/elements/simpleElementExample/tests/subcomponent_tests/test_sc_2a.py
docker run -it --rm -v `pwd`:/scratch sst:latest dot /scratch/file.gv -Tpng > file.png
see https://sst-simulator.org/SSTPages/SSTMainDownloads/#SSTutorials and https://github.rcac.purdue.edu/green349/sst-tutorial/tree/master/exercises (which has more than https://github.com/sstsimulator/sst-tutorials/tree/master/exercises)