def obtain_lock_id_to_hog():
    for id in board_ids():
        if _obtain_lock(id):
            return id
    return -1
Finds a free id, locks it and returns integer id, or -1 if none free.
dataset/ETHPy150Open nitishsrivastava/deepnet/cudamat/gpu_lock2.py/obtain_lock_id_to_hog