无法找到调试符号和大量空闲CPU使用情况

时间:2017-02-05 11:12:15

标签: c++ opencv profiling vtune intel-parallel-studio

我是VTune Amplifier的新手,我正试图用一个非常基本的应用程序来分析OpenCV。在关于推荐的编译器选项的this指南之后,我通过CMake使用CMAKE_BUILD_TYPE=RelWithDebInfo-DWITH_OPENMP=ON编译了OpenCV,因此包含-O2-g选项并启用了OpenMP。我的测试OpenCV应用程序是用

编译的
g++ -I/home/luca/Dropbox/SURFSPM/opencvInstall/include -O3 -g -Wall -c -fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.o" -o "main.o" "../main.cpp"

通过eclipse。但是,当我尝试分析我的应用程序时,这是集合Log:

Data collection is completed successfully
    Sunday, February 05, 2017 AM11:44:53 CET  The result file '/home/luca/intel/amplxe/projects/OpenCV/r000hs/r000hs.amplxe' is successfully created and added to the project OpenCV. 

Finalization completed with warnings 
    Sunday, February 05, 2017 AM11:45:01 CET  Result finalization has completed with warnings that may affect the representation of the analysis data. Please see details below. 
    Cannot locate file `[stack]'.
    Cannot locate debugging symbols for file `/lib/x86_64-linux-gnu/libgcc_s.so.1'.
    Cannot match the module with the symbol file `/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21': checksum is different. Make sure to specify the correct path to the symbol file in the Binary/Symbol Search list of directories.
    Cannot locate debugging symbols for file `/usr/lib/x86_64-linux-gnu/libstdc++.so.6'.
    Cannot locate debugging symbols for file `/opt/intel/vtune_amplifier_xe_2017.1.0.486011/lib64/runtime/libittnotify_collector.so'.
    Cannot locate debugging symbols for file `/lib64/ld-linux-x86-64.so.2'.
    Cannot locate debugging symbols for file `/usr/lib/x86_64-linux-gnu/libpng12.so.0'.
    Cannot locate debugging symbols for file `/usr/local/lib/libopencv_xfeatures2d.so.3.1'.
    Cannot locate debugging symbols for file `/opt/intel/vtune_amplifier_xe_2017.1.0.486011/lib64/libtpsstool.so'.
    Cannot locate debugging symbols for file `/usr/local/lib/libopencv_core.so.3.1'.
    Cannot locate debugging symbols for file `/usr/local/lib/libopencv_imgcodecs.so.3.1'.
    Cannot locate debugging symbols for file `/usr/local/lib/libopencv_imgproc.so.3.1'.

此外,正如您从下图所示,大部分时间CPU使用率处于空闲状态:

enter image description here

这让我觉得这个警告信息很重要,而且我做错了。

0 个答案:

没有答案