Programming Guide

Contents

CPU Flow

DPC++ supports online and offline compilation modes for the CPU target. Online compilation is the same as for all other targets.

Online Compilation for CPU

No specifics for CPU target. The command below produces a fat binary with a SPIR-V image, which can be run with online compilation on any compatible device, including a CPU.
dpcpp a.cpp b.cpp -o app.out

Offline Compilation for CPU

This is an experimental feature with limited functionality.
Use this command to produce
app.out
, which only runs on an x86 device.
dpcpp -fsycl-targets=spir64_x86_64-unknown-linux-sycldevice a.cpp b.cpp -o app.out

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.