Visible to Intel only — GUID: GUID-F20FE894-ABD5-4965-B7AB-0A1E0B812776
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.