def board_ids():
    """Returns integer board ids available on this machine."""
    from glob import glob
    board_devs = glob(_dev_prefix + '[0-9]*')
    return range(len(board_devs))
Returns integer board ids available on this machine.
cudamat/gpu_lock.py