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

Intel C++ Compiler 2023 / DPC++ support for WSL2

Daniel_D
Beginner
1,693 Views

Hi,

are there any plans to support WSL2 in the near future - or is there already a workaround how to add the Intel compilers to the Platform Toolsets in a WSL2 Project?

 

Thanks,

Daniel

 

0 Kudos
1 Solution
SeshaP_Intel
Moderator
1,488 Views

Hi,

 

Currently, IDE does not support choosing the platform toolset in C++ Linux project in Visual Studio.

 

But we recommend the following method to use ICX and DPC++ in Linux projects.

 

1. After connecting to the target Linux system in Visual Studio, choose the platform toolset "Clang for Windows Subsystem for Linux"

SeshaP_Intel_0-1677752686634.png

 

2. You can specify the path of icpx, for e.g.

C++->General->C Compiler: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx

C++->General->C++ Compiler: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx

Linker->General->Linker: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx

SeshaP_Intel_1-1677752730244.png

SeshaP_Intel_2-1677752739592.png

 

3. Then the project can be built with ICX.

 

Hope this resolves your issue.

 

Thanks and Regards,

Pendyala Sesha Srinivas

 

View solution in original post

0 Kudos
11 Replies
SeshaP_Intel
Moderator
1,634 Views

Hi,

 

Thank you for posting in Intel Communities.

 

You can use Intel C++/DPC++ Compiler 2023 on Microsoft Windows Subsystem for Linux 2 (WSL2), and you can try by using the native Linux distribution of Intel® oneAPI tools and libraries on Windows. For GPU Accelerator support starting with Intel® Graphics Driver version 30.0.100.9684 will support WSL2. Please refer to the below link for more details.

https://www.intel.com/content/www/us/en/developer/articles/technical/use-oneapi-toolkits-on-wsl-2.html

 

Thanks and Regards,

Pendyala Sesha Srinivas

 

0 Kudos
Daniel_D
Beginner
1,614 Views

Hi,

 

thanks for the information. What I'm looking for is the Intel compiler in a VS linux project. So I like to select the Intel compiler here:

Daniel_D_0-1676621642169.png

This is a screenshot of a Windows Project. The VS-Linux project lists just GCC and Clang as Linux compiler toolset - Intel is missing.

 

Thanks,

Daniel

0 Kudos
SeshaP_Intel
Moderator
1,559 Views

Hi,


Could you please let us know which Linux distribution and version you are using on WSL2?


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
Daniel_D
Beginner
1,554 Views
0 Kudos
SeshaP_Intel
Moderator
1,489 Views

Hi,

 

Currently, IDE does not support choosing the platform toolset in C++ Linux project in Visual Studio.

 

But we recommend the following method to use ICX and DPC++ in Linux projects.

 

1. After connecting to the target Linux system in Visual Studio, choose the platform toolset "Clang for Windows Subsystem for Linux"

SeshaP_Intel_0-1677752686634.png

 

2. You can specify the path of icpx, for e.g.

C++->General->C Compiler: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx

C++->General->C++ Compiler: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx

Linker->General->Linker: /opt/intel/oneapi/compiler/2023.0.0/linux/bin/icpx

SeshaP_Intel_1-1677752730244.png

SeshaP_Intel_2-1677752739592.png

 

3. Then the project can be built with ICX.

 

Hope this resolves your issue.

 

Thanks and Regards,

Pendyala Sesha Srinivas

 

0 Kudos
Daniel_D
Beginner
1,414 Views

Hi,

 

thanks for your solution. I think I can work with it. Do you plan to have a native support for your compiler? Specially to give access to the custom options of it that are not accessable through the clang template?

Can you also please share the guides for the Intel DPC++ ?

Thanks.

0 Kudos
SeshaP_Intel
Moderator
1,438 Views

Hi,


Has the information provided above helped? If yes, could you please confirm whether we can close this thread from our end?


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
SeshaP_Intel
Moderator
1,383 Views

Hi,


Thanks for accepting our solution.


>>>  Do you plan to have a native support for your compiler? Specially to give access to the custom options of it that are not accessable through the clang template?

Can you also please share the guides for the Intel DPC++ ?


As of now, we do not have any plans. We have provided your feedback to the development team.


You can refer to the below link for more information on the Intel DPC++ compiler.

https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/get-started-guide/2023-0/overview.html


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
SeshaP_Intel
Moderator
1,316 Views

Hi,


Has the information provided above helped? If yes, could you please confirm whether we can close this thread from our end?


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
Daniel_D
Beginner
1,307 Views

Hi - sorry for my late reply. Yes, you can close this issues.

 

Thanks

0 Kudos
SeshaP_Intel
Moderator
1,305 Views

Hi,


Thanks for the confirmation. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
Reply