Bitcoin Forum
May 09, 2024, 09:14:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 »  All
  Print  
Author Topic: GPU Mining on OS X Using poclbm  (Read 78735 times)
taykaypee
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
June 08, 2011, 12:34:19 AM
 #21

Ahhh Bitcoin wasn't in my Applications directory. Now the first returns:


[2] 1008
[1]   Exit 127                /Applications/Bitcoin.app/Contents/MacOS/bitcoin -server

And the app opens in my dock


but the second line is still a syntax error.
1715289280
Hero Member
*
Offline Offline

Posts: 1715289280

View Profile Personal Message (Offline)

Ignore
1715289280
Reply with quote  #2

1715289280
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715289280
Hero Member
*
Offline Offline

Posts: 1715289280

View Profile Personal Message (Offline)

Ignore
1715289280
Reply with quote  #2

1715289280
Report to moderator
1715289280
Hero Member
*
Offline Offline

Posts: 1715289280

View Profile Personal Message (Offline)

Ignore
1715289280
Reply with quote  #2

1715289280
Report to moderator
1715289280
Hero Member
*
Offline Offline

Posts: 1715289280

View Profile Personal Message (Offline)

Ignore
1715289280
Reply with quote  #2

1715289280
Report to moderator
afingal
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 08, 2011, 12:44:35 AM
 #22

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. 
afingal
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 08, 2011, 12:53:30 AM
 #23

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?
taykaypee
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
June 08, 2011, 12:54:48 AM
 #24

bnh096:~ xxxx$  /Applications/poclbm/poclbm.py -u username --pass password -d
-bash: /Applications/poclbm/poclbm.py: Permission denied
bnh096:~ xxxx$


xxxx is my computer name


Kermee
Full Member
***
Offline Offline

Activity: 154
Merit: 100



View Profile
June 08, 2011, 01:00:13 AM
 #25

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?

Running guiminer on Bootcamp'ed Windows 7 x64 on a Mid-2010 iMac (ATI 5850M GPU), I was getting ~128 Mh/s.  ATI 6970M should be at least 50% faster if not more.

Just make sure you up the fans and keep GPU-z running to monitor GPU temps but at 98% load, my GPU's were around 68C.

Cheers,
Kermee
rethaw (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
June 08, 2011, 01:01:50 AM
 #26

You need to put "python" in front of the line you entered.

taykaypee
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
June 08, 2011, 01:21:00 AM
 #27

The reason I took it out is because this:


bnh096:~ xxxx$ python /Applications/poclbm/poclbm.py -u username --pass password -d 0
  File "/Applications/poclbm/poclbm.py", line 1
    <html><body>You are being <a href="https://raw.github.com/m0mchil/poclbm/master/poclbm.py">redirected</a>.</body></html>
    ^
SyntaxError: invalid syntax
afingal
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
June 08, 2011, 01:31:06 AM
 #28

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.
taykaypee
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
June 08, 2011, 05:40:55 AM
 #29

host-103-84:~ xxxx$ rpcuser=taykaypee
host-103-84:~ xxxx$ rpcpassword=yyyy
host-103-84:~ adiep$ python /Applications/poclbm/poclbm.py -u username --pass password -d 0
  File "/Applications/poclbm/poclbm.py", line 1
    <html><body>You are being <a href="https://raw.github.com/m0mchil/poclbm/master/poclbm.py">redirected</a>.</body></html>
    ^
SyntaxError: invalid syntax



where xxxx is the name of my computer admin and yyyy is a password. Sorry, I don't understand, I'm new to this >< what am i doing wrong?
woodguy00
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 08, 2011, 03:26:55 PM
 #30

I'm getting the same error:

  File "/Applications/poclbm/poclbm.py", line 1
    <html><body>You are being <a href="https://raw.github.com/m0mchil/poclbm/master/poclbm.py">redirected</a>.</body></html>
    ^
SyntaxError: invalid syntax

When I open the BitcoinMiner.py file with BBEdit, there is only a single line in the file:
<html><body>You are being <a href="https://raw.github.com/m0mchil/poclbm/master/BitcoinMiner.py">redirected</a>.</body></html>

Is this what should be in the BitcoinMiner.py file? How to fix?
woodguy00
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 08, 2011, 03:50:12 PM
 #31

Making some progress --

Apparently the https://github.com/.... links redirect to https://raw.github.com/..... so I modified the curl commands accordingly. Now I have real stuff in all 4 files under /Applications/poclbm

When I run the first command:
/Applications/Bitcoin.app/Contents/MacOS/bitcoin -server &
the Bitcoin application starts up and I can see the application running in another window. Seems OK.

When I run the second command in the terminal window:
python /Applications/poclbm/poclbm.py -u xxxxxx --pass yyyyy -d 0
I get the following line:
Bitcoin is not connected!
The terminal prompt does not return, and the Activity Monitor shows no significant process is running in the background.

Now what?
enewhuis
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 08, 2011, 06:37:40 PM
 #32

I saw that on my setup too.  I think the bitcoin.conf file settings aren't correct.

When mine contains only "rpcuser=password" the Bitcoin client works but I cannot connect my local python miner.  When I supply some other rpcuser and rpcpassword I can connect but Bitcoin client won't find any peers.


When I run the second command in the terminal window:
python /Applications/poclbm/poclbm.py -u xxxxxx --pass yyyyy -d 0
I get the following line:
Bitcoin is not connected!
The terminal prompt does not return, and the Activity Monitor shows no significant process is running in the background.

Now what?
enewhuis
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 08, 2011, 07:02:21 PM
 #33

I got it to work but putting these three values in my bitcoin.conf.

server=1
rpcuser=enewhuis
rpcpassword=drummerz

I then started the Bitcoin client and ran

e-2:poclbm en$ python /Applications/poclbm/poclbm.py -u enewhuis --pass drummerz -d 0
3736 khash/s   

Dismal 3.7 Mhash/s tho, but this is a mere MacBook Pro.
woodguy00
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 08, 2011, 07:29:58 PM
 #34

Thanks for the reply.

I tried the changes you made to the bitcoin.conf -- only those 3 lines (but with my username and password, of course)

Still getting the "Bitcoin is not connected!" message.  Hmmmm....

Running a Mac Pro 2.66GHz Quad-Core Xeon, OSX 10.6.7.
rethaw (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
June 09, 2011, 04:16:28 AM
Last edit: June 09, 2011, 04:32:21 AM by rethaw
 #35

Thanks, I fixed the error, I had put rpcuser twice in the original post and github does seem to redirect to a subdomain.

If you are having trouble getting Bitcoin connected to other nodes I suggest checking out https://en.bitcoin.it/wiki/Fallback_Nodes.

You can add a fallback node by entering:

Code:
echo "addnode=69.164.218.197" > ~/Library/Application\ Support/Bitcoin/bitcoin.conf

Check out the link for other Fallback Nodes. That being said it may be an issue with your firewall blocking either the bitcoin or irc ports.

I strongly suggest giving pooled mining a try though. The variance on payback is greatly reduced. The one I use is http://mining.bitcoin.cz. Once you have set up a worker you enter:

Code:
python /Applications/poclbm/poclbm.py -u xxxx --pass xxxx -d 0 -o mining.bitcoin.cz

HongPong
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
June 09, 2011, 04:39:16 AM
 #36

After I got around those old curl urls, this worked like a charm! ATI Radeon HD5770 on old Mac Pro chuggin away at around 100Mhash/sec. The GPU is about 20x faster than the CPU! Works perfectly, huge hat tip!  Cool
rethaw (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
June 09, 2011, 04:51:46 AM
 #37

Awesome, are you doing pooled or solo?

t0ny
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 09, 2011, 06:14:30 AM
 #38

Quote
echo "rpcuser=username" > ~/Library/Application\ Support/Bitcoin/bitcoin.conf
echo "rpcpassword=password" > ~/Library/Application\ Support/Bitcoin/bitcoin.conf

The > should be >>. A single a > replaces the file while a  >> adds to it.
rethaw (OP)
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
June 09, 2011, 06:17:39 AM
 #39

Thanks t0ny, fixed.

runawayjim
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 09, 2011, 05:54:45 PM
 #40

I got everything working, and I'm only pulling in 2800kH/s on my mid-2009 MBP.  Is that to be expected with the GeForce 9600M GT inside it?
Pages: « 1 [2] 3 4 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!