简体   繁体   中英

Intel Inspector: "Source file not found. Suggestion: Specify locations in a Project Properties dialog box search tab."

I'm building a small application to my phd research. As the application is presenting some undefined behavior, I decided to use the Intel Inspector standalone GUI to locate memory problems and it manage to find a considerably amount of problems as shown in the image below:

在此处输入图像描述

I'm using intelOneAPI compiler with the following options: icx /Qstd:c17 /Zi /DEBUG /Qopenmp /O3 /Ot /Qipo src/main.c src/libs/edosystems.c src/libs/nldyn.c src/libs/iofiles.c src/libs/interface.c src/modules/time_series.c src/modules/poinc_map.c src/modules/lyap_exp_wolf.c src/modules/ftime_series.c

I read the documentation and did some digging on google and I could not manage to find how to make the Intel Advisor to point the problematic lines in my source code. What am I missing here?

The main Project Properties: 在此处输入图像描述

In order to view the source code in Inspector or Vtune, use debugging symbols.

example:

Instead of using the below command

 g++ test cpp-o test

use:

 g++ test.cpp -g -o test

Then give that executable or binary to the Intel Inspector to view the source code. 在此处输入图像描述

Also, give a path to the source directory before starting any analysis. 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM