gem5 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.

Livestream and discussion

You can find links to all of the livestreamed videos on YouTube.

Instead of using YouTube comments, we will be using Slack for our discussions. You can use the following invite link to enter the slack. Once you have joined, type /join-channel bootcamp-2022 in any text box (e.g., in a DM to yourself) to join the bootcamp channel.

gem5 Bootcamp Content

The Bootcamp event content, including archived videos of events, can be found here: https://gem5bootcamp.github.io/gem5-bootcamp-env/

Key Dates

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:

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

Session Topic Objectives
Monday Morning Welcome 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 Afternoon The 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 Morning Using 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 Afternoon Full 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 Morning Creating 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 Afternoon Adding 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 Morning Advanced 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 Afternoon The gem5 GPU Model [TBD]
  Group Social Event  
Friday Morning Writing 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 Afternoon gem5 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  

Information for attendees

Hosting

Those attendees being hosted on campus will be staying in Wall Hall. Please check your email for information on checking into your room on the day of arrival.

General Event Information

The Bootcamp will run Monday to Friday, 9AM to 4PM each day at UC Davis’s Putah Creek Lodge. Please see our map below highlighting the suggested walking route from Wall Hall to the Putah Creek lodge.

Meals

A continental breakfast (with coffee) will be served daily, at around 8:30AM, at Putah Creek Lodge.

Each day lunch will be served 12-noon and will conclude at 1PM. Lunch will consist of a selection of sandwiches and wraps. There will be no pork served and vegan options will be provided.

The session will continue for 3 more hours until 4PM. Coffee and snacks will be provided during this time.

Evening meals will be provided by Housing Services with food served from 5PM to 7PM each day at the campus dining halls. Please check your email for information about using Conference Housing Services Dining Commons.

Breakfast will be provided by Conference Housing Service Dining Commons on Saturday Morning, assuming you choose to stay Friday night.

Welcome Dinner

On Monday attendees will have a Welcome Dinner at Dunloe Brewing (1606 Olive Dr, Davis). The event will start at 5:30PM and attendees will head there straight after Monday’s Workshop session from Putah Creek Lodge. The event will conclude at 7:30PM.

Zim Cuisine will be catering this event.

Thursday Night Social Event

From 7PM to 10PM Thursday night a social event will be held for all Workshop attendees at the Memorial Union Games Area.

Food will not be provided at this event. Attendees should utilize Dining Commons services prior to attending.