def build_alloc_info(data):
    """
    Use the __cuda_array_interface__ to extract cpointer
    information for passing into cython.
    :param data:
    :return:
    """
    dev, gpu_matrix, _ = data
    return gpu_matrix.__cuda_array_interface__
