Visible to Intel only — GUID: GUID-650441ED-C14E-42F2-A53F-9AFE2955B20B
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.