Commit 6dcb3d25 authored by Pavel Jirásek's avatar Pavel Jirásek
Browse files

Merge branch 'remark' of gitlab.it4i.cz:it4i-admins/docs.it4i into remark

parents 5b908d15 5055d9e7
Pipeline #1939 passed with stages
in 1 minute and 19 seconds
......@@ -57,10 +57,9 @@ Compile the code:
Before debugging, you need to compile your code with theses flags:
!!! Note "Note"
**-g** : Generates extra debugging information usable by GDB. **-g3** includes even more debugging information. This option is available for GNU and INTEL C/C++ and Fortran compilers.
**-O0** : Suppress all optimizations.
!!! Note
- **-g** : Generates extra debugging information usable by GDB. **-g3** includes even more debugging information. This option is available for GNU and INTEL C/C++ and Fortran compilers.
- **-O0** : Suppress all optimizations.
## Starting a Job with TotalView
......@@ -92,7 +91,7 @@ To debug a serial code use:
To debug a parallel code compiled with **OpenMPI** you need to setup your TotalView environment:
!!! Note "Note"
!!! Note
**Please note:** To be able to run parallel debugging procedure from the command line without stopping the debugger in the mpiexec source code you have to add the following function to your **~/.tvdrc** file:
```bash
......@@ -121,7 +120,7 @@ The source code of this function can be also found in
/apps/mpi/openmpi/intel/1.6.5/etc/openmpi-totalview.tcl
```
!!! Note "Note"
!!! Note
You can also add only following line to you ~/.tvdrc file instead of the entire function:
**source /apps/mpi/openmpi/intel/1.6.5/etc/openmpi-totalview.tcl**
......
......@@ -55,7 +55,7 @@ Now, compile it with Intel compiler :
Now, lets run it with Valgrind. The syntax is :
_valgrind [valgrind options] <your program binary> [your program options]_
`valgrind [valgrind options] <your program binary> [your program options]`
If no Valgrind options are specified, Valgrind defaults to running Memcheck tool. Please refer to the Valgrind documentation for a full description of command line options.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment