All Projects → harvard-acc → smaug

harvard-acc / smaug

Licence: BSD-3-Clause license
SMAUG: Simulating Machine Learning Applications Using Gem5-Aladdin

Programming Languages

C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to smaug

desim
A discrete-time events simulation framework, written in rust, using the generator experimental feature
Stars: ✭ 27 (-56.45%)
Mutual labels:  simulator
community-projects
Webots projects (PROTO files, controllers, simulation worlds, etc.) contributed by the community.
Stars: ✭ 20 (-67.74%)
Mutual labels:  simulator
graspit
The GraspIt! simulator
Stars: ✭ 142 (+129.03%)
Mutual labels:  simulator
dice-simulator
A Python simple Dice Simulator just for fun
Stars: ✭ 17 (-72.58%)
Mutual labels:  simulator
door-controller-test-tool
Door controller test tool for physical access control devices. (THIS PROJECT IS NO LONGER MAINTAINED)
Stars: ✭ 13 (-79.03%)
Mutual labels:  simulator
CarND-Path-Planning
Highway driving at 50 mph with traffic using A* for path planning.
Stars: ✭ 18 (-70.97%)
Mutual labels:  simulator
sst-core
SST Structural Simulation Toolkit Parallel Discrete Event Core and Services
Stars: ✭ 82 (+32.26%)
Mutual labels:  simulator
NanoSim
Nanopore sequence read simulator
Stars: ✭ 156 (+151.61%)
Mutual labels:  simulator
PandExo
A Community Tool for Transiting Exoplanet Science with the JWST & HST
Stars: ✭ 23 (-62.9%)
Mutual labels:  simulator
bcst csapp
A C language repo to implement CSAPP
Stars: ✭ 696 (+1022.58%)
Mutual labels:  simulator
Tricky68k
Motorola 68000 simulator for Mac OS X
Stars: ✭ 42 (-32.26%)
Mutual labels:  simulator
sst-macro
SST Macro Element Library
Stars: ✭ 21 (-66.13%)
Mutual labels:  simulator
lifely
Lifely is a text-based life simulator with no graphics. Some features might be unstable as of now.
Stars: ✭ 21 (-66.13%)
Mutual labels:  simulator
EdgeSim
Simulate the real environment, perform edge computing, edge caching experiments
Stars: ✭ 53 (-14.52%)
Mutual labels:  simulator
epidemic-simulator
A HTML/JavaScript simulator for an epidemc on a population
Stars: ✭ 23 (-62.9%)
Mutual labels:  simulator
lv sim emscripten
LVGL ported to Emscripten to be converted to JavaScript
Stars: ✭ 40 (-35.48%)
Mutual labels:  simulator
NASSP
Project Apollo - NASSP
Stars: ✭ 110 (+77.42%)
Mutual labels:  simulator
SeQUeNCe
Simulator of QUantum Network Communication (SeQUeNCe) is an open-source tool that allows modeling of quantum networks including photonic network components, control protocols, and applications.
Stars: ✭ 44 (-29.03%)
Mutual labels:  simulator
SpiceSharp
Spice# is a cross-platform electronic circuit simulator based on Berkeley Spice - the mother of commercial industry-standard circuit simulators.
Stars: ✭ 146 (+135.48%)
Mutual labels:  simulator
navdatareader
Navdatareader is a command line tool that uses the atools fs/bgl and fs/writer to store a full flight simulator scenery database into a relational database like Sqlite or MySql.
Stars: ✭ 35 (-43.55%)
Mutual labels:  simulator

SMAUG: Simulating Machine Learning Accelerators Using gem5-Aladdin

harvard-acc

SMAUG is a deep learning framework that enables end-to-end simulation of DL models on custom SoCs with a variety of hardware accelerators. SMAUG is designed to enable DNN researchers to rapidly evaluate different accelerator and SoC designs and perform hardware-software co-design. Simulation is powered by the gem5-Aladdin SoC simulator, allowing users to easily write new hardware accelerators and integrate them into SMAUG for testing and exploration.

SMAUG provides stable Python and C++ APIs, allowing users to work at varying levels of abstraction. For example, researchers can:

  • Focus on building and evaluating models by working with the high-level Python API.
  • Focus on evaluating different SoC configurations through gem5.
  • Evaluate new tiling strategies and configurations through th C++ tiling optimizers.
  • Build new accelerators and integrate them into SMAUG.

If you are using SMAUG in research, we would appreciate a reference to:

Sam (Likun) Xi, Yuan Yao, Kshitij Bhardwaj, Paul Whatmough, Gu-Yeon Wei, and David Brooks. SMAUG: End-to-End Full-Stack Simulation Infrastructure for Deep Learning Workloads. ACM Transactions on Architecture and Code Optimization, 17, 4, Article 39 (November 2020). https://doi.org/10.1145/3424669.

API documentation and tutorials are available at https://harvard-acc.github.io/smaug_docs.

Installation

SMAUG requires use of a Docker image, available on Docker Hub here. Users who cannot use Docker can follow the commands in the Dockerfile to set up a local environment. However, due to our limited resources, we can only offer support to Docker users.

To install SMAUG, first install Docker, then pull the Docker image:

docker pull xyzsam/smaug:latest

Then, run the following command to create a Docker volume that hosts your workspace and start the container. The local volume (aka smaug-workspace below) will store all your source code, local changes, and build artifacts, so that you can start/stop the Docker container without losing any of your work.

docker run -it --rm --mount source=smaug-workspace,target=/workspace xyzsam/smaug:latest

The Docker container already contains all the source code repositories you need, but they are probably out of date. You will need to update them. Go into your /workspace directory and run the following commands:

cd gem5-aladdin && git pull origin master && git submodule update --init --recursive && cd ..
cd LLVM-Tracer && git pull origin master && cd ..
cd smaug && git pull origin master && git submodule update --init --recursive && cd ..

Building

We need to build gem5-Aladdin. The -j parameter controls how many CPUs are used. Increase this value to speed up the build, but keep in mind that you may run out of memory before you run out of CPUs. Running out of memory or disk space can cause mysterious build failures.

cd /workspace/gem5-aladdin
python2.7 `which scons` build/X86/gem5.opt PROTOCOL=MESI_Two_Level_aladdin -j2

And then SMAUG:

cd /workspace/smaug
make all -j8

You are now ready to work with SMAUG. Read on to learn how to run your first model.

Running your first model

Run the 4-layer Minerva model with our NVDLA-like backend codenamed SMV:

cd /workspace/smaug/experiments/sims/smv/tests/minerva
sh run.sh

Tutorials and APIs

Documentation for writing new models and building on top of SMAUG can be found at https://harvard-acc.github.io/smaug_docs.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].