Skip to content

Commit 1f36f9f

Browse files
committed
slides: Minor updates to getting started and stdlib
Signed-off-by: Jason Lowe-Power <[email protected]>
1 parent b80a7c8 commit 1f36f9f

File tree

3 files changed

+29
-11
lines changed

3 files changed

+29
-11
lines changed

materials/02-Using-gem5/01-stdlib/01-components.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
the gem5 simulator output.
99
1010
$ gem5-mesi 01-components.py
11-
Generate Time: 0.00462
12-
Build Time: 0.00141
13-
Graph has 1024 nodes and 10496 undirected edges for degree: 10
14-
...
15-
Average Time: 0.00009
1611
"""
1712

1813
from gem5.components.boards.simple_board import SimpleBoard

slides/01-Introduction/03-getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ This guarantees everyone is using the same environment and will make debugging e
9292
**AFTER** joining the classroom, you can go to the repository and click on the green "Code" button.
9393
Again, note that this is the repo where the slides are.
9494

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

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

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

127127
Both the slides and materials are broken down into sections and lessons.
128128
We use numbering to keep them in order.

slides/02-Using-gem5/01-stdlib.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ title: gem5's Standard Library
99

1010
## gem5's Standard Library
1111

12+
Using gem5's python interface
13+
14+
---
15+
16+
## Using gem5
17+
18+
### Remember: gem5's interface is *Python*.
19+
20+
Computer systems are complex. A declarative interface (e.g., `ini` or `json`) files, would be difficult to use.
21+
22+
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.
23+
24+
Python is well-suited for these kinds of "domain-specific languages."
25+
26+
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.
27+
1228
---
1329

1430
## Why a Standard Library?
@@ -267,6 +283,13 @@ simTicks 9093461436
267283

268284
## Exercise questions
269285

286+
<iframe src="https://app.sli.do/event/qpr43XWrbjYJCdE3GHGCWg/embed/polls/63d7ea52-2bb4-45a8-ae01-9aa3ecf044cd" width="800" height="150"></iframe>
287+
288+
<iframe src="https://app.sli.do/event/qpr43XWrbjYJCdE3GHGCWg/embed/polls/ae905f28-f1cd-475f-a758-a59be860157d" width="800" height="150"></iframe>
289+
290+
<iframe src="https://app.sli.do/event/qpr43XWrbjYJCdE3GHGCWg/embed/polls/fe32093c-1c7a-4008-95d3-1010caa51057" width="800" height="150"></iframe>
291+
292+
<!--
270293
### What is the average IPC?
271294
272295
See the `ipc` in the stats.txt file.
@@ -277,11 +300,11 @@ See the `ipc` in the stats.txt file.
277300
See the `simSeconds` in the stats.txt file.
278301
**Answer**: 0.009093s
279302
280-
### What is the output of the simulated program?
303+
### What is first line of the output of the simulated program?
281304
282305
See the standard output of the program.
283306
**Answer**: "Generate Time: 0.00462"... etc.
284-
307+
-->
285308
---
286309

287310
<!-- _class: two-col -->

0 commit comments

Comments
 (0)