def add_device_context(dev, ctx, que):
    """
    Add a new device to arrayfire opencl device manager

    Parameters
    ----------

    dev : cl_device_id

    ctx : cl_context

    que : cl_command_queue

    """
    import ctypes as ct
    from .util import safe_call as safe_call
    from .library import backend
    if backend.name() != 'opencl':
        raise RuntimeError('Invalid backend loaded')
    safe_call(backend.get().afcl_add_device_context(dev, ctx, que))
