Skip to content

How to profile Kratos using MAQAO

Michael Andre edited this page Mar 2, 2017 · 5 revisions

Overview

MAQAO is a lightweight, non-intrusive tool which is useful for analyzing the quality of binary code and identifying hotspots. It is available at www.maqao.org. MAQAO can be used for any build type, but it provides more detailed information when debugging symbols are available.

Identifying Hotspots

Profiling a Kratos Simulation

Set up a problem to analyze in Kratos and run

maqao lprof -ldi=on xp=lprof_output -- /usr/bin/python3 MainKratos.py

to profile the Kratos simulation and save the results in the local directory lprof_output.

For MPI run

mpirun -np 4 maqao lprof -ldi=on xp=lprof_output -- /usr/bin/python3 MainKratos.py

Analyzing Results

To print a summary of results in the terminal run

maqao lprof -df xp=lprof_output

To generate html files run

maqao lprof -df xp=lprof_output of=html

Project information

Getting Started

Tutorials

Developers

Kratos structure

Conventions

Solvers

Debugging, profiling and testing

HOW TOs

Utilities

Kratos API

Kratos Structural Mechanics API

Clone this wiki locally