Visible to Intel only — GUID: GUID-89DA4D51-48E2-4DED-A3F7-15D9C4621958
Ahead-of-Time Compilation for GPU
The following example command produces app.out for a specific GPU target:
For DPC++:
icpx -fsycl -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.