Bitcoin Forum

Bitcoin => Mining => Topic started by: digimag on March 01, 2011, 11:33:23 PM



Title: poclbm fails on mac os x
Post by: digimag on March 01, 2011, 11:33:23 PM
Hello,

It seems like I'm the only one having an Apple computer here. Am I wrong?

Here are my error messages:

Code:
$ ./poclbm.py -d 0
Traceback (most recent call last):
  File "./poclbm.py", line 55, in <module>
    options.verbose)
  File "/[…]/m0mchil-poclbm-6bbc198/BitcoinMiner.py", line 116, in __init__
    self.miner = cl.Program(self.context, [device], [binaryFile.read()]).build(defines)
pyopencl.LogicError: clCreateProgramWithBinary failed: invalid value

$ ./poclbm.py -d 1
Traceback (most recent call last):
  File "./poclbm.py", line 55, in <module>
    options.verbose)
  File "/[…]/m0mchil-poclbm-6bbc198/BitcoinMiner.py", line 116, in __init__
    self.miner = cl.Program(self.context, [device], [binaryFile.read()]).build(defines)
pyopencl.LogicError: clCreateProgramWithBinary failed: invalid value

Additional info:

Code:
$ ./poclbm.py 
No device specified or device not found, use -d to specify one of the following

[0] GeForce 320M
[1] Intel(R) Core(TM)2 Duo CPU     L9400  @ 1.86GHz

Is there any alternative to poclbm?

Thanks!


Title: Re: poclbm fails on mac os x
Post by: planalpha on March 02, 2011, 05:13:15 AM
Mac noob here, too. I've been using Diablo with some success. Get it here:
http://bitcointalk.org/index.php?topic=1721.0

Works with deepbit.net. But it dies all of the time. I'm not sure if it's the app or the pool because all of my Mac's Diablo instances die at the same time. Bitcoin-miner.exe on my thinkpad doesn't die.

Still tweaking...

Goodluck.


Title: Re: poclbm fails on mac os x
Post by: M4v3R on March 02, 2011, 05:44:08 AM
Digimag: I also had these problems with poclbm. It seems that it creates an .elf binary with every run, and there is something wrong with it. Just delete the binary (rm *.elf) BEFORE you run it and it'll be fine.


Title: Re: poclbm fails on mac os x
Post by: planalpha on March 02, 2011, 05:53:28 AM
If you do get it running let us know how and if it performs better than Diablo.

Thanks!


Title: Re: poclbm fails on mac os x
Post by: digimag on March 02, 2011, 11:35:25 AM
Digimag: I also had these problems with poclbm. It seems that it creates an .elf binary with every run, and there is something wrong with it. Just delete the binary (rm *.elf) BEFORE you run it and it'll be fine.

It worked for me! Thanks :)

If you do get it running let us know how and if it performs better than Diablo.

Unfortunately it doesn't. DiabloMiner performs at around 5 Mhash/s and poclbm at 3 Mhash/s.

DiabloMiner wins on a MacBook Air!


Title: Re: poclbm fails on mac os x
Post by: FnuGk on March 02, 2011, 02:23:27 PM
i am on a 2010 13"mbp with a 2.4 c2d and 320m

i get about 3900-4200khash/s with diablo on the gpu and about 1400 using the built in cpu miner in bitcoin

are others with the same model getting? how does it compare to the new 2011 models? post away :)


Title: Re: poclbm fails on mac os x
Post by: m0mchil on March 02, 2011, 04:31:40 PM
Just fixed it to avoid this specific problem on Macs.