Community
cancel
Showing results for 
Search instead for 
Did you mean: 
JayJ
Novice
212 Views

undefined reference to 'dlerror' when using Intel ITTAPI

Jump to solution

Hello everyone... I feel this is a straightforward problem, but I have been a bit stuck on fixing this problem.

 

I am following this link to profile performance anomaly:

https://software.intel.com/content/www/us/en/develop/documentation/vtune-cookbook/top/configuration-...

 

But having a bit of a hard time getting the program to compile.

Code is straightforward, just simply trying to create PT region by following the above tutorial:

JayJ_0-1631208975037.png

However, upon trying to compile it using the below command:

JayJ_2-1631209037629.png

Looking like I am having some issue with the linking/loading phase that is not related to installation?

I have also tried manually installing the API library from https://github.com/intel/ittapi and do things manually, but no luck, so I am asking for help...

 

VTune Profiler itself works properly; I have run the vtune-self-checker.sh and used vtune-gui to see whether I could do a simple analysis such as a hotspot.

 

Thank you in advance, and I would appreciate any suggestions.

Labels (1)
0 Kudos
1 Solution
JananiC_Intel
Moderator
179 Views

Hi,


Thanks for posting in Intel forums.


Try the below command to compile your itt code.


icpc -g <cpp file> -I/opt/intel/oneapi/vtune/latest/sdk/include /opt/intel/oneapi/vtune/latest/sdk/lib64/libittnotify.a -lpthread -o <executable_name>


The above command is for cpp code.You can replace icpc with icc for c language code and these icc and icpc are classic compilers which are included in Intel HPC toolkit.


You can also refer the below itt documentation for other configurations.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instru...


Regards,

Janani Chandran


View solution in original post

4 Replies
JananiC_Intel
Moderator
180 Views

Hi,


Thanks for posting in Intel forums.


Try the below command to compile your itt code.


icpc -g <cpp file> -I/opt/intel/oneapi/vtune/latest/sdk/include /opt/intel/oneapi/vtune/latest/sdk/lib64/libittnotify.a -lpthread -o <executable_name>


The above command is for cpp code.You can replace icpc with icc for c language code and these icc and icpc are classic compilers which are included in Intel HPC toolkit.


You can also refer the below itt documentation for other configurations.

https://software.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instru...


Regards,

Janani Chandran


View solution in original post

JananiC_Intel
Moderator
141 Views

Hi,


Is your issue resolved? Do you have any update?


Regards,

Janani Chandran


JayJ
Novice
128 Views

Dear JananiC,

 

I sincerely apologize for the late response; your suggestion of using the HPC toolkit compiler worked! I didn't know such a compiler existed, so I'm glad I asked for help, or otherwise, I wouldn't have been able to solve it.

 

Thank you for your help,

Kind regards.

JananiC_Intel
Moderator
107 Views

Hi,


Thanks for accepting our solution. 


If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Regards,

Janani Chandran


Reply