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*
641 Discussions

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

Daniel_D
Beginner
2,769 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
2,564 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
2,710 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
2,690 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
2,635 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
2,630 Views
0 Kudos
SeshaP_Intel
Moderator
2,565 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
2,490 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
2,514 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
2,459 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
2,392 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
2,383 Views

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

 

Thanks

0 Kudos
SeshaP_Intel
Moderator
2,381 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