10000 Intel icx C compiler in C++ mode · Issue #1651 · compiler-explorer/infra · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Intel icx C compiler in C++ mode #1651
Open
@pauleonix

Description

@pauleonix

According to Porting Guide for ICC Users to DPCPP or ICX

  • [...] Use icx to compile and link C programs, and icpx 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 invoke icpx 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0