Thanks so much Peter for saving my time. Well I am struggling to build my openmp program inside vs2008 in order to use intel thread profiler to analyze my Openmp program. I tried a lot with changing build and link options but no result. And when I create new activilty inside the profiler, I got the message: "None of the Intel thread profiler Openmp collector's modules of interest have been linked to an Openmp library." So what should I do? and what is the complete command line options to produce the exe file suitable for the profiler. I am using intel c++ compiler ver 11.1 build 38. Thanks in advance
If you use Intel? Thread Profiler to analyze OpenMP program, there are two Collection mode:
1)
Instrumentation2) OpenMP*-specfic
Please use option 1) which can supports OpenMP* threading. Again, please use build options same as Call graph I mentioned in my previous post.
Run Intel? Thread Profiler in command line, steps are: (example)
1. Please set the
KMP_FOR_TPROFILE environment variable in your system
2. Start up Intel C++ Compiler IA-32 Visual Studio 2008,
command prompt
3. cd "
c:Program FilesIntelVTunetprofilebin"
4.
tprofile_cl.exe..samplesompPrimeDebugompPrime1.exe
5. During this process, tprofile_cl.exe will report:
a) # of processors
b) # of threads
c) # of waits
d) average concurrency
Concurrency: 0, 1, 2, 3
For further analysis, the output in the
threadprofiler directory can be viewed in the VTune Analyzer GUI, by opening .tp file
Hope it helps.
Regards, Peter