gaussian + advanced ocl memory management