Bitcoin Forum
December 05, 2016, 08:45:40 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Poclbm/Phatk speedup!  (Read 684 times)
LOG123
Full Member
***
Offline Offline

Activity: 151


...


View Profile
September 01, 2011, 04:02:31 PM
 #1

I've heard some people are getting quite a few coins from hacks like this, so, here goes.

I've found that if you go into your poclbm kernel.cl (only tested on mine  Grin) and change
Code:
#define Ma2(x, y, z) ((y & z) | (x & (y | z)))
To
Code:
#define Ma2(x, y, z) amd_bytealign((z^y), (x), (y))
I get a ~3mhash speedup!
all of my hashes are getting accepted, so I don't know if there are any problems Tongue
My bitcoin address is
Code:
1M8Av4rzfyMMMrP5nqUmmhKHhZKB1U7Zux
Feel free to donate if this works for you  Grin

1480970740
Hero Member
*
Offline Offline

Posts: 1480970740

View Profile Personal Message (Offline)

Ignore
1480970740
Reply with quote  #2

1480970740
Report to moderator
1480970740
Hero Member
*
Offline Offline

Posts: 1480970740

View Profile Personal Message (Offline)

Ignore
1480970740
Reply with quote  #2

1480970740
Report to moderator
1480970740
Hero Member
*
Offline Offline

Posts: 1480970740

View Profile Personal Message (Offline)

Ignore
1480970740
Reply with quote  #2

1480970740
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
LOG123
Full Member
***
Offline Offline

Activity: 151


...


View Profile
September 02, 2011, 03:29:20 PM
 #2

bump so people can see this  Grin

LOG123
Full Member
***
Offline Offline

Activity: 151


...


View Profile
September 02, 2011, 04:33:04 PM
 #3

I just want to point out that the poster did not find this, rethaw did, and detailed it in his post here:

http://bitcointalk.org/index.php?topic=23067.0

So if you are going to donate to anyone, I'd say let it go to the person that originally discovered this.

I might be wrong about this, but I'm pretty sure a lot of updated miner's have already incorporated this as well, but check for yourself, rethaw's instructions are pretty detailed.

I have been running with the modification myself for about a month, no different in stales but a slight bump in MH/S

--------------EDIT-----------------

So I might be wrong about who originally came up with this, because the post referenced to in the one I linked is by someone else again, but anyway, this has been documented before.

If you actually looked at what I did, it's  different from that other modification. I'm not even sure if it really increases speed, or if I'm just having a lucky day with my miner Tongue
I changed
Code:
#define Ma2(x, y, z) ((y & z) | (x & (y | z)))
to
Code:
#define Ma2(x, y, z) amd_bytealign((z^y), (x), (y))

The other modification is
Code:
 #define Ma(x, y, z) amd_bytealign((y), (x | z), (z & x))
Code:
  #define Ma(x, y, z) amd_bytealign( (z^x), (y), (x) )
EDIT: Leaving this up so nobody asks the same thing again

echris1
Full Member
***
Offline Offline

Activity: 124


View Profile
September 02, 2011, 06:17:21 PM
 #4

Oops, sorry about that, yeah I do feel a bit foolish now, guess that is why I never got into any kind of coding, lack of attention to detail =)

Anyway, I deleted my post, sorry again.

LOG123
Full Member
***
Offline Offline

Activity: 151


...


View Profile
September 02, 2011, 06:28:06 PM
 #5

That's alright  Grin
Also, have you tried this tweak? And has it improved your mhash rate at all?

echris1
Full Member
***
Offline Offline

Activity: 124


View Profile
September 02, 2011, 07:06:45 PM
 #6

I am using phatk2, which doesn't seem to have that line in it.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!