square - Man Page

Scalasca analysis report explorer


square [Options] (EXPERIMENT_DIR | CUBE_FILE)


square, the Scalasca analysis report explorer, facilitates post-processing, scoring, and interactive examination of analysis reports from both runtime summarization and tracing experiments.

When provided with a Score-P experiment directory EXPERIMENT_DIR, square post-processes intermediate analysis reports produced by a measurement and/or an automatic trace analysis to derive additional metrics and construct a hierarchy of measured and derived metrics, and then presents this final report using the Cube GUI (unless the -s option is used). If intermediate reports were already processed, the final report is shown immediately. If there is more than one analysis report in a Score-P experiment directory, the most comprehensive report is shown by default.

When provided with the name of a specific analysis report CUBE_FILE, post-processing is skipped and the corresponding report is shown immediately.

Analysis report examination can only be done after measurement and analysis are completed. Parallel resources are not required, and it is often more convenient to examine analysis reports on a different system, such as a desktop computer where interactivity is superior.

Depending on the measurement configuration and the provided options, square places additional files into the experiment archive directory. For single-run experiments, the following files are created if the corresponding input files are available:

In scoring mode (-s option), square generates:

In multi-run mode, aggregated reports are created if the corresponding input files are available:


Common options


Level of sanity checks for newly created reports (default: 'none'). 'quick' performs various sanity checks on the experiment meta data, while 'full' also executes a more time-consuming check for negative metric values (which usually indicate a serious error).


Force post-processing of analysis reports, even if a post-processed report already exists.

-f filter_file

Apply the specified filter file when generating a score report.


Output a textual score report. Skips launching the Cube GUI.


Enable verbose mode.


Suppress the calculation of 'Idle Threads' metric.  

Options for multi-run experiments


Set aggregation mode for runtime summarization results of each configuration. Currently supported modes are 'mean' and 'merge' (default).


Set aggregation mode for trace analysis results of each configuration. Currently supported modes are 'mean' and 'merge' (default).


Force post-processing of every individual step report of a multi-run experiment.
WARNING: Depending on the number and size of the individual measurement reports, the time required to post-process all reports can be significant!  

Multi-Run Experiments

For multi-run experiments, square provides additional options to aggregate the set of measurement results into a single Cube file. The user can choose between the two aggregation methods 'merge' and 'mean' to combine results from different configurations, which underneath use the corresponding CubeLib command-line tools. The default aggregation mode is to 'merge' results.


The 'merge' operation always copies metric data from the last measurement configuration in a given set in which data for a particular metric is available. This should be taken into account when setting up a multi-run experiment that is supposed to be aggregated using the square command later on. In particular, it is recommended to include a low-overhead measurement without hardware performance counters at the end of a measurement configuration set including hardware counter measurements in order to provide more accurate time information.

The aggregation of multi-run measurement results happens in the following order:

  1. Aggregate results from multiple runs for each measurement configuration. At this point, the only supported mode for this aggregation is 'mean', which is therefore hard-coded.
  2. Aggregate averaged runtime summarization results from all configurations in ascending order using the selected mode (-S option).
  3. Aggregate averaged trace analysis analysis results from all configurations in ascending order using the selected mode (-T option).
  4. Merge the aggregated runtime summarization and trace analysis results into a combined report.
  5. Post-process the combined report (step 4) if available, otherwise post-process the aggregated report(s) generated in either step 2 or step 3.

Depending on the measurement settings, those steps will be applied if the respective intermediate results are found. The reports of the individual runs will only be post-processed when explicitly requested (-A option).

Exit Status

square exits with status 0 on success, and greater than 0 if errors occur.


To examine an analysis report on a different system, for example, a desktop or laptop computer, it is often best to post-process the report using square's scoring functionality (-s option) on the system where the measurement has been taken, and then copy over the resulting post-processed Cube file. This is because square requires various command-line tools and support files from the Score-P, CubeLib, and Scalasca Trace Tools packages, which may not be available on the target computer.


Please report bugs to scalasca@fz-juelich.de. Make sure to include at least the following information in your bug report:


square scorep_foo_4_trace
Post-process measurement reports in scorep_foo_4_trace and display the most comprehensive report using the Cube GUI.

square -s -f filter scorep_foo_4_sum
Post-process measurement reports in scorep_foo_4_sum and generate a score report with the run-time measurement filter rules from the file filter applied.

square -S mean scorep_foo_4_multi-run_c2_r4
Aggregate and post-process the measurement results of the multi-run experiment with two configurations and four runs per configuration stored in scorep_foo_4_multi-run_c2_r4. Then, show the most comprehensive report using the Cube GUI.

See Also

scalasca(1), scan(1)

The full Scalasca Trace Tools documentation is available online at https://www.scalasca.org.

Referenced By

scalasca(1), scout(1).

Fri Mar 22 2019 Version 2.5 Scalasca Trace Tools