Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

openmp unresolved external symbols

Mihaly_Sisak
Beginner
1,199 Views

Hi everyone!

We are trying to accelerate an existing C codebase with OpenMP pragmas and possible offloading.

If we compile with "/Qiopenmp" everything works. If we try to compile with "/Qiopenmp /Qopenmp-targets:spir64" the compilation fails with these errors:

error LNK2019: unresolved external symbol __tgt_target_data_begin_mapper
error LNK2019: unresolved external symbol __tgt_push_code_location
error LNK2001: unresolved external symbol __tgt_push_code_location
error LNK2019: unresolved external symbol __tgt_target_teams_mapper
error LNK2001: unresolved external symbol __tgt_target_teams_mapper
error LNK2019: unresolved external symbol __tgt_target_data_update_mapper
error LNK2001: unresolved external symbol __tgt_target_data_update_mapper
error LNK2019: unresolved external symbol __tgt_target_data_end_mapper
error LNK2019: unresolved external symbol __tgt_register_requires 
error LNK2001: unresolved external symbol __tgt_register_requires
fatal error LNK1120: 6 unresolved externals

We are using icx with ninja and cmake from the command line.

Software versions:

  • icx: icc_w_BaseKit_p_2023.2.0.49396_offline
  • vs: Microsoft Visual Studio Professional 2022 (64-bit) - Version 17.6.5
  • ninja: 1.11.1
  • cmake: 3.26.4

What are we doing wrong?

0 Kudos
3 Replies
AishwaryaCV_Intel
Moderator
1,159 Views

Hi,


Thank you for posting in intel community.


Could you please provide the following details so that we could reproduce the issue at our end and also check whether they are of supported type:

1. OS and Hardware

2. Sample reproducer and steps to reproduce.


Thanks And Regards, 

Aishwarya


0 Kudos
AishwaryaCV_Intel
Moderator
1,100 Views

Hi,


We have not heard back from you, Could you please provide information we asked in the previous response?


Thanks And Regards,

Aishwarya


0 Kudos
AishwaryaCV_Intel
Moderator
1,053 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks And Regards,

Aishwarya


0 Kudos
Reply