Visible to Intel only — GUID: GUID-706D1776-2F75-4635-9498-8F8B9B10E00A
Ahead-of-Time Compilation for GPU
The following example command produces app.out for a specific GPU target:
For DPC++:
icpx -fsycl-targets=spir64_gen -Xs "-device <device name>" a.cpp b.cpp -o app.out
For OpenMP*offload:
icpx -fiopenmp -fopenmp-targets=spir64_gen -Xopenmp-target-backend "-device <device name>" a.cpp b.cpp -o app.out
A list of allowed values for the device name are available from the Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference.