Skip to content

Commit

Permalink
Use message exchange for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
trossi committed Jun 3, 2024
1 parent c1c40b4 commit ca7612a
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions mpi/debugging/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,32 +51,39 @@ ddt srun ./buggy.exe
Note: you can also skip the desktop session step and run DDT using X11 forwarding (might be slow).


## Examples
## Demos

These example codes can be built with `make all`.

### Message exchange revisited
### Buggy message exchange

Debug the [exchange.cpp](exchange.cpp) code similar to
[the earlier exercise](../message-exchange/).
[the earlier exercise](../message-exchange/):
```bash
...
CC -g exchange.cpp -o exchange.exe
ddt srun ./exchange.exe
```

The following will be demoed with DDT:
* Launching DDT
* Examining per-process status
* Stepping execution
* Setting breakpoints
* Setting build configuration
* Fixing the code within DDT

### Collective operations revisited
## Bonus exercises

Debug the [collective.cpp](collective.cpp) code similar to
[the earlier exercise](../collectives/).
### Buggy collective operations

The following will be demoed with DDT:
* Setting breakpoints
* Stepping execution
* Using distributed array view
Debug the [collective.cpp](collective.cpp) code similar to
[the earlier exercise](../collectives/):
```bash
...
CC -g collective.cpp -o collective.exe
ddt srun ./collective.exe
```

#### Bonus 1
### Memory debugging with sanitizer

Memory debugging with sanitizer. On LUMI:
```bash
Expand All @@ -86,7 +93,7 @@ srun -A project_465000536 --nodes=1 --ntasks-per-node=4 --time=00:05:00 --partit

Note the `--label` option that prepends task number to lines of stdout/err.

#### Bonus 2
### Memory debugging with valgrind4hpc

Memory debugging with valgrind4hpc. On LUMI:

Expand Down

0 comments on commit ca7612a

Please sign in to comment.