Permalink
Browse files

list BFL devices (ports actually)

  • Loading branch information...
1 parent b9140c3 commit 6c694c347fb92a8b22e0767ed11b0e6034d4a71f @m0mchil committed Nov 9, 2012
Showing with 8 additions and 1 deletion.
  1. +6 −0 BFLMiner.py
  2. +2 −1 OpenCLMiner.py
View
@@ -46,6 +46,12 @@ def check(port, likely=True):
def initialize(options):
ports = find_udev(check, 'BitFORCE*SHA256') or find_serial_by_id(check, 'BitFORCE_SHA256') or find_com_ports(check)
+
+ if not options.device and ports:
+ print '\nBFL devices on ports:\n'
+ for i in xrange(len(ports)):
+ print '[%d]\t%s' % (i, ports[i])
+
miners = [
BFLMiner(i, ports[i], options)
for i in xrange(len(ports))
View
@@ -79,7 +79,8 @@ def initialize(options):
devices = platforms[options.platform].get_devices()
- if not options.device:
+ if not options.device and devices:
+ print '\nOpenCL devices:\n'
for i in xrange(len(devices)):
print '[%d]\t%s' % (i, devices[i].name)
print '\nNo devices specified, using all GPU devices\n'

0 comments on commit 6c694c3

Please sign in to comment.