Intel oneAPI DPC++/C++ Compiler Get Started Guide

This guide explains how to install, configure, and use the Intel oneAPI DPC++/C++ Compiler on Linux and Windows, including command-line compilation, Eclipse…


Intel oneAPI DPC++/C++ Compiler Get Started Guide - cover page
Brand
Intel
Category
Programming
Document type
User Manual
Language
English
Pages
11
File format
PDF
File size
146 KB
Published
09 November, 2026
Updated
09 November, 2026
MD5 checksum
130A063BDB13E5FC867412F8FC4F6BAF

About this manual

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.

What's inside

  • Get Started on Linux
  • Get Started on Windows
  • Compile and Execute Sample Code
  • Set Environment Variables
  • Invoke the Compiler from the Command Line
  • Invoke the Compiler From the Eclipse CDT
  • Example: Build a Program From the Command Line
  • Notices and Disclaimers
  • Find More Resources

Specifications

Supported LanguagesC, C++, SYCL
Supported Operating SystemsLinux, Windows
Parallel Programming ModelOpenMP 5.0/5.1
Compiler Drivers (Windows)icx (default), icx-cl (Microsoft-compatible)
SYCL CompilationUse -fsycl option with icpx

Frequently asked questions

Which compiler driver should I use for C++ on Linux?

icpx is the recommended default C++ driver for Linux.

How do I compile a SYCL program with the Intel oneAPI DPC++/C++ Compiler?

Use the -fsycl option with the icpx driver, e.g., icpx -fsycl hello-world.cpp.

Which Visual Studio versions are supported on Windows?

Visual Studio 2022 and Visual Studio 2019 are supported; Community Edition or higher is required for full functionality.

Download PDF (146 KB)

More Intel Manuals


View all Intel manuals →