https://github.com/dhschall/gem5-fdp

Development repository for Fetch Directed Instruction Prefetching (FDP) in gem5

https://github.com/dhschall/gem5-fdp

Science Score: 33.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README
  • Academic publication links
    Links to: ieee.org
  • Committers with academic emails
    100 of 393 committers (25.4%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.9%) to scientific vocabulary

Keywords

microarchitecture prefetching simulator

Keywords from Contributors

computer-science computer-science-rankings conference dblp faculty ranking deep-neural-networks distributed advertising distributed-training
Last synced: 4 months ago · JSON representation

Repository

Development repository for Fetch Directed Instruction Prefetching (FDP) in gem5

Basic Info
  • Host: GitHub
  • Owner: dhschall
  • License: bsd-3-clause
  • Language: C++
  • Default Branch: fdp
  • Homepage: http://www.gem5.org
  • Size: 270 MB
Statistics
  • Stars: 25
  • Watchers: 0
  • Forks: 4
  • Open Issues: 5
  • Releases: 0
Fork of gem5/gem5
Topics
microarchitecture prefetching simulator
Created over 2 years ago · Last pushed 5 months ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Fetch Directed Instruction Prefetching for gem5

This is the development repository for Fetch Directed Instruction Prefetching (FDP) in gem5 also known as decoupled front-end. FDP was originally published in MICRO'99. Today, FDP is the standard front-end design for high performance server CPU's including CPU's from Intel, IBM, AMD, and ARM.

This implementation is based on an industrial report and aims to establish a state-of-the-art front-end design comparable to modern servers in gem5.

How to use

We included an example script how to configure FDP correctly and simulate a simple "Hello World!" program. The script is tested with the x86, ARM, RISC-V ISA's which can be specified by the --isa flag.

```bash

Build gem5

scons build/ALL/gem5.opt

Run the simulation

./build/ALL/gem5.opt \ configs/example/gem5_library/fdp-hello.py \ --isa [--disable-fdp] ```

Notes

The implementation was developed for the X86 architecture in full-system mode. Other architectures were not extensively tested. If you encounter any issues, please let us know via issues, pull requests or PM to David Schall GitHub,web page. Furthermore, we welcome any feedback and ideas for improvements.

Reference our work

This work was done for our recent paper accepted to MICRO'23. If you use our work, please cite our paper: @inproceedings{10.1145/3613424.3614258, author = {Schall, David and Sandberg, Andreas and Grot, Boris}, title = {Warming Up a Cold Front-End with Ignite}, year = {2023}, publisher = {Association for Computing Machinery}, address = {Toronto, ON, Canada}, doi = {10.1145/3613424.3614258}, booktitle = {Proceedings of the 56th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO '23)}, series = {MICRO'23} }

gem5 integration status

We are currently in the process of integrating the changes to the main gem5. It is a time-consuming process as the changes are extensive and require a lot of testing. This might cause conflicts if you try to merge the changes into the main gem5. We try to keep the list of the integration status up-to-date. Furthermore, it might be possible that some bugs are fixed while integrating the changes.

  • [ ] cpu: Update BPU to support decoupled front-end
  • [ ] cpu: Implement decoupled front-end
  • [ ] cpu: Implement fetch target queue
  • [ ] cpu: Implement taken-only history (#499)
  • [ ] cpu: Implement fetch directed prefetcher
  • [x] arch: Add instruction size and PC set methods (#357)
  • [x] sim: Probe listener template with lambda (#356)
  • [ ] cpu: Branch Predictor Refactoring (#455)
  • [x] cpu: Refactor indirect predictor (#429)
  • [x] cpu: Restructure RAS (#428)
  • [x] cpu: Restructure BTB (#412)


The gem5 Simulator

This is the repository for the gem5 simulator. It contains the full source code for the simulator and all tests and regressions.

The gem5 simulator is a modular platform for computer-system architecture research, encompassing system-level architecture as well as processor microarchitecture. It is primarily used to evaluate new hardware designs, system software changes, and compile-time and run-time system optimizations.

The main website can be found at http://www.gem5.org.

Getting started

A good starting point is http://www.gem5.org/about, and for more information about building the simulator and getting started please see http://www.gem5.org/documentation and http://www.gem5.org/documentation/learning_gem5/introduction.

Building gem5

To build gem5, you will need the following software: g++ or clang, Python (gem5 links in the Python interpreter), SCons, zlib, m4, and lastly protobuf if you want trace capture and playback support. Please see http://www.gem5.org/documentation/general_docs/building for more details concerning the minimum versions of these tools.

Once you have all dependencies resolved, execute scons build/ALL/gem5.opt to build an optimized version of the gem5 binary (gem5.opt) containing all gem5 ISAs. If you only wish to compile gem5 to include a single ISA, you can replace ALL with the name of the ISA. Valid options include ARM, NULL, MIPS, POWER, SPARC, and X86 The complete list of options can be found in the build_opts directory.

See https://www.gem5.org/documentation/general_docs/building for more information on building gem5.

The Source Tree

The main source tree includes these subdirectories:

  • build_opts: pre-made default configurations for gem5
  • build_tools: tools used internally by gem5's build process.
  • configs: example simulation configuration scripts
  • ext: less-common external packages needed to build gem5
  • include: include files for use in other programs
  • site_scons: modular components of the build system
  • src: source code of the gem5 simulator. The C++ source, Python wrappers, and Python standard library are found in this directory.
  • system: source for some optional system software for simulated systems
  • tests: regression tests
  • util: useful utility programs and files

gem5 Resources

To run full-system simulations, you may need compiled system firmware, kernel binaries and one or more disk images, depending on gem5's configuration and what type of workload you're trying to run. Many of these resources can be obtained from https://resources.gem5.org.

More information on gem5 Resources can be found at https://www.gem5.org/documentation/general_docs/gem5_resources/.

Getting Help, Reporting bugs, and Requesting Features

We provide a variety of channels for users and developers to get help, report bugs, requests features, or engage in community discussions. Below are a few of the most common we recommend using.

Contributing to gem5

We hope you enjoy using gem5. When appropriate we advise charing your contributions to the project. https://www.gem5.org/contributing can help you get started. Additional information can be found in the CONTRIBUTING.md file.

Owner

  • Name: David Schall
  • Login: dhschall
  • Kind: user
  • Location: Edinburgh
  • Company: University of Edinburgh

GitHub Events

Total
  • Watch event: 13
  • Delete event: 15
  • Issue comment event: 2
  • Member event: 3
  • Push event: 165
  • Pull request review event: 2
  • Pull request review comment event: 3
  • Pull request event: 8
  • Fork event: 3
  • Create event: 25
Last Year
  • Watch event: 13
  • Delete event: 15
  • Issue comment event: 2
  • Member event: 3
  • Push event: 165
  • Pull request review event: 2
  • Pull request review comment event: 3
  • Pull request event: 8
  • Fork event: 3
  • Create event: 25

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 19,017
  • Total Committers: 393
  • Avg Commits per committer: 48.389
  • Development Distribution Score (DDS): 0.722
Past Year
  • Commits: 520
  • Committers: 58
  • Avg Commits per committer: 8.966
  • Development Distribution Score (DDS): 0.84
Top Committers
Name Email Commits
Gabe Black g****k@g****m 5,278
Nathan Binkert n****e@b****g 1,220
Ali Saidi A****i@a****m 1,036
Steve Reinhardt s****r@g****m 992
Giacomo Travaglini g****i@a****m 989
Andreas Hansson a****n@a****m 750
Bobby R. Bruce b****e@u****u 716
Andreas Sandberg A****g@a****m 691
Nilay Vaish ext:(%2C%20Timothy%20Jones%20%3Ctimothy.jones%40cl.cam.ac.uk%3E) n****y@c****u 542
Daniel Carvalho o****c@y****r 486
Korey Sewell k****l@u****u 409
Kevin Lim k****m@u****u 338
Ron Dreslinski r****n@u****u 271
Brad Beckmann b****n@a****m 261
Matthew Poremba m****a@a****m 253
Lisa Hsu L****u@a****m 243
Nikos Nikoleris n****s@a****m 223
Jason Lowe-Power j****n@l****m 183
Hoa Nguyen h****n@u****u 170
Tiago Mück t****k@a****m 127
Tony Gutierrez a****z@a****m 126
Erik Hallnor e****r@u****u 123
Kyle Roarty k****6@g****m 112
Curtis Dunham C****m@a****m 112
Brandon Potter b****r@a****m 112
Yu-hsin Wang y****w@g****m 105
Ciro Santilli c****i@a****m 104
Sandipan Das s****n@l****m 79
Andrew Schultz a****t@u****u 77
Mitch Hayenga m****a@a****m 74
and 363 more...

Issues and Pull Requests

Last synced: about 2 years ago

All Time
  • Total issues: 4
  • Total pull requests: 0
  • Average time to close issues: 15 days
  • Average time to close pull requests: N/A
  • Total issue authors: 4
  • Total pull request authors: 0
  • Average comments per issue: 1.25
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 4
  • Pull requests: 0
  • Average time to close issues: 15 days
  • Average time to close pull requests: N/A
  • Issue authors: 4
  • Pull request authors: 0
  • Average comments per issue: 1.25
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • gxflying (1)
  • Cypredar (1)
  • atrah22 (1)
  • NiJiazhe (1)
Pull Request Authors
  • shadowcpy (3)
  • cosmiclat05 (1)
  • Cypredar (1)
Top Labels
Issue Labels
bug (2)
Pull Request Labels

Dependencies

.github/workflows/ci-tests.yaml actions
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/setup-python v3 composite
  • actions/upload-artifact v3 composite
  • pre-commit/action v3.0.0 composite
.github/workflows/compiler-tests.yaml actions
  • actions/checkout v3 composite
.github/workflows/daily-tests.yaml actions
  • actions/checkout v2 composite
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/upload-artifact v3 composite
  • wei/wget v1 composite
.github/workflows/docker-build.yaml actions
  • actions/checkout v3 composite
.github/workflows/utils.yaml actions
  • actions/stale v8.0.0 composite
.github/workflows/weekly-tests.yaml actions
  • actions/checkout v3 composite
  • actions/download-artifact v3 composite
  • actions/upload-artifact v3 composite
util/dockerfiles/gcn-gpu/Dockerfile docker
  • ubuntu 20.04 build
util/dockerfiles/gem5-all-min-dependencies/Dockerfile docker
  • gcr.io/gem5-test/ubuntu-22.04_min-dependencies latest build
util/dockerfiles/gpu-fs/Dockerfile docker
  • ubuntu 20.04 build
util/dockerfiles/llvm-gnu-cross-compiler-riscv64/Dockerfile docker
  • stage1 latest build
  • ubuntu 20.04 build
util/dockerfiles/sst-11.1.0/Dockerfile docker
  • ubuntu 20.04 build
util/dockerfiles/systemc-2.3.3/Dockerfile docker
  • ubuntu 22.04 build
util/dockerfiles/ubuntu-18.04_all-dependencies/Dockerfile docker
  • ubuntu 18.04 build
util/dockerfiles/ubuntu-18.04_clang-version/Dockerfile docker
  • ubuntu 18.04 build
util/dockerfiles/ubuntu-18.04_gcc-version/Dockerfile docker
  • ubuntu 18.04 build
util/dockerfiles/ubuntu-20.04_all-dependencies/Dockerfile docker
  • ubuntu 20.04 build
util/dockerfiles/ubuntu-20.04_clang-version/Dockerfile docker
  • ubuntu 20.04 build
util/dockerfiles/ubuntu-20.04_gcc-version/Dockerfile docker
  • ubuntu 20.04 build
util/dockerfiles/ubuntu-22.04_all-dependencies/Dockerfile docker
  • ubuntu 22.04 build
util/dockerfiles/ubuntu-22.04_clang-version/Dockerfile docker
  • ubuntu 22.04 build
util/dockerfiles/ubuntu-22.04_gcc-version/Dockerfile docker
  • ubuntu 22.04 build
util/dockerfiles/ubuntu-22.04_min-dependencies/Dockerfile docker
  • ubuntu 22.04 build
ext/Kconfiglib/setup.py pypi
ext/ply/setup.py pypi
ext/pybind11/docs/requirements.txt pypi
  • breathe ==4.34.0
  • furo ==2022.6.21
  • sphinx ==5.0.2
  • sphinx-copybutton ==0.5.0
  • sphinxcontrib-moderncmakedomain ==3.21.4
  • sphinxcontrib-svg2pdfconverter ==1.2.0
ext/pybind11/pyproject.toml pypi
ext/pybind11/setup.py pypi
ext/pybind11/tests/requirements.txt pypi
  • build ==0.8.0 test
  • numpy ==1.21.5 test
  • numpy ==1.19.3 test
  • numpy ==1.22.2 test
  • pytest ==7.0.0 test
  • pytest-timeout * test
  • scipy ==1.5.4 test
  • scipy ==1.8.0 test
ext/pybind11/tools/pyproject.toml pypi
optional-requirements.txt pypi
  • tqdm ==4.64.1
pyproject.toml pypi
requirements.txt pypi
  • pre-commit ==2.20.0
util/gem5art/artifact/setup.py pypi
  • pymongo *
util/gem5art/run/setup.py pypi
  • gem5art-artifact *
util/gem5art/tasks/setup.py pypi
  • celery *
util/update_copyright/requirements.txt pypi
  • git-filter-repo ==2.28.0