From c9469e110444e7c4885c12b685df4c2122a9c096 Mon Sep 17 00:00:00 2001 From: Jan Frenzel <jan.frenzel@tu-dresden.de> Date: Thu, 24 Feb 2022 16:16:42 +0100 Subject: [PATCH] Corrected code snippets in papi.md (e.g. prompts, long salloc arguments) --- doc.zih.tu-dresden.de/docs/software/papi.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/doc.zih.tu-dresden.de/docs/software/papi.md b/doc.zih.tu-dresden.de/docs/software/papi.md index 2de80b4e8..7460e3dee 100644 --- a/doc.zih.tu-dresden.de/docs/software/papi.md +++ b/doc.zih.tu-dresden.de/docs/software/papi.md @@ -105,13 +105,14 @@ 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. !!! example "Example: Determine the events on the partition `romeo` from a login node" + Let us assume, that you are in project `p_marie`. Then, use the following commands: ```console marie@login$ module load PAPI - marie@login$ salloc -A <project> --partition=romeo + marie@login$ salloc --account=p_marie --partition=romeo [...] - marie@login$ srun papi_avail - marie@login$ srun papi_native_avail + marie@compute$ srun papi_avail + marie@compute$ srun papi_native_avail [...] # Exit with Ctrl+D ``` @@ -120,12 +121,13 @@ Instrument your application with either the high-level or low-level API. Load th compile your application against the PAPI library. !!! example + Assuming that you are in project `p_marie`, use the following commands: ```console marie@login$ module load PAPI marie@login$ gcc app.c -o app -lpapi - marie@login$ salloc -A <project> --partition=romeo - marie@login$ srun ./app + marie@login$ salloc --account=p_marie --partition=romeo + marie@compute$ srun ./app [...] # Exit with Ctrl+D ``` -- GitLab