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

Could icpx 2023.2 be used by Visual Studio 2022 for Windows APP development?

barry-waves
Novice
3,277 Views

Hi,
Now, we use icx-cl in Visual Studio 2022 to compile Windows applications. However, we find there is icpx in the same folder. We also find a table for this (https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-1/invoke-the-compiler.html)

 

Does it mean the icpx is only for Linux development?

Could icpx be used by Visual Studio 2022 for Windows APP development? (Not using CMake. Only use solution and vcxproj files.)

If icpx could be used by Visual Studio 2022 for Windows APP development, how to select it as default compiler in Visual Studio 2022?

 

Note: the version of icpx and icx-cl are both 2023.2

           the version of Visual Studio 2022 is 17.5.1

 

Thank you in advance.

0 Kudos
1 Solution
VaishnaviV_Intel
Employee
3,025 Views

Hi,

 

>>Does the cl from icx-cl mean Clang or classic?

icx-cl is the Microsoft-compatible variant of icx and cl in icx-cl is nothing significant. It is the carry over from Microsoft command line compiler.


>>Does icx mean Intel Compiler?

Yes, icx is an Intel compiler. icx compiler is recommended for windows and icpx compiler is for linux.


For more information please refer to the below links,

https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-2/overview.html

https://www.intel.com/content/www/us/en/developer/articles/release-notes/intel-oneapi-dpc-c-compiler-release-notes.html

If you still have any queries, please let us know.

 

Thanks & Regards,

Vankudothu Vaishnavi.


View solution in original post

0 Kudos
8 Replies
VaishnaviV_Intel
Employee
3,220 Views

Hi,

 

Thanks for posting on Intel communities.

We are working on it internally. We will get back to you soon.

 

Thanks & Regards,

Vankudothu Vaishnavi.

 

0 Kudos
VaishnaviV_Intel
Employee
3,107 Views

Hello,


Thanks for being patient and understanding. 


>>Can Visual Studio 2022 for making Windows apps use "icpx"?

No, Visual Studio 2022 doesn’t have the option to select "icpx."

It's recommended to use "icx" as the default driver for Windows. Some specific settings for Windows only work with "icx" and not with "icpx." For instance, using the option "-Od" to turn off all optimizations works with "icx" on Windows, but it causes an error with "icpx."


"icpx" can be used for specifying options that are only for Linux, such as "O0" and "-fasynchronous-unwind-tables."


Certain flags for separating data items into their own sections are used differently for Linux and Windows:


- For Linux: "-fdata-sections"

- For Windows: "/Gw"


icx:

icx.exe /c /fdata-sections HelloWorld.cpp

icx: warning: unknown argument ignored in clang-cl: '-fdata-sections' [-Wunknown-argument]

icx.exe /c /Gw HelloWorld.cpp

 

icpx:

icpx.exe /c /fdata-sections HelloWorld.cpp

icpx.exe /c /Gw HelloWorld.cpp

icpx: warning: argument unused during compilation: '-G w' [-Wunused-command-line-argument]


Thanks & Regards,

Vankudothu Vaishnavi


barry-waves
Novice
3,066 Views

Hi,
Thank you for the information.
Does the cl from icx-cl mean Clang or classic? Does icx mean Intel Compiler?

0 Kudos
VaishnaviV_Intel
Employee
3,026 Views

Hi,

 

>>Does the cl from icx-cl mean Clang or classic?

icx-cl is the Microsoft-compatible variant of icx and cl in icx-cl is nothing significant. It is the carry over from Microsoft command line compiler.


>>Does icx mean Intel Compiler?

Yes, icx is an Intel compiler. icx compiler is recommended for windows and icpx compiler is for linux.


For more information please refer to the below links,

https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2023-2/overview.html

https://www.intel.com/content/www/us/en/developer/articles/release-notes/intel-oneapi-dpc-c-compiler-release-notes.html

If you still have any queries, please let us know.

 

Thanks & Regards,

Vankudothu Vaishnavi.


0 Kudos
barry-waves
Novice
2,998 Views

Hi,
Thanks for your great help.

0 Kudos
VaishnaviV_Intel
Employee
2,988 Views

Hi,


Do you have any other issues? Could you please confirm if we can close this thread from our end?


Thanks & Regards,

Vankudothu Vaishnavi.


0 Kudos
barry-waves
Novice
2,970 Views

Hi,
Yes. Please close this thread from your end. Thank you.

0 Kudos
VaishnaviV_Intel
Employee
2,904 Views

Hi,


Thanks for confirming. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks & Regards,

Vankudothu Vaishnavi.


0 Kudos
Reply