Intel® oneAPI Base Toolkit
Support for core tools and libraries to build and deploy high-performance data-centric applications
335 Discussions

which file does oneAPI really called in vs2019

silas_cheng
Beginner
790 Views

downloaded and installed the base toolkit today and tried to compiled my code in vs2019(16.11.9). everything looks normal and I found vs2019 is called clang-cl.exe to do the job. However, I find this readme file in intel\oneAPI\compiler\2022.0.0\windows\bin-llvm basically saying clangxxx is deprecated, instead icx.exe should be called. 

 

anythign wrong?  

 

 

version:

c++ compiler: 2022.0.0.161

oneAPI DPC++ compiler: 2022.0.0.1

0 Kudos
8 Replies
MadhuK_Intel
Moderator
759 Views

Hi,

 

Thanks for reaching out to us.

 

We have compiled a sample program using Intel C++ compiler 2022 (icx) and Visual Studio 2019. We have selected the platform toolset as Intel C++ compiler 2022(Project -> Properties -> Configuration properties -> General -> Platform Toolset).

We observed that the VS used the icx.exe file for building the project. 

 

MadhuK_Intel_0-1643021835393.png

 

 

Could you please let us know which compiler you have selected before building the project?

 

Regards,

Madhu

 

silas_cheng
Beginner
750 Views

as shown in these snapshots. remark: for speed purpose I installed the oneAPI in the same path in e driver,  instead of the default path in c driver

silas_cheng_0-1643025823987.pngsilas_cheng_1-1643025829756.png

silas_cheng_2-1643025838131.png

silas_cheng_3-1643025849275.png

silas_cheng_4-1643025861363.png

 

 

MadhuK_Intel
Moderator
672 Views

Hi,


We are working on your issue, we will get back to you soon.


Best Regards,

Madhu


Viet_H_Intel
Moderator
643 Views

Yes, icx will be calling clang-cl.exe (Intel version). The README doesn't imply clang/clang++ are deprecated, it's not recommended. But if you need to call clang/clang++ (LLVM versions) directly, you still can and report issue to us if any. 

Hope this clear some confusions you have.

Thanks

 

silas_cheng
Beginner
564 Views

in this case, if I use cmake to manage the building, which .exe should I use? Also, from your vs2022 snapshot, icx is called. Does it mean vs2019 is using clang-cl.exe because of some legacy issues?

Viet_H_Intel
Moderator
584 Views

Have we answered your concerns? if so, can we close this thread?


Thanks,


Viet_H_Intel
Moderator
555 Views

If you intended to use Intel Compiler then icx should be used. icx is a driver and will call clang-cl.exe. No.

Thanks,



Viet_H_Intel
Moderator
519 Views

Seems like we have answered your questions, we will go ahead and close this thread. If you have any other questions/concerns, please create a new one.


Regards,

Viet


Reply