def opencl():
    '''
        Determine some system information about the installed OpenCL device.
    '''
    result = []
    try:
        import pyopencl as ocl
        for plt in ocl.get_platforms():
            result.append("Platform: " + platform.name)
            for device in plt.get_devices():
                result.append("    Device:" + device.name.strip())
                infoset = [key for key in dir(device) if not key.startswith(
                    "__") and key not in ["extensions", "name"]]
                for attr in infoset:
                    try:
                        result.append("        %s: %s" % (
                            attr.strip(), getattr(device, attr).strip()))
                    except Exception:
                        pass
        return "\n".join(result)
    except Exception:
        return ""
Determine some system information about the installed OpenCL device.