6. Use of PAPI

Here describes about the use of PAPI.

6.1. Overview

This section shows how to compile and link the program and notes, using PAPI(Performance Application Programming Interface), on Supercomputer Fugaku.

Please refer to https://icl.utk.edu/papi/ for more information about PAPI.

6.3. How to execute

This indicates the program execution example of using PAPI.

[Execution example]

#!/bin/bash -x
#
#PJM -L "node=12"
#PJM -L "elapse=00:10:00"
#PJM --mpi "proc=16"
#PJM -x PJM_LLIO_GFSCACHE=/vol000N
#PJM -g groupname
#PJM -s
#

export OMP_NUM_THREADS=12

xospastop      #Required
mpiexec ./papi.out

Attention

  • For the program used PAPI, please proceed once executed xospastop command. if not proceeded xospastop command, an error may occur during PAPI processing.

  • Also the job proceeded xospastop command, stops collection of PMU counter (Performance Monitoring Unit Counter). There is no option or message output, and the exit status is always 0.

6.4. Notes

Please note the following points about programs using PAPI.

  • PAPI is not supported

  • If you do not run xospastop, you will not get the correct results.