Intel® C++ Compiler 16.0 User and Reference Guide
This topic only applies to Intel® 64 and IA-32 architectures targeting Intel® Graphics Technology.
Memory management on the CPU for pointer variables used in offloaded programs is the same as non-offload programs. That is, the offload pragmas do not affect memory allocation and freeing on the CPU. As usual, you, the programmer, must do this.
Memory management on the processor graphics for pointer variables named in in and out clauses of #pragma offload is done automatically by the compiler and runtime system. For the pin clause, the same host memory is reused.
In Shared Virtual Memory (SVM) mode, all data shared with the processor graphics must reside in a buffer allocated with the API function _GFX_svm_alloc . All dereferenced pointers must point to a memory address inside such buffer.