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.
Parent topic: Programming for Intel® Graphics Technology
Inglés