OpenCL force buffer to stay on the GPU -
is there way force opencl keep data in global memory buffer on chip (i.e. never gets swapped out system memory)? want reserve portion of gpu's memory own needs, , want data put there remain on gpu regardless of whether other applications start saturating gpu's memory.
thanks!
gpu's aren't linked cpus memory management unit, don't page faults cpu. block device peripherals controlled device drivers.
for opencl when allocate memory on gpu creating cl_mem object , enqueueing (writing) gpu stick around until explicitly release clreleasememobject. reuse buffer need not release , keep track of cl_mem object.
Comments
Post a Comment