def owner_of_lock(id):
    import pwd
    try:
        statinfo = os.lstat(_lock_file(id))
        return pwd.getpwuid(statinfo.st_uid).pw_name
    except:
        return ""
Username that has locked the device id. (Empty string if no lock).
dataset/ETHPy150Open nitishsrivastava/deepnet/cudamat/gpu_lock2.py/owner_of_lock