Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Instrumentation

Intel_C_Intel
Employee
1,077 Views
Hi everyone. I have a small question and wonder if I would get help here. How is instrumentation done in Intel Thread Checker?
0 Kudos
6 Replies
Intel_C_Intel
Employee
1,077 Views
Intel Thread Checker instruments software before tracing it to find errors. Instrumentation adds benign Intel Thread Checker library calls into the software to be traced. The Intel Thread Checker library calls record information about threads in order to find possible errors. There are two different kinds of instrumentation: source and binary instrumentation.
0 Kudos
Irena_R_Intel
Employee
1,077 Views
Hi Mechanix -
Please also post your question in our Threading for Desktop and Server Forum: www.intel.com/IDS/forums/threading.


Best, Irena
0 Kudos
Intel_C_Intel
Employee
1,077 Views
Thanks for the suggestions burningstar and Irena, truly this forum rocks!
0 Kudos
Intel_C_Intel
Employee
1,077 Views
Can you tell me the difference between source and binary instrumentation?
0 Kudos
Intel_C_Intel
Employee
1,077 Views
Source instrumentation is added by the Intel C++ or Fortran Compiler when software is compiled with the -Qtcheck option. If your software uses OpenMP threading, then you should always use source instrumentation with Intel Thread Checker.

Binary instrumentation is done automatically when you run an Intel Thread Checker activity in the Intel VTune Performance Analyzer environment. Binary instrumentation can be used for software compiled with the Intel compiler, or the Microsoft C++ Visual compiler.
0 Kudos
Intel_C_Intel
Employee
1,077 Views
Burningstar, thank you for all the information, appreciate your effort. One final question.. Which is better - source or binary instrumentation?
0 Kudos
Reply