Visible to Intel only — GUID: GUID-148C0274-D09E-4962-B60D-9C741EFAF444
Invoke the Compiler
The Intel® oneAPI DPC++/C++ Compiler provides multiple drivers to invoke the complier from the command line. The examples below show options for C++ and SYCL*. For a full list of driver options, see the Different Compilers and Drivers table.
For more information on the compiler, see Invoking the Compiler in the Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference.
To enable OpenMP* offloading for C++ applications, invoke the compiler with:
icpx -fiopenmp -fopenmp-targets=<arch> (Linux)
icx /Qiopenmp /Qopenmp-targets:<arch> (Windows).
To enable OpenMP offloading for SYCL applications, invoke the compiler with:
icpx -fsycl -fiopenmp -fopenmp-targets=<arch> (Linux)
icx-cl -fsycl /Qiopenmp /Qopenmp-targets:<arch> (Windows)
For more information about options, you can go to the option descriptions found in the Compiler Options section of the Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference.
The compiler driver has different compatibilities on different OS hosts. On Linux, icpx -fsycl provides GCC*-style command line options. On Windows, icx-cl provides Microsoft Visual C++* compatibility with Microsoft Visual Studio*.
It recognizes GCC-style command line options (starting with “-“) and can be useful for projects that share a build system across multiple operating systems.
It recognizes Windows command line options (starting with “/”) and can be useful for Microsoft Visual Studio-based projects.