opari2(1)
π opari2 β bestie's guide to the OpenMP instrumentor π
okay so real quick, the header situation: this page lives in the General Commands Manual, and it's the manual page for opari2(1). but the tool itself is called opari, and she is β¨ iconic β¨. buckle up, we're instrumenting. π
πΈ NAME πΈ
opari β a source to source OpenMP program instrumentor. she takes your code and adds the little measurement sparkles. periodt.
π¦ SYNOPSIS π¦
opari
[-f70|-f90|-c|-c++]
[-disable <construct>[,<construct>]...]
[-rcfile file] [-table <tabfile>] <infile> [<outfile>]
opari
[-rcfile <file>] -table <tabfile>
like, that's the whole vibe. two whole modes. π
β¨ DESCRIPTION β¨
so before you go compiling the source files of an OpenMP application, every single file needs to be transformed by a call to the OPARI tool. no skipping, bestie, this is not optional. π«Ά
and then β and then β the application has to be linked against the pomp runtime measurement library and the OPARI runtime table file. that table file? you don't just find it lying around. it has to be generated by using the -table option to OPARI, and you have two routes:
- together with the transformation of the last input source file, or
- with a separate call to OPARI after all the transformations are done.
if the output file name is not specified, OPARI uses the name infile.mod.suffix when the input file is called infile.suffix. yes, she names it herself. main character energy. π
π OPTIONS π
-f70,-f90,-c,-c++β [OPTIONAL] tells OPARI what programming language your input source file is written in. lowkey only needed if the automatic language detection based on the input file suffix fails on you. π-rcfile <file>β [OPTIONAL] by default OPARI uses the file./opari.rcto preserve state information between calls to OPARI, which matters when your OpenMP application consists of more than one source file. with the-rcfileoption, the file file is used instead. this is super useful if more than one application is stored in the same directory, or if the source files of an application are stored in more than one directory. π-table <tabfile>β generate the OPARI runtime table in file tabfile. this option has to be used either together with the call to OPARI for the transformation of the last input source file, or with a separate call to OPARI after all transformations are done. no other options, bestie, those are the rules. π₯-disable <construct>β [OPTIONAL] disable the instrumentation of the more fine-grained OpenMP constructs, such as!$OMP ATOMIC. constructs is a comma separated list of the constructs for which the instrumentation should be disabled. accepted tokens areatomic,critical,master,flush,single, orlocks, as well assyncto disable all of them. so much power in one little flag. π
π SEE ALSO π
/usr/share/doc/opari/Readme.html
π AUTHOR π
opari was written by Bernd Mohr. β¨
this manual page was adapted from Readme.html by Samuel Thibault <sthibault@debian.org>, for the Debian project (and may be used by others). π«Ά
okay final vibe check, bestie: this page is from May 20, it's the opari2(1) manual, and that's a wrap. go forth and instrument. πΈπ¦π
π¦ where this page comes from
- debian bookworm: opari2 2.0.7-2 Β· misc
- debian trixie: opari2 2.0.9-1 Β· misc
- ubuntu jammy: opari2 2.0.6-2 Β· misc
- ubuntu noble: opari2 2.0.7-2 Β· misc
- ubuntu questing: opari2 2.0.9-1
- ubuntu resolute: opari2 2.0.9-1build1 Β· misc
- ubuntu stonking: opari2 2.0.9-2 Β· misc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms