btcrecover
btcrecover copied to clipboard
Coding an automated GPU performance tuning, nothing captures on stdout/stderr, alpha/beta
Running --performance as subprocess, capturing stdout,, and stderr doesnt result in capture of x Kp/s. ideas?
p = subprocess.run(cmd, capture_output=True) #cmd is "python3 btcrecover.py --wallet wallet.dat --enable-gpu --performance --global-ws {from list} --local-ws {from related list}"
time.sleep(3.4)
print(p.stdout, p.stderr) # debugging line, this doesnt contain the GPU perf log. !problem
p.exit()
This doesnt generate anything besides the command list
This is a external solution, ofcourse i could go for an internal implementation I'm not th'e programmer that gets these processes hooked in yet though, Happy to work on that this week or so if you like that more than this whatsitcalled, hack.. bootstrap! solution
I was also trying to get such output to automate testing of performances on different hosts, but halas the "module" showing the performance rate is the modules that handles the display of the "progressbar", and doesnt seem to be captured in outputs (it plays with carriage returns without new-lines)
I think we could put a performance time limit options that prints out the average kP/s at the end.. I'll try to work on it and go a PR