@@ -56,6 +56,10 @@ Now, let us run it with Valgrind:
...
@@ -56,6 +56,10 @@ Now, let us run it with Valgrind:
`valgrind [valgrind options] <your program binary> [your program options]`
`valgrind [valgrind options] <your program binary> [your program options]`
```console
$ml Valgrind/3.16.1-intel-2020b
```
If no Valgrind options are specified, Valgrind defaults to running the Memcheck tool. For the full description of command line options, refer to the Valgrind documentation.
If no Valgrind options are specified, Valgrind defaults to running the Memcheck tool. For the full description of command line options, refer to the Valgrind documentation.
```console
```console
...
@@ -155,10 +159,7 @@ The default version without MPI support will however report a large number of fa
...
@@ -155,10 +159,7 @@ The default version without MPI support will however report a large number of fa
==30166== by 0x4008BD: main (valgrind-example-mpi.c:18)
==30166== by 0x4008BD: main (valgrind-example-mpi.c:18)
```
```
So it is better to use the MPI-enabled Valgrind from the module. The MPI version requires the library:
So it is better to use the MPI-enabled Valgrind from the module. The MPI version requires the library `$EBROOTVALGRIND/lib/valgrind/libmpiwrap-amd64-linux.so`