Intel® oneAPI Data Parallel C++
Support for Intel® oneAPI DPC++ Compiler, Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and GDB*
414 Discussions

oneAPI 2021.4 esimd Windows run issue of pi_level_zero.dll

Qigeng
Employee
536 Views

Hi,

 

I met an issue when using oneAPI on Windows with ESIMD feature.

I use oneAPI 2021.4 release on Windows with Visual Studio 2019 and ESIMD feature.

I can build in "release" mode successfully, but when I run in "release" mode:

Qigeng_0-1652950206794.png

 and I get this message:

Unhandled exception at 0x00007FFDF70BA8BD (pi_level_zero.dll) in gaussian-3.exe: Fatal program exit requested.

The attachment "bug_output.txt" is the full VS output. And "GaussianBlur.zip is my VS project.

 

BTW, I use opencv on Windows by Openvino_2021.4.689.  and I can successfully run simple dpc++ code on this machine.

 

I am an employee of Intel, ping me directly if any need.

Thanks so much!

0 Kudos
4 Replies
VidyalathaB_Intel
Moderator
333 Views

Hi Qigeng,


Thanks for reaching out to us.

Could you please try running the code from Intel oneAPI command prompt and let us know if you are getting the same error as in VS?

Also, we suggest you try the latest version(2022) of dpcpp compiler.


Regards,

Vidya.


Qigeng
Employee
317 Views

Hi Vidyalatha,

 

I try to run the code from Intel oneAPI command prompt, the result is the same:

gaussian of (3*3):
CPU OpenCV time = 10.913820 ms
die: piMemImageCreate: unsupported image format layout

Besides, we try to use oneAPI 2022.2 with VS 2022, but still get the same result and error:

Qigeng_0-1653102843988.png

 

Thanks,

Qigeng

VidyalathaB_Intel
Moderator
276 Views

Hi,


Thanks for sharing the details. 

We are working on your issue. we will get back to you soon.


Regards,

Vidya.


Qigeng
Employee
236 Views

Hi Vidyalatha,

 

I have some progress on this issue and wish that it can be helpful.

I can run it successfully in "release" mode by oneAPI 2021.4 release on Windows with Visual Studio 2019.

  • 1.  Change the header file in the src/gaussian_3.cpp from 
    #include <opencv2/opencv.hpp>
    to
    #include "opencv2/core/core.hpp"
    #include "opencv2/highgui/highgui.hpp"
    #include "opencv2/imgproc/imgproc.hpp"
  • 2. Change image from 24bit jpg to ppm
  • 3. Add "SYCL_DEVICE_FILTER=opencl:gpu" as VS "LocalDebuggerEnvironment" in gaussian-3.vcxproj.user

The attachment "GaussianBlur_new.zip" is my new VS project.

However, when I try this by oneAPI 2022.2 with VS 2022,  I get this error:

Exception thrown at 0x00007FFB79744FD9 in gaussian-3.exe: Microsoft C++ exception: cl::sycl::compile_program_error at memory location 0x000000C4CE5DD080.

bug1.png

FYI, for oneAPI 2022.2, I change the code from "esimd_sat" to "saturate" func.  The attachment "GaussianBlur_new_2022.zip is my 2022 VS project.

 

Thanks,

Qigeng

Reply