GPUs are not connected to the CPU's memory management unit; they do not crash pages, such as the CPU. These are block device peripherals controlled by device drivers.
For OpenCL, when you allocate memory on the GPU by creating a cl_mem object and writing (writing) it to the GPU, it will stick until you explicitly get free, with clReleaseMemobject. To reuse a buffer, you do not need to release it and keep track of its Cl_mem object.
source share