Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Caesar
Beginner
79 Views

VTune API?

Hello there!

I am wondering whether current versions of VTune have a programming API such as the ones mentioned in these articles:

https://software.intel.com/en-us/articles/use-vtuneapi-in-intel-parallel-amplifier-for-selective-cod...
http://web.cse.ohio-state.edu/~henretty/etc/vtune-tutorial.pdf
https://software.intel.com/en-us/articles/how-to-call-resume-and-pause-api-from-fortran-code/

I searched in the documentation of the current version but could not find anything.

What I currently want to do is to assign name to threads or to periods of execution, is that possible with VTune?

 

0 Kudos
7 Replies
Peter_W_Intel
Employee
79 Views

(VTune(TM) Performance Analyzer is too old to end of life, APIs from VTune Amplifier XE 2011 probably don't work. You can reference 2013 version, most of things still work) 

You can refer to this article, Pause/Resume API were tested for MPI program in 2013 version - APIs should work in 2015, same framework for general C/C++ program.

Your another request, please refer to this article.

Caesar
Beginner
79 Views

 Hello Peter, 

thanks for the answer. That is exactly what I was looking for!

Caesar
Beginner
79 Views

Hi Peter,

with which library should I link the program? Actually I am profiling a shared library, so, how which "ittnotify" library should I link with my ".so"?

These are the options in my system:

/opt/intel/vtune_amplifier_xe_2015.3.0.403110/bin64/k1om/libittnotify.a
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/bin64/k1om/runtime/libittnotify_collector.so
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/include/libittnotify.h
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/lib32/libittnotify.a
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/lib32/runtime/libittnotify_collector.so
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/lib64/libittnotify.a
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/lib64/runtime/libittnotify_collector.so
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/target/linux32/include/libittnotify.h
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/target/linux32/lib32/runtime/libittnotify_collector.so
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/target/linux64/include/libittnotify.h
/opt/intel/vtune_amplifier_xe_2015.3.0.403110/target/linux64/lib64/runtime/libittnotify_collector.so

 

Thanks!

Caesar
Beginner
79 Views

Ok, I was able to compile following the steps you show here: https://software.intel.com/en-us/articles/use-itt-frame-apis-from-intel-vtune-amplifier-xe-2011-to-analyze-each-frame-in-critical

Thanks peter!

Caesar
Beginner
79 Views

Hello again.

Is it possible in VTune to show tasks with different "names" using different colors?

Peter_W_Intel
Employee
79 Views

>Is it possible in VTune to show tasks with different "names" using different colors?

Haven't you seen this article, which displays task string in different colors?

Caesar
Beginner
79 Views

Hi Peter, Yes I have seen that paper. Very good indeed.

This only happens in the "Tasks and Frame" tab. At least in my computer/VTune in the bottom-up/top-down tabs all tasks in the "histogram" are shown using the same color. IMO it would be great if this might be consistent across tabs/"histograms".

Thank you,

Reply