Bitcoin Forum
May 11, 2024, 10:38:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 08, 2011, 01:31:06 AM
I've got this working on my MacBook now.  At first, I got "Permission denied" when I tried to connect so I opened up bitcoin.conf and found that there was only one line in it which was "rpcuser=password" so I fixed it according to the example given in the following link:

https://en.bitcoin.it/wiki/Running_Bitcoin

Now it works.

Using the following for the CPU (Intel(R) Core(TM)2 Duo CPU P7350 @ 2.00GHz):
Code:
python /Applications/poclbm/poclbm.py -u username --pass password -d 1
I get 1.6 Mhash/s which is exactly the same as I get with the Bitcoin GUI client set to generate coin. 

Then using the GPU (GeForce 9400M):
Code:
python /Applications/poclbm/poclbm.py -u username --pass password -d 0
I get 1.4 Mhash/s.  So the CPU is actually better than the GPU on this hardware.  The upside is that the GPU produces much less heat and the fan does not have to go as fast.
2  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 08, 2011, 12:53:30 AM
Those are two separate commands right? Sorry I'm new to this...

Yes. In fact I'm running them in two separate terminal windows. 

The first returns "No such file or directory"

Okay, I see you solved that while I was previewing my reply.

The second returns a sytaxerror: invalid syntax

I'm using the command exactly as you show it and it's working.  Maybe, try and re-type it just to make sure you have it exactly?
3  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 08, 2011, 12:44:35 AM
afingal: I'm sorry you're having problems. I don't have a Mac Pro, but it does seem like it could be an issue with 32 vs. 64-bit. You can try "make clean".

Good luck.

I already tried "make clean" but I haven't tried actually booting into full 64-bit mode, which was another suggestion on the page I referenced earlier.  I'll might try that when I get a chance.  Meanwhile, I now have poclbm working on my MacBook although that's no where near as good as I expect the Mac Pro to be.  I'll post more about that in just a bit. 
4  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 06, 2011, 06:36:21 PM

Thanks afingal I added it. It seems like pyopencl never got installed properly. You could retry the steps:

Code:
curl -o pyopencl.tar.gz http://pypi.python.org/packages/source/p/pyopencl/pyopencl-2011.1beta3.tar.gz#md5=efc633bb5e7a03207fa657a61a12c7af
tar -xzvf pyopencl.tar.gz
cd pyopencl-2011.1beta3
python configure.py
make
sudo make install

If there are any errors you probably need to install XCode.

I tried that and I'm still getting the same error.  Make install is saying stuff like the following (pulling out select lines):

pyopencl 2011.1beta3 is already the active version in easy-install.pth
decorator 3.3.1 is already the active version in easy-install.pth
py 1.4.3 is already the active version in easy-install.pth
pytools 2011.3 is already the active version in easy-install.pth


So... I Googled around a bit, still trying to solve the problem on my own, and found the following:

http://lists.tiker.net/pipermail/pyopencl/2011-April/000612.html

This seems like a good possibility since I am indeed using a Mac Pro. I fumbled around trying things but I think the following are the relevant lines:

Code:
VERSIONER_PYTHON_PREFER_32_BIT=yes # for 32b
VERSIONER_PYTHON_PREFER_32_BIT=yes # for 64b
rm ./siteconf.py
python configure.py
make clean
make
sudo make install

I get the same errors as above. I'm guessing that I need to do some kind of sudo make uninstall command but I'm not sure what.
5  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 06, 2011, 05:02:14 PM
Im getting ~96 Mhash/s on my new 2011 iMac (with a ATI 6970m GPU), using the Diablo GUI published in another thread here. Kind of disappointing low hash rate I think.

Is there reason to believe poclbm would give a higher hash rate?

I arrived here by looking up and down the reported performance at https://en.bitcoin.it/wiki/Mining_hardware_comparison and looking for people who had specifically reported that they were using a Mac.  poclbm gives slightly better performance than Diablo GUI in the one equal comparison on a Mac, though it's not the specific graphics card which I have.  I mainly chose to try and work with poclbm because it seems to be relatively popular.  I should try Diablo as well when I get a chance.  It seems to me, glancing up and down the list, that Mac performance is relatively poor in general.  I don't know why.  It could be configuration issues or it could be a poor complier/interpreter.  I don't know the specifics of the individual cases and this can be a complex thing to figure out because, even if the interpreter for a language like Python is good, it may be calling a module, somewhere down the line, written in some other language where the compiler isn't so great. 
6  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 06, 2011, 04:45:06 PM

Thanks afingal I added it. It seems like pyopencl never got installed properly. You could retry the steps:

Code:
curl -o pyopencl.tar.gz http://pypi.python.org/packages/source/p/pyopencl/pyopencl-2011.1beta3.tar.gz#md5=efc633bb5e7a03207fa657a61a12c7af
tar -xzvf pyopencl.tar.gz
cd pyopencl-2011.1beta3
python configure.py
make
sudo make install

If there are any errors you probably need to install XCode.

I tried that and I'm still getting the same error.  Make install is saying stuff like the following (pulling out select lines):

pyopencl 2011.1beta3 is already the active version in easy-install.pth
decorator 3.3.1 is already the active version in easy-install.pth
py 1.4.3 is already the active version in easy-install.pth
pytools 2011.3 is already the active version in easy-install.pth
7  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 06, 2011, 02:54:58 PM
Okay,  I still haven't got this working.  Now I'm getting:

Traceback (most recent call last):
  File "/Applications/poclbm/poclbm.py", line 3, in <module>
    import pyopencl as cl
  File "/Applications/poclbm/pyopencl/__init__.py", line 3, in <module>
    import pyopencl._cl as _cl
ImportError: No module named _cl

How do I fix that?
8  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 06, 2011, 02:44:01 PM
Something which seems to be missing in the instructions...

I'm got the following:

python: can't open file '/Applications/poclbm/poclbm.py': [Errno 2] No such file or directory

I copied poclbm.py,  along with a bunch of other stuff, which ended up in ~/pyopencl-2011.1beta3/  into /Applications/poclbm/ and that seems to have taken care of the error.

Is there a missing line in the instructions? Should you cd into /Applications/poclbm before doing the steps with curl?

...
mkdir /Applications/poclbm
cd /Applications/poclbm
curl -o BitcoinMiner.cl https://github.com/m0mchil/poclbm/raw/master/BitcoinMiner.cl
...
9  Bitcoin / Mining software (miners) / Re: GPU Mining on OS X Using poclbm on: June 06, 2011, 02:33:31 PM
Hello,

I try to install it on my mac but i get this error so it would not work.

PLZ Help.


localhost:pyopencl-2011.1beta3 XXXXX$ make
-bash: make: command not found
localhost:pyopencl-2011.1beta3 XXXXX$ sudo make install
sudo: make: command not found
localhost:pyopencl-2011.1beta3 XXXXX$ mkdir /Applications/poclbm

Make is part of XCode.  This means that you failed at step 1.  You either skipped it or XCode didn't get installed properly and you should try reinstalling.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!