Skip to content
Snippets Groups Projects
Commit 028bc4dd authored by Natalie Breidenbach's avatar Natalie Breidenbach
Browse files

Update papi.md

parent 8599902b
No related branches found
No related tags found
2 merge requests!938Automated merge from preview to main,!936Update to Five-Cluster-Operation
...@@ -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@compute$ srun papi_avail marie@romeo$ srun papi_avail
marie@compute$ srun papi_native_avail marie@romeo$ 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@compute$ srun ./app marie@romeo$ srun ./app
[...] [...]
# Exit with Ctrl+D # Exit with Ctrl+D
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment