Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #63 from JasonLunn/master

Workaround for standard strictness enforcement on OS X
  • Loading branch information...
commit 2ae15b77df1d17d2ec2748673ba2e8e0a01891c5 2 parents db895b0 + 3533770
@m0mchil authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 OpenCLMiner.py
View
8 OpenCLMiner.py
@@ -1,3 +1,4 @@
+from detect import MACOSX
from Miner import Miner
from Queue import Empty
from hashlib import md5
@@ -32,6 +33,11 @@
except Exception:
print '\nNo OpenCL\n'
+def vectors_definition():
+ if MACOSX:
+ return '-D VECTORS'
+ return '-DVECTORS'
+
def is_amd(platform):
if 'amd' in platform.name.lower():
return True
@@ -149,7 +155,7 @@ def nonce_generator(self, nonces):
def mining_thread(self):
say_line('started OpenCL miner on platform %d, device %d (%s)', (self.options.platform, self.device_index, self.device_name))
- (self.defines, rate_divisor, hashspace) = ('-DVECTORS', 500, 0x7FFFFFFF) if self.vectors else ('', 1000, 0xFFFFFFFF)
+ (self.defines, rate_divisor, hashspace) = (vectors_definition(), 500, 0x7FFFFFFF) if self.vectors else ('', 1000, 0xFFFFFFFF)
self.defines += (' -DOUTPUT_SIZE=' + str(self.output_size))
self.defines += (' -DOUTPUT_MASK=' + str(self.output_size - 1))
Please sign in to comment.
Something went wrong with that request. Please try again.