This guide explains how to install, configure, and use the Intel oneAPI DPC++/C++ Compiler on Linux and Windows, including command-line compilation, Eclipse…
The Intel oneAPI DPC++/C++ Compiler provides optimizations for Intel 64 architectures on Windows and Linux, supporting the latest C, C++, and SYCL language standards. This document describes how to set up the compiler environment, invoke the compiler from the command line, integrate with Eclipse CDT, and build and run a simple test program.
It covers separate procedures for Linux and Windows, including setting environment variables with setvars.sh or oneapi-vars.sh, installing optional GPU drivers, selecting the appropriate compiler driver (icx, icpx, icx-cl), and using the Eclipse CDT plugin. A step-by-step example demonstrates compiling and linking a "Hello, world" program.
| Supported Languages | C, C++, SYCL |
|---|---|
| Supported Operating Systems | Linux, Windows |
| Parallel Programming Model | OpenMP 5.0/5.1 |
| Compiler Drivers (Windows) | icx (default), icx-cl (Microsoft-compatible) |
| SYCL Compilation | Use -fsycl option with icpx |
icpx is the recommended default C++ driver for Linux.
Use the -fsycl option with the icpx driver, e.g., icpx -fsycl hello-world.cpp.
Visual Studio 2022 and Visual Studio 2019 are supported; Community Edition or higher is required for full functionality.