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

Run sample from visual studio extension crashed

BenjaminZhou
Beginner
752 Views

I have complied sample in "intel oneApi command prompt" with "dpcpp" succeed, but compile same code in vs show error:

 

err1.pngerr2.pngerr3.png

0 Kudos
5 Replies
VarshaS_Intel
Moderator
721 Views

Hi,

 

Thanks for reaching out to us.

 

Whenever you use the Intel oneAPI command prompt, the oneAPI environment will be initialized automatically. So, you were able to run the sample dpcpp code successfully.

 

From the screenshots provided by you, we can see that you have not selected the Intel DPC++ Compiler. This might be caused you errors while running dpcpp code in Microsoft Visual Studio.

 

Could you please find the below screenshot for selecting the Intel DPC++ Compiler. Go to the Project Properties --> Configuration Properties --> General --> Platform Toolset (from the dropdown) select the Intel(R) oneAPI DPC++ Compiler. Click on "Apply" and Rebuild the solution.

dpcppPlatform.png

 

Could you please let us know if you are still facing any issues?

 

Also, we have observed that you are using Microsoft Visual Studio(16.11.7) which is not supported by Intel oneAPI as of now. We recommend you to use the supported Microsoft Visual Studio versions with Intel oneAPI.

 

For the Microsoft Visual Studio Compatibility with Intel oneAPI, please find the below link :

https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html

 

Thanks & Regards,

Varsha

 

0 Kudos
BenjaminZhou
Beginner
704 Views

I have already tried :

1.

Go to the Project Properties --> Configuration Properties --> General --> Platform Toolset (from the dropdown) select the Intel(R) oneAPI DPC++ Compiler

2.

err4.png

but still not work

by the way before all of this. I have uninstalled vs2022 and repair oneApi

 

I think this probably relate with:

err5.png

0 Kudos
VarshaS_Intel
Moderator
672 Views

Hi,

 

>>I have uninstalled vs2022 and repair oneApi

Could you please confirm which Visual Studio version you are using now?

 

We only provide support in English. Could you please help us with the error in English(as the error messages in the screenshot are not in English) so that we can investigate more on your issue?

 

Thanks & Regards,

Varsha

 

0 Kudos
VarshaS_Intel
Moderator
633 Views

Hi,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Varsha


0 Kudos
VarshaS_Intel
Moderator
582 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 & Regards

Varsha


0 Kudos
Reply