An open API service indexing awesome lists of open source software.

https://github.com/cwsmith/parsekokkosmemevents

generate memory usage plots from kokkos-tools MemoryEvents output
https://github.com/cwsmith/parsekokkosmemevents

kokkos

Last synced: 3 months ago
JSON representation

generate memory usage plots from kokkos-tools MemoryEvents output

Awesome Lists containing this project

README

          

# parseKokkosMemEvents

The following code parses output from [kokkos-tools MemoryEvents](https://github.com/kokkos/kokkos-tools/wiki/MemoryEvents) to create an area plot (example below) that is grouped by the highest consuming 'regions' (defined by the Kokkos Profiling APIs `pushRegion(...)` and `popRegion(...)`).

Portions of the code are specific to the [pumipic](https://github.com/SCOREC/pumi-pic), its dependencies, and the profiling regions it defines.

![example of memory usage plot](h36n13-47550.peakTrace.png)

## dependencies

python3 with `pyparsing`, `pandas`, and `matplotlib`

## run

`python ./memEventParse.py /path/to/h##n##-####.mem_events #MemoryRegionsToReport /path/to/plot.png`