Intel® C++ Compiler 18.0 Developer Guide and Reference

Writing Target-Specific Code for Intel® Graphics Technology

This topic only applies when targeting Intel® Graphics Technology.

You can write functions that you intend to run on a target, and sections of offloaded code, to take advantage of target-specific intrinsic functions.

When the compiler generates code for the processor graphics, it defines the macro __GFX__. You can write target-specific code within an #ifdef __GFX__ section.

Note

Do not use the __GFX__ macro inside the statement following a #pragma offload statement. You can, however, use this macro in a subprogram called from the pragma.