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*
685 Discussions

The toolchain is installed but doesn't work.

R-Goc
Beginner
1,253 Views

I downloaded and installed the latest toolkit, however when going through the getting started guide, and building the test app, vector-add, the app crashes. Here is a stack trace from gdb-oneapi. For some reason I am unable to get debug symbols into the binary even though I use -debug, also tried -g didn't work either. Or maybe gdb-oneapi doesn't recognize them for some reason.
Thread 1 hit Catchpoint 1 (signal 143), 0x00007ffaa9a15b0c in RaiseException () from C:\Windows\System32\KernelBase.dll
(gdb) bt
#0 0x00007ffaa9a15b0c in RaiseException () from C:\Windows\System32\KernelBase.dll
#1 0x00007ffa88306ba7 in _CxxThrowException () from C:\Windows\SYSTEM32\vcruntime140.dll
#2 0x00007ffa98409542 in MSVCP140!?_Xout_of_range@std@@YAXPEBD@Z () from C:\Windows\SYSTEM32\msvcp140.dll
#3 0x00007ffa112db5b1 in sycl7!?sampledImageConstructorNotification@detail@_V1@sycl@@YAXPEAX0AEBV?$optional@W4image_target@_V1@sycl@@@std@@PEBXIAEBUcode_location@123@@Z () from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#4 0x00007ffa112d8653 in sycl7!?sampledImageConstructorNotification@detail@_V1@sycl@@YAXPEAX0AEBV?$optional@W4image_target@_V1@sycl@@@std@@PEBXIAEBUcode_location@123@@Z () from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#5 0x00007ffa112d9a70 in sycl7!?sampledImageConstructorNotification@detail@_V1@sycl@@YAXPEAX0AEBV?$optional@W4image_target@_V1@sycl@@@std@@PEBXIAEBUcode_location@123@@Z () from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#6 0x00007ffa1142202f in sycl7!?get_pipe_name@pipe_base@experimental@intel@ext@_V1@sycl@@KA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBX@Z ()
from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#7 0x00007ffa114f89b0 in sycl7!?get_devices@platform@_V1@sycl@@QEBA?AV?$vector@Vdevice@_V1@sycl@@V?$allocator@Vdevice@_V1@sycl@@@std@@@std@@W4device_type@info@23@@Z
() from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#8 0x00007ffa11420d8c in sycl7!?get_pipe_name@pipe_base@experimental@intel@ext@_V1@sycl@@KA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBX@Z ()
from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#9 0x00007ffa1141fd94 in sycl7!?get_pipe_name@pipe_base@experimental@intel@ext@_V1@sycl@@KA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBX@Z ()
from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#10 0x00007ffa114f89cd in sycl7!?get_platforms@platform@_V1@sycl@@SA?AV?$vector@Vplatform@_V1@sycl@@V?$allocator@Vplatform@_V1@sycl@@@std@@@std@@XZ ()
from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#11 0x00007ffa114cf77e in sycl7!?get_devices@device@_V1@sycl@@SA?AV?$vector@Vdevice@_V1@sycl@@V?$allocator@Vdevice@_V1@sycl@@@std@@@std@@W4device_type@info@23@@Z ()
from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#12 0x00007ffa114d1e01 in sycl7!?select_device@detail@_V1@sycl@@YA?AVdevice@23@AEBV?$function@$$A6AHAEBVdevice@_V1@sycl@@@Z@std@@@Z ()
from C:\Program Files (x86)\Intel\oneAPI\compiler\latest\bin\sycl7.dll
#13 0x00007ff76f705122 in ?? ()
#14 0x00007ff76f70177d in ?? ()
#15 0x00007ff76f70d5f8 in ?? ()
#16 0x00007ffaaaa3257d in KERNEL32!BaseThreadInitThunk () from C:\Windows\System32\kernel32.dll
#17 0x00007ffaac30aa58 in ntdll!RtlUserThreadStart () from C:\Windows\SYSTEM32\ntdll.dll
#18 0x0000000000000000 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Labels (1)
0 Kudos
6 Replies
Vipin_Singh1
Moderator
1,223 Views

Hi Ryszard, we would like to inform you that we are routing your query to the dedicated team for further assistance.



0 Kudos
Barbara_P_Intel
Employee
1,199 Views

I'd like to help. Can you please supply some more information?

  • the source for the app you are trying to run
  • the compiler and compiler options
  • the error message when it crashes

I see you are running on Windows. What version?

0 Kudos
R-Goc
Beginner
1,191 Views

The source for the app is the intel oneapi base: vector-add sample. There is no error dmessage it just crashes. Only with a debugger I can see that it is an out of bounds error somewhere in sycl7.dll but I'm unable to tell exactly where as I can't find the pdb for it. If i use the gdb-oneapi debugger I have no symbols at all, if I use the visual studio debugger I only have some of them, but not the intel ones. For some reasons I can't get the compiler to emit debug info for the vector-add cpp files, so can't even put a breakpoint there. The compiler is the icx-cl, and the compiler options are default for the sample, except for trying to add -debug, which seemed too change nothing on the command line, still no symbols, and the default debug build on Visual Studio. The version of windows is Windows 11 Home, Version 23H2, OS build 22635.3212. 

0 Kudos
R-Goc
Beginner
1,186 Views

I'm also not sure if the thread was moved to the proper forum as this is a problem with the oneapi base toolkti, and the source file is in C++. 

0 Kudos
Barbara_P_Intel
Employee
1,178 Views

@R-Goc, thank you for the additional information.

You are correct. This is the wrong forum for your questions. I'll move this to the DPC++/C++ Forum.

0 Kudos
R-Goc
Beginner
1,084 Views

I was able to narrow down the problem to the creation of the queue:

queue q(selector, exception_handler);

I know that an out of range exception happens somewhere in the Sycl7.dll but I can't debug exactly where it is as I don't have the .pdb file for sycl7. Both visual studio intellisense and clangd throw out hundreds of errors in the sycl7 headers.

0 Kudos
Reply