title: “gem5 Boot Camp 2022” permalink: events/boot-camp-2022

We are happy to announce the first gem5 Boot Camp, to be held at UC Davis from July 11th to July 15th 2022. The purpose of the gem5 Boot Camp is for junior computer architecture researchers, particularly PhD. students, to learn how to use gem5 in their projects. The Boot Camp, held over 5 days, will take attendees through setting up basic system simulations, creating bespoke components, learning to interpret gem5 stats, and up to running and modifying simulations comparable to real-world systems.

This event is free for all accepted attendees. There is no cost for registration. Accommodation and meals will be provided, and travel grants will be available.

Important Note: Registration for this event is now closed.

Key Dates

  • Boot camp: July 11th to July 15th 2022
  • Application deadline: May 18th 2022 (Apply here)

When and where is the Boot Camp?

The Boot Camp will be held from July 11th to July 15th 2022 at UC Davis in Davis, California. Attendees will attend workshop sessions each day, typically from 9AM to 5PM. Accommodation will be sponsored by NSF from July 10th to July 16th (6 nights).

What should attendees expect?

There will be 5 full days of workshop activities centered around learning gem5. The workshop will start with the assumption of no prior experience using gem5 and aims to go give attendees a solid and broad foundation of knowledge of gem5 in carrying out computer architecture research.

The workshop will give attendees the opportunity to:

  • Learn how to create SimObjects.
  • Learn how to use the gem5 Standard Library to create simulations.
  • Get to grips with gem5art.
  • Understand the gem5 statistics module and how to use it in your experiments.
  • Create full system simulations capable of running real-world operating systems and software benchmarks.
  • Network with others in the computer architecture research community.

And much, much more!

Breakfast, lunch, and dinner will be provided, as well as afternoon snacks. Attendees will be hosted on campus with evening social events planned.

Who can apply?

Anyone can apply though, as spaces are limited, preference will be given to early career researchers (e.g., first or second year PhD and masters students planning on applying for a PhD). We especially encourage those from non-research universities, minority serving institutions, and universities without PhD programs to apply.

How can I apply?

Registration for this event this event is now closed.

Those wishing to attend can fill out the following Google Form by May 18th: https://forms.gle/3wWPsMDfXyaChmQ68

If your application was successful you will be contacted, via the email address provided, by June 1st.

What does it cost?

This event is sponsored by the NSF. There will be no cost to attend. Accommodation on the UC Davis campus, meals, and social events will be provided as part of the event.

We will be offering travel grants which can be applied for to cover transport expenses after the event.

Tentative schedule

SessionTopicObjectives
Monday MorningWelcome and Introduction
Building gem5- Learn about the gem5 dependencies
- Be introduced to SCons
- Understand the different gem5 binary types (opt, debug, fast)
Python basics- A recap of basic Python skills needed to use gem5
- Object-oriented programming reminder
- Run a simple python script in gem5
Using gem5 basics- Understand gem5 configuration scripts and its python interpreter
- Understand what the m5 and gem5 libraries are
- Get a general architecture outline of gem5
- Obtain and understand the stats output
- Understand the config.ini file
About simulation- Learn about common gem5 terminology: “host”, “guest”, etc.
- Learn about the difference between Full-System and Syscall emulation mode
Monday AfternoonThe gem5 standard library- Use the stdlib components to build a simulated system
- Use the stdlib resource class to automatically obtain gem5-resources to use in their experiment
- Create a gem5 resource custom resource
- Set workloads for a simulated system via the set_workload functions
- Create functions to run on specific exit events
- Create an stdlib component
Welcome dinner
Tuesday MorningUsing gem5 models- Use different gem5 CPU models (Timing Simple, Atomic, O3, Minor, Trace, etc.)
- Use classic caches in a simulation
- Use Ruby caches in a simulation (understand the different coherence protocols, how to compile them and how to create a cache hierarchy via a simple network)
Using gem5 to run things- Use traffic generators to test memory systems
- Incorporate the m5 utility into workloads
- Learn to use cross-compilers for non-host ISA workloads
- Learn how to output and parse stats
Tuesday AfternoonFull system simulation- Create a disk image for FS simulations
- Create and add and modify gem5 resources
- Learn how to use the m5 readfile interface
Accelerating Simulation- Create checkpoints
- Load from checkpoints
- Fastforward a simulation
- Employ sampling techniques
- Learn about KVM
Wednesday MorningCreating your own SimObjects- Understand how a request travels through the system
- Implement a SimObject
- Learn how to model real-world hardware timing
- Learn how to add SimStats and how it maps to real-world hardware
- Debug a gem5 SimObject
Wednesday AfternoonAdding your own instructions- Understand the details of the ISA sub-system
- Extend gem5 to simulate an unsupported instruction
- Understand the differences between modeling a user-mode and supervisor mode instruction
- Understand gem5 debug traces for a particular execution
Thursday MorningAdvanced topics in memory systems- Learn how to extend a packet with a new MemCmd
- Learn how to use Garnet (How to create different network topologies with specific characteristics; using the Garnet synthetic traffic; and understanding the output statistics)
- Create and extend cache coherence protocols (create a classic coherence protocol; design a Ruby coherence protocol)
Thursday AfternoonThe gem5 GPU Model[TBD]
Group Social Event
Friday MorningWriting tests and contributing to gem5- Write a GTest to test a piece of CPP code
- Write a PyUnit test to test a python function
- Use testlib to test a gem5 simulation condition
- Run Testlib/PyUnit/GUnit tests for gem5
- Understand gem5‘s quick/Kokoro, long/Nightly, very-long/Weekly test structure
- Understand gem5’s code-formatting guidelines
- Use git to add code to the repo
- Review patches on Gerrit
- Respond to feedback on Gerrit
Friday Afternoongem5 extensions and other simulators- Incorporate SST into a simulation
- Incorporate DRAMSim into a simulation
- Use SystemC in gem5 and gem5 in SystemC
Wrapping things up