Skip to content

Commit

Permalink
slides: Minor updates to getting started and stdlib
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lowe-Power <[email protected]>
  • Loading branch information
powerjg committed Oct 31, 2024
1 parent b80a7c8 commit 1f36f9f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 11 deletions.
5 changes: 0 additions & 5 deletions materials/02-Using-gem5/01-stdlib/01-components.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@
the gem5 simulator output.
$ gem5-mesi 01-components.py
Generate Time: 0.00462
Build Time: 0.00141
Graph has 1024 nodes and 10496 undirected edges for degree: 10
...
Average Time: 0.00009
"""

from gem5.components.boards.simple_board import SimpleBoard
Expand Down
8 changes: 4 additions & 4 deletions slides/01-Introduction/03-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ This guarantees everyone is using the same environment and will make debugging e
**AFTER** joining the classroom, you can go to the repository and click on the green "Code" button.
Again, note that this is the repo where the slides are.

<https://github.com/gem5bootcamp/2024/>
<https://github.com/gem5bootcamp/latin-america-2024/>

![Screenshot of starting a codespace](03-getting-started-imgs/codespaces-screenshot-1.drawio.png)

Expand All @@ -119,10 +119,10 @@ You can also open it in your local VS Code if you install the Codespaces extensi
- Markdown version of these slides. Used to build the website/slides.
- You can also preview the slides in VS Code.
- **`materials/`**
- Python scripts and other materials for the tutorial.
- Most of the live coding examples will be here.
- Python scripts and other materials for the class examples.
- Completed examples are in the `completed` directories.
- A few other things for the website, automatic building, VS Code configurations, etc.
- **`homework/`**
- Homework assignments

Both the slides and materials are broken down into sections and lessons.
We use numbering to keep them in order.
Expand Down
27 changes: 25 additions & 2 deletions slides/02-Using-gem5/01-stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ title: gem5's Standard Library

## gem5's Standard Library

Using gem5's python interface

---

## Using gem5

### Remember: gem5's interface is *Python*.

Computer systems are complex. A declarative interface (e.g., `ini` or `json`) files, would be difficult to use.

Assuming we want to write *code* to describe the system we are going to simulate, we don't want to have to write down every single detail every time.

Python is well-suited for these kinds of "domain-specific languages."

You can think of gem5 similar to [TensorFlow](https://www.tensorflow.org/) or [PyTorch](https://pytorch.org/). It's a *framework* or *language* for describing and simulating computer systems.

---

## Why a Standard Library?
Expand Down Expand Up @@ -267,6 +283,13 @@ simTicks 9093461436

## Exercise questions

<iframe src="https://app.sli.do/event/qpr43XWrbjYJCdE3GHGCWg/embed/polls/63d7ea52-2bb4-45a8-ae01-9aa3ecf044cd" width="800" height="150"></iframe>

<iframe src="https://app.sli.do/event/qpr43XWrbjYJCdE3GHGCWg/embed/polls/ae905f28-f1cd-475f-a758-a59be860157d" width="800" height="150"></iframe>

<iframe src="https://app.sli.do/event/qpr43XWrbjYJCdE3GHGCWg/embed/polls/fe32093c-1c7a-4008-95d3-1010caa51057" width="800" height="150"></iframe>

<!--
### What is the average IPC?
See the `ipc` in the stats.txt file.
Expand All @@ -277,11 +300,11 @@ See the `ipc` in the stats.txt file.
See the `simSeconds` in the stats.txt file.
**Answer**: 0.009093s
### What is the output of the simulated program?
### What is first line of the output of the simulated program?
See the standard output of the program.
**Answer**: "Generate Time: 0.00462"... etc.

-->
---

<!-- _class: two-col -->
Expand Down

0 comments on commit 1f36f9f

Please sign in to comment.