User Specified Weighting for PGO .dyn Files Now Available

Submit New Article

February 17, 2010 11:00 PM PST


The profmerge utility now has an option to provide customized weightings for .dyn files from different -prof-gen instrumented runs.  The weightings are specified via a file you provide.  You can have profmerge create a template file for you if you wish by running:

profmerge -gen_weight_spec <filename>

Note that this will only work when you have .dyn files to merge.

A completed file will look something like the following:

./49010fb5_15333.dyn = 0.09 ./49010fb6_15334.dyn = 0.38 ./49010fb7_15335.dyn = 0.53
The numbers on the right reflect the relative weighting that will be applied to each .dyn file (which is the data collected from one instrumented application run).  Note that the numbers on the right sum to 1.00.  If they did not, profmerge would normalize the numbers so that they total 1.0 and then proceed with the weighting.

You can also provide directories containing multiple .dyn files:

./49010fb5_15333.dyn = 0.09 ./49010fb6_15334.dyn = 0.26 ./49010fb7_15335.dyn = 0.40 ./more-files = 0.25

To use these files, use the -weight_spec <filename> option with profmerge.  For example:

[]$ profmerge -weight_spec weightings.txt . more-files/ profmerge: looking at dynamic file: more-files/a.dyn profmerge: looking at dynamic file: more-files/b.dyn profmerge: looking at dynamic file: more-files/c.dyn profmerge: looking at dynamic file: 49010fb7_15335.dyn profmerge: looking at dynamic file: 49010fb6_15334.dyn profmerge: looking at dynamic file: 49010fb5_15333.dyn


Do you need more help?


This article applies to: Intel® C++ Compiler for Linux* Knowledge Base,   Intel® C++ Compiler for Mac OS X* Knowledge Base,   Intel® C++ Compiler for Windows* Knowledge Base,   Intel® Fortran Compiler for Linux* Knowledge Base,   Intel® Fortran Compiler for Mac OS X* Knowledge Base,   Intel® Visual Fortran Compiler for Windows* Knowledge Base