Skip to content

Commit

Permalink
Update demo notebooks (cubed-dev#525)
Browse files Browse the repository at this point in the history
* Update demo.ipynb

* Add a note about stats.csv to look at actual memory usage to the examples

* Remove very old example notebooks since they are out of date
  • Loading branch information
tomwhite authored Jul 30, 2024
1 parent debb1d8 commit 88c5dc4
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 1,604 deletions.
9 changes: 8 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,20 @@ python matmul-random.py

These will take longer to run as they operate on more data.

The last two examples use `TimelineVisualizationCallback` which produce a plot showing the timeline of events in the task lifecycle.
The last two examples use `TimelineVisualizationCallback` which produce a plot showing the timeline of events in the task lifecycle, and `HistoryCallback` to produce stats about memory usage.
The plots are SVG files and are written in the `history` directory in a directory with a timestamp. Open the latest one with

```shell
open $(ls -d history/compute-* | tail -1)/timeline.svg
```

The memory usage stats are in a CSV file which you can view with


```shell
open $(ls -d history/compute-* | tail -1)/stats.csv
```

## Running the notebook examples

Before running these notebook examples, you will need to install some additional dependencies (besides Cubed).
Expand Down
Loading

0 comments on commit 88c5dc4

Please sign in to comment.