Skip to content
Snippets Groups Projects
software_development_overview.md 1.84 KiB
Newer Older
Martin Schroschk's avatar
Martin Schroschk committed
# Software Development and Tools
Matthias Lieber's avatar
Matthias Lieber committed
This section provides you with the basic knowledge and tools for software development
on the ZIH systems.
It will tell you:

- How to compile your code
Matthias Lieber's avatar
Matthias Lieber committed
    - [General advises for building software](building_software.md)
    - [Using compilers](compilers.md)
    - [GPU programming](gpu_programming.md)
- How to use libraries
    - [Using mathematical libraries](libraries.md)
- How to deal with (or even prevent) bugs
    - [Find caveats and hidden errors in MPI application codes](mpi_usage_error_detection.md)
Martin Schroschk's avatar
Martin Schroschk committed
    - [Using debuggers](debuggers.md)
Matthias Lieber's avatar
Matthias Lieber committed
- How to investigate the performance and efficiency of your code
    - [Pika: monitoring of batch jobs](pika.md)
    - [Perf: sampling-based performance analysis](perf_tools.md)
    - [Score-P: event tracing of HPC applications](scorep.md)
    - [Vampir: trace visualization](vampir.md)

Some hints that are helpful:

- Stick to standards wherever possible, e.g. use the `-std` flag
  for GNU and Intel C/C++ compilers. Computers are short living
  creatures, migrating between platforms can be painful. In addition,
  running your code on different platforms greatly increases the
  reliably. You will find many bugs on one platform that never will be
  revealed on another.
- Before and during performance tuning: Make sure that your code
  delivers the correct results.

Some questions you should ask yourself:

- Given that a code is parallel, are the results independent from the
  numbers of threads or processes?
- Have you ever run your Fortran code with array bound and subroutine
Matthias Lieber's avatar
Matthias Lieber committed
  argument checking (the `-check all` and `-traceback` flags
  for the Intel compilers)?
- Have you checked that your code is not causing floating point
  exceptions?
- Does your code work with a different link order of objects?
- Have you made any assumptions regarding storage of data objects in
  memory?