29f42297a50a71acbdc469c4badd440d2ddfbf3a,finetune/config.py,,all_gpus,#,13
Before Change
Get integer ids of all available GPUs
local_device_protos = device_lib.list_local_devices()
return [
int(x.name.split(":")[-1]) for x in local_device_protos
if x.device_type == "GPU"
]
GridSearchable = namedtuple("GridSearchable", "default iterator")
After Change
sp = subprocess.Popen(["nvidia-smi", "-L"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
response = sp.communicate()[0]
gpu_list = response.decode("utf-8").strip().split("\n")
device_ids = []
for i, gpu in enumerate(gpu_list):
// May be worth logging GPU description
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: IndicoDataSolutions/finetune
Commit Name: 29f42297a50a71acbdc469c4badd440d2ddfbf3a
Time: 2018-09-06
Author: madison@indico.io
File Name: finetune/config.py
Class Name:
Method Name: all_gpus
Project Name: thoughtfulml/examples-in-python
Commit Name: 1e75ad22fab869b1955326dee6aeb369704d8907
Time: 2017-06-13
Author: alexey.porotnikov@gmail.com
File Name: naive_bayes/email_object.py
Class Name: EmailObject
Method Name: body
Project Name: merenlab/anvio
Commit Name: 814f4690fd91416991bc663ffecb7b41e294c467
Time: 2020-06-21
Author: a.murat.eren@gmail.com
File Name: anvio/scgtaxonomyops.py
Class Name: SCGTaxonomyContext
Method Name: __init__