Skip to content

Getting Started

Jian Weng edited this page Oct 13, 2020 · 12 revisions

Prerequisites

Packages

$ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev        \
                       libgmp-dev gawk build-essential bison flex texinfo gperf libtool   \
                       patchutils bc qt4-dev-tools libqt4-dev python-dev scons flex bison \
                       libgoogle-perftools-dev python-six libssl-dev zlib1g-dev

It requires scons to build gem5. scons-4.x and Python-3.8.3 dev lib are not compatible. It is recommended to use Anaconda to manage the Python environment.

Misc

CMake at least 3.12 is required. You can go to CMake official page to get the latest one.

Python hex package is required for riscv-opcode. It seems to be a default package from Anaconda.

Build the Stack

Build the decoupled-spatial architecture stack from the source.

$ git clone --recursive [this repo]
$ source setup.sh
$ source $HOME/anaconda/bin/activate
$ make

Run an Example

Run a manually programmed example:

cd dsa-apps/manual/dsp-benchmarks/gemm
make sb-new.log

Run a compiled example:

cd dsa-apps/compiled/MachSuite/
./run.sh opt-ss-gemm.out
Clone this wiki locally