Checking memory and using the right cl::Device::getInfo().