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*

Exception with dpc++

MSDURAN
Beginner
1,094 Views

Hello,

I installed Intel One API Basekit. However, I'm encountering an exception while attempting to retrieve the name of the CPU device, and it also doesn't work again when the default value of the get_devices function is chosen. Below is the code:

 


Exception:

Unhandled exception at 0x00007FFE9B025B0C in DPCPPConsoleHelloWorld.exe: Microsoft C++  exception: std::out_of_range at memory location 0x000000F65076E4C0.

 

I've attempted to compile and run the code and the examples (on Visual Studio 2022 extensions->Intel->Browse Intel OneAPI Samples...) using the Intel OneAPI command prompt for Intel 64 for Visual Studio 2022, but the issue persists.

 

0 Kudos
1 Solution
MSDURAN
Beginner
981 Views

Reformatting my computer and reinstalling oneAPI from scratch resolved my issue.

View solution in original post

0 Kudos
2 Replies
Caleb23
Beginner
988 Views

I am getting exactly the same error message, also using the OneAPI samples. My configuration is:

 

Core Ultra 7 155H
Windows 11
Visual Studio Community 2022
OneAPI version 2024.0

 

Running sycl-ls from the oneAPI command line environment gives the following output:

 

[opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2023.16.12.0.12_195853.xmain-hotfix]
[opencl:cpu:1] Intel(R) OpenCL, Intel(R) Core(TM) Ultra 7 155H OpenCL 3.0 (Build 0) [2023.16.12.0.12_195853.xmain-hotfix]
[opencl:gpu:2] Intel(R) OpenCL Graphics, Intel(R) Arc(TM) Graphics OpenCL 3.0 NEO [31.0.101.5234]
[ext_oneapi_level_zero:gpu:0] Intel(R) Level-Zero, Intel(R) Arc(TM) Graphics 1.3 [1.3.28044]

0 Kudos
MSDURAN
Beginner
982 Views

Reformatting my computer and reinstalling oneAPI from scratch resolved my issue.

0 Kudos
Reply