Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
028bc4dd
Commit
028bc4dd
authored
1 year ago
by
Natalie Breidenbach
Browse files
Options
Downloads
Patches
Plain Diff
Update papi.md
parent
8599902b
No related branches found
No related tags found
2 merge requests
!938
Automated merge from preview to main
,
!936
Update to Five-Cluster-Operation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/software/papi.md
+11
-11
11 additions, 11 deletions
doc.zih.tu-dresden.de/docs/software/papi.md
with
11 additions
and
11 deletions
doc.zih.tu-dresden.de/docs/software/papi.md
+
11
−
11
View file @
028bc4dd
...
@@ -78,10 +78,10 @@ measurements, especially for MPI applications via environment variable `PAPI_OUT
...
@@ -78,10 +78,10 @@ measurements, especially for MPI applications via environment variable `PAPI_OUT
```bash
```bash
export PAPI_EVENTS="PAPI_TOT_INS,PAPI_TOT_CYC"
export PAPI_EVENTS="PAPI_TOT_INS,PAPI_TOT_CYC"
export PAPI_OUTPUT_DIRECTORY="/
scratch
/measurement"
export PAPI_OUTPUT_DIRECTORY="/
data/horse
/measurement"
```
```
This will generate a directory called
`papi_hl_output`
in
`
scratch
/measurement`
that contains one or
This will generate a directory called
`papi_hl_output`
in
`
/data/horse
/measurement`
that contains one or
more output files in JSON format.
more output files in JSON format.
### Low-Level API
### Low-Level API
...
@@ -104,15 +104,15 @@ multiple events, please check which events can be measured concurrently using th
...
@@ -104,15 +104,15 @@ multiple events, please check which events can be measured concurrently using th
The PAPI tools must be run on the compute node, using an interactive shell or job.
The PAPI tools must be run on the compute node, using an interactive shell or job.
!!! example "Example: Determine the events on the
partition
`romeo`
from a login node"
!!! example "Example: Determine the events on the
cluster
`romeo`
from a login node"
Let us assume, that you are in project
`p_number_crunch`
. Then, use the following commands:
Let us assume, that you are in project
`p_number_crunch`
. Then, use the following commands:
```console
```console
marie@login$ module load PAPI
marie@login
.romeo
$ module load PAPI
marie@login$ salloc --account=p_number_crunch
--partition=romeo
marie@login
.romeo
$ salloc --account=p_number_crunch
[...]
[...]
marie@
c
om
put
e$ srun papi_avail
marie@
r
ome
o
$ srun papi_avail
marie@
c
om
put
e$ srun papi_native_avail
marie@
r
ome
o
$ srun papi_native_avail
[...]
[...]
# Exit with Ctrl+D
# Exit with Ctrl+D
```
```
...
@@ -124,10 +124,10 @@ compile your application against the PAPI library.
...
@@ -124,10 +124,10 @@ compile your application against the PAPI library.
Assuming that you are in project
`p_number_crunch`
, use the following commands:
Assuming that you are in project
`p_number_crunch`
, use the following commands:
```console
```console
marie@login$ module load PAPI
marie@login
.romeo
$ module load PAPI
marie@login$ gcc app.c -o app -lpapi
marie@login
.romeo
$ gcc app.c -o app -lpapi
marie@login$ salloc --account=p_number_crunch
--partition=romeo
marie@login
.romeo
$ salloc --account=p_number_crunch
marie@
c
om
put
e$ srun ./app
marie@
r
ome
o
$ srun ./app
[...]
[...]
# Exit with Ctrl+D
# Exit with Ctrl+D
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment