Skip to content
Browse files

--device is a global option

  • Loading branch information...
1 parent 03b806a commit 6ca7c6da1db13eee9f5ae4066f1e807306b52c92 @m0mchil committed
Showing with 2 additions and 2 deletions.
  1. +2 −2
@@ -25,13 +25,14 @@ def socketwrap(family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0):
parser.add_option('--proxy', dest='proxy', default='', help='specify as [[socks4|socks5|http://]user:pass@]host:port (default proto is socks5)')
parser.add_option('--no-ocl', dest='no_ocl', action='store_true', help="don't use OpenCL")
parser.add_option('--no-bfl', dest='no_bfl', action='store_true', help="don't use Butterfly Labs")
+parser.add_option('-d', '--device', dest='device', default=[], help='comma separated device IDs, by default will use all (for OpenCL - only GPU devices)')
group = OptionGroup(parser, "Miner Options")
group.add_option('-r', '--rate', dest='rate', default=1, help='hash rate display interval in seconds, default=1 (60 with --verbose)', type='float')
group.add_option('-e', '--estimate', dest='estimate', default=900, help='estimated rate time window in seconds, default 900 (15 minutes)', type='int')
group.add_option('-t', '--tolerance', dest='tolerance', default=2, help='use fallback pool only after N consecutive connection errors, default 2', type='int')
group.add_option('-b', '--failback', dest='failback', default=60, help='attempt to fail back to the primary pool after N seconds, default 60', type='int')
-group.add_option('--cutoff-temp', dest='cutoff_temp',default=[], help='(for OpenCL requires temperature at which to skip kernel execution, in C, default=95')
+group.add_option('--cutoff-temp', dest='cutoff_temp',default=[], help='(for OpenCL requires comma separated temperatures at which to skip kernel execution, in C, default=95')
group.add_option('--cutoff-interval', dest='cutoff_interval',default=[], help='how long to not execute calculations if CUTOFF_TEMP is reached, in seconds, default=0.01')
group.add_option('--no-server-failbacks', dest='nsf', action='store_true', help='disable using failback hosts provided by server')
@@ -43,7 +44,6 @@ def socketwrap(family=socket.AF_INET, type=socket.SOCK_STREAM, proto=0):
"Use --vv to specify per-device vectors usage."
group.add_option('-p', '--platform', dest='platform', default=-1, help='use platform by id', type='int')
-group.add_option('-d', '--device', dest='device', default=[], help='device ID, by default will use all GPU devices')
group.add_option('-w', '--worksize', dest='worksize', default=[], help='work group size, default is maximum returned by OpenCL')
group.add_option('-f', '--frames', dest='frames', default=[], help='will try to bring single kernel execution to 1/frames seconds, default=30, increase this for less desktop lag')
group.add_option('-s', '--sleep', dest='frameSleep', default=[], help='sleep per frame in seconds, default 0')

0 comments on commit 6ca7c6d

Please sign in to comment.
Something went wrong with that request. Please try again.