Is there a way to check for the free memory avaiable? The comand clGetDeviceInfo whith the parameter CL_DEVICE_GLOBAL_MEM_SIZE just returns the total memory, not the avaiable memory. I know that cuMemGetInfo return this value so it should be avaiable in OpenCL too.