Description
According to Porting Guide for ICC Users to DPCPP or ICX
- [...] Use
icx
to compile and link C programs, andicpx
for C++ programs.- Unlike the
icc
driver,icx
does not use the file extension to determine whether to compile as C or C+. Users must invokeicpx
to compile C+ files.
On godbolt.org in both C and C++ mode one only gets icx
. The confusion is magnified (or maybe even caused) by the fact that both compiler drivers tell you that they are the "Intel(R) oneAPI DPC++/C++ Compiler" when used with --version
. But one is not just an alias of the other (at least in my installation, but their size is the same). Idk how much of a difference it makes in practice, but it is certainly confusing. A colleague just came to me saying he can't use Compiler-Explorer for trying out the Intel C++ compiler because he could not find icpx
.
Also note that above guide says
In this document everything referred to ICX will apply automatically to ICPX as well unless mentioned otherwise.
which might be another cause of confusion.