Giter Site home page Giter Site logo

guo-hy / dirtystuff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lingrui98/dirtystuff

0.0 0.0 1.0 126 KB

An individual repo to contain all the tools that I created for arch research;

License: GNU General Public License v3.0

Python 95.02% C++ 3.89% Shell 1.09%

dirtystuff's Introduction

BatchTaskTemplate

Python scripts to manage parallelism and input resources for simulation tasks.

We will support or have supported these features:

  • Multiple GEM5 instances on single machine restoring from the Generic checkpoint for RISC-V
  • Multiple NEMU(private repo) instances on single machine restoring from the Generic checkpoint for RISC-V
  • Generate checkpoint by resuming from the nearest checkpoint with NEMU
  • Multiple Verilator simulation of Xiangshan instances on single machine restoring from the Generic checkpoint for RISC-V
  • Bug ''generation'', bug info gathering and VCD gathering for Xiangshan
  • Stats gathering for GEM5

We might support, but will not support in the near future:

  • Distributed version

Getting started

We use sh package to call simulators:

pip install sh

We will use GEM5 as an Example. We have a modified version of GEM5 here that supports current MMIO space and Generic Checkpoint. A full GEM5 tutorial can be found here.

Install dependency

First, install dependent packages.

For debian family:

sudo apt install gcc g++ python3 zlib1g-dev m4 libprotobuf-dev git swig python-dev protobuf-compiler libgoogle-perftools-dev libevent-dev make libncurses5-dev build-essential autoconf

If scons is 2.x on your machine, you can manually download scons 3 from sourceforge. Then expose the script to PATH in bashrc/zshrc/xxrc:

export PATH=/the/path/to/scons-3.1.2/src/script:$PATH

Note that scons is still the old scons, while scons.py is the newly installed one.

# Do to forget to source
source ~/.blablarc

build

cd /where/gem5/is/cloned
scons.py build/RISCV/gem5.opt -j 40

Wait a few minutes.

set executable, data, and script paths

Up-to-date instructions for running GEM5 with GCPT

dirtystuff's People

Contributors

guo-hy avatar lingrui98 avatar maxkev1n avatar shinezyy avatar sktt1ryze avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.