Skip to content

Commit

Permalink
add mpitrace output python parser (#81)
Browse files Browse the repository at this point in the history
* add mpitrace python parser

Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch authored Nov 25, 2023
1 parent 11e6f57 commit 64865cf
Show file tree
Hide file tree
Showing 11 changed files with 1,363 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/addons/mpitrace-lammps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ VERSION=v0.2.0
kubectl apply --server-side -f https://github.com/kubernetes-sigs/jobset/releases/download/$VERSION/manifests.yaml
```

Install the operator (from the development manifest here):
Install the operator (from the development manifest here) or the production release:

```bash
kubectl apply -f ../../dist/metrics-operator-dev.yaml
kubectl apply -f https://raw.githubusercontent.com/converged-computing/metrics-operator/main/examples/dist/metrics-operator.yaml
```

How to see metrics operator logs:
Expand Down
20 changes: 20 additions & 0 deletions examples/python/addon-mpitrace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Addon MPITrace

MPI Trace can be added to an app and then used to generate files to parse with the library here.
This addon is a bit different in that it doesn't expect output in logs, but rather provided on the local
system (saved via kubectl or via the [ORAS Operator](https://github.com/converged-computing/oras-operator)).
For this example, you should first run the example in the [addon-mpitrace](../../addons/mpitrace-lammps) directory
and generate the output files:

```bash
ls ../../addons/mpitrace-lammps/mpi_profile.114.* -l
-rw-rw-r-- 1 vanessa vanessa 5636 Oct 22 18:52 ../../addons/mpitrace-lammps/mpi_profile.114.0
-rw-rw-r-- 1 vanessa vanessa 4684 Oct 22 18:52 ../../addons/mpitrace-lammps/mpi_profile.114.1
-rw-rw-r-- 1 vanessa vanessa 4623 Oct 22 18:52 ../../addons/mpitrace-lammps/mpi_profile.114.2
```

Then run the script, and target the files:

```bash
$ python parse-metric.py ../../addons/mpitrace-lammps/ --prefix mpi_profile
```
Loading

0 comments on commit 64865cf

Please sign in to comment.