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

Run sample from visual studio extension crashed

BenjaminZhou
Beginner
481 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
450 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-...

 

Thanks & Regards,

Varsha

 

BenjaminZhou
Beginner
433 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

VarshaS_Intel
Moderator
401 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

 

VarshaS_Intel
Moderator
362 Views

Hi,


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


Thanks & Regards,

Varsha


VarshaS_Intel
Moderator
311 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


Reply