Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -57,10 +57,9 @@ Compile the code: ...@@ -57,10 +57,9 @@ Compile the code:
Before debugging, you need to compile your code with theses flags: Before debugging, you need to compile your code with theses flags:
!!! Note "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. - **-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.
**-O0** : Suppress all optimizations.
## Starting a Job with TotalView ## Starting a Job with TotalView
...@@ -92,7 +91,7 @@ To debug a serial code use: ...@@ -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: 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: **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 ```bash
...@@ -121,7 +120,7 @@ The source code of this function can be also found in ...@@ -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 /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: 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** **source /apps/mpi/openmpi/intel/1.6.5/etc/openmpi-totalview.tcl**
......
...@@ -55,7 +55,7 @@ Now, compile it with Intel compiler : ...@@ -55,7 +55,7 @@ Now, compile it with Intel compiler :
Now, lets run it with Valgrind. The syntax is : Now, lets run it with Valgrind. The syntax is :
_valgrind [valgrind options] &lt;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. 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment