Skip to content
Snippets Groups Projects
Commit 62ce55dc authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Update score-p.md

parent 938bca97
Branches
No related tags found
4 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section
...@@ -23,7 +23,7 @@ There are three ways to instrument your parallel applications in order to enable ...@@ -23,7 +23,7 @@ There are three ways to instrument your parallel applications in order to enable
### Automated Instrumentation ### Automated Instrumentation
is the easiest method. Score-P will automatically add instrumentation to every routine entry and exit using compiler hooks, and will intercept MPI calls and OpenMP regions. This method might, however, produce a large number of data. If you want to focus on profiler a specific regions of your code, consider using the manual instrumentation methods. To use automated instrumentation, simply prepend scorep to your compilation command. For example, replace: This the easiest method. Score-P will automatically add instrumentation to every routine entry and exit using compiler hooks, and will intercept MPI calls and OpenMP regions. However, this method might produce a large number of data. If you want to focus on profiling a specific regions of your code, consider using the manual instrumentation methods. To use automated instrumentation, simply prepend scorep to your compilation command. For example, replace:
```console ```console
$ mpif90 -c foo.f90 $ mpif90 -c foo.f90
...@@ -39,7 +39,7 @@ $ scorep mpif90 -c bar.f90 ...@@ -39,7 +39,7 @@ $ scorep mpif90 -c bar.f90
$ scorep mpif90 -o myapp foo.o bar.o $ scorep mpif90 -o myapp foo.o bar.o
``` ```
Usually your program is compiled using a Makefile or similar script, so it advisable to add the scorep command to your definition of variables CC, CXX, FCC etc. Usually your program is compiled using a Makefile or similar script, so it is advisable to add the scorep command to your definition of variables CC, CXX, FCC, etc.
It is important that scorep is prepended also to the linking command, in order to link with Score-P instrumentation libraries. It is important that scorep is prepended also to the linking command, in order to link with Score-P instrumentation libraries.
...@@ -114,7 +114,7 @@ subroutine foo(...) ...@@ -114,7 +114,7 @@ subroutine foo(...)
end subroutine foo end subroutine foo
``` ```
The directives are ignored if the program is compiled without Score-P. Again, refer to the [documentation][c] for a more elaborate description. The directives are ignored if the program is compiled without Score-P. For details, refer to the [documentation][c].
[1]: scalasca.md [1]: scalasca.md
[2]: ../../modules-matrix.md [2]: ../../modules-matrix.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment