Code Monkey home page Code Monkey logo

prefecter's Introduction

Prefetcher

The code in this repo works to recreate a prefetcher described here: https://dl.acm.org/doi/abs/10.1145/3373376.3378498. Currently, the code can read in a trace file and create a dataflow graph (or the prefecth kernel) based on it, as described in section 4 of the paper.

A brief description of the purpose of some files in this repo.

main.c

main.c reads in the trace file and creates the graph. The trace is saved in the structure specified in instruction.h. The trace file and the cache miss profile (generated by ChampSim tool) is provided to the program as inputs from command line. The main() function will then first search the last occurence of an ip where cache miss happened and record the previous instruction. And then, it builds up the graph.

graph.h

In this file I defined the graph data structure used in the project with the help of boost/graph library. The methods include basic graph operations as well as a store-load-bypass function.

trace_test.c

This program prints out a trace file.

Usage

The system must have boost/graph library installed before use.
To run the program, use:

g++ -g -std=c++11 -o main main.cpp
./main -traces TRACE_FILE PROFILE_FILE

prefecter's People

Contributors

yc2454 avatar

Watchers

 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.