Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1796 Discussions

undefined symbol: _ZN4sycl3_V15queueC2ERKNS0_6deviceERKSt8functionIFvNS0_14exc

Hongbo_R_Intel
Employee
799 Views

Hello, I have a piece of OneAPI code like this:

#include <sycl/sycl.hpp>
#include <sycl/ext/intel/fpga_extensions.hpp>

#include "exception_handler.hpp"

....

sycl::queue q_device(sycl::ext::intel::fpga_selector_v, fpga_tools::exception_handler, sycl::property::queue::enable_profiling());

...

It is compiled on a S10 machine s001-n142 in commands like:

source /glob/development-tools/versions/oneapi/2023.2/oneapi/setvars.sh --force

icpx -fsycl -fintelfpga demo.cpp some_fpga_image.a -o demo.out

The commands finished successfully, but when running there is an error:

./demo.out

symbol lookup error: undefined symbol: _ZN4sycl3_V15queueC2ERKNS0_6deviceERKSt8functionIFvNS0_14exception_listEEERKNS0_13property_listENS1_13DiscriminatorE

I looked at the demo.out with "nm -D demo.out" and indeed the symbol is undefined. I guess there might be some libraries I missed in the "icpx" command above?

 

Thanks!

Hongbo

0 Kudos
4 Replies
Hongbo_R_Intel
Employee
792 Views

I am not sure if the error is related with my devcloud batch submission. But in an interactive command window, I removed the generated .out file and other related files, then rebuilt the .out file in the same commands, and the newly generated .out file runs just fine. Not sure why, but this issue is solved. 

0 Kudos
DiyaN_Intel
Moderator
765 Views

Hi, 


Thank you for posting in Intel communities.

Is your issue resolved?

Can we go forward and close this thread?


Regards,

Diya


0 Kudos
Hongbo_R_Intel
Employee
756 Views

Yes. Please close the thread. Thanks!

Hongbo

0 Kudos
DiyaN_Intel
Moderator
719 Views

Hi, 


Thanks for confirming.

This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Regards, 

Diya


0 Kudos
Reply