Intel® Graphic Technology is a supported part of the compiler product. Developers should adhere to the programming guidelines in order to benefit from the compiler and GT features efficiently.
1."#pragma offload target(gfx)" is required to mark the parallel loop as an "offload region". The "__declspec(target(gfx))" does not do that. It merely states that the function should be compiled to run on the GFX target.
For example, the following incorrect code snippet use is from a customer: