Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4999 Discussions

fatal error: advisor-annotate.h

liu_wei67
Beginner
850 Views

HI:

I encountered the problem of the advisor-annotate.h header file when using the advisor example on the official website.

1.Return to the Survey Report, right-click any data row in the top pane, and choose Edit Source

 to open the nqueens_serial.cppsource file in an editor.
2.Search for ADVISOR SUITABILITY EDIT and follow the directions in the sample code. Make four total edits:
- Uncomment //#include <advisor-annotate.h>
...
When I uncommented, the following error was reported when executing the command
>>> make 1_nqueens_serial

g++ -m64 nqueens_serial.cpp -o 1_nqueens_serial -O2 -g -I /include/ -ldl
nqueens_serial.cpp:74:10: fatal error: advisor-annotate.h: No such file or directory
74 | #include <advisor-annotate.h>
      |                  ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:51: 1_nqueens_serial] Error 1

    0 Kudos
    3 Replies
    Ruslan_M_Intel
    Employee
    834 Views

    Try to edit the Makefile by changing 'ADVISOR_2018_DIR' to 'ADVISOR_2021_DIR'

    0 Kudos
    liu_wei67
    Beginner
    819 Views

    thanks, I have solved this problem.

    0 Kudos
    RahulU_Intel
    Moderator
    815 Views

    Hi,

     

    Thanks for posting in Intel communities. Glad to know that your issue is resolved. If you need any additional information, please submit a new question as this thread will no longer be monitored.

     

    Thanks and Regards

    Rahul

     

    0 Kudos
    Reply