Bitcoin Forum
May 06, 2024, 12:07:55 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Poclbm/Phatk speedup!  (Read 849 times)
LOG123 (OP)
Full Member
***
Offline Offline

Activity: 153
Merit: 100


...


View Profile
September 01, 2011, 04:02:31 PM
Last edit: September 01, 2011, 05:14:10 PM by LOG123
 #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
1714997275
Hero Member
*
Offline Offline

Posts: 1714997275

View Profile Personal Message (Offline)

Ignore
1714997275
Reply with quote  #2

1714997275
Report to moderator
1714997275
Hero Member
*
Offline Offline

Posts: 1714997275

View Profile Personal Message (Offline)

Ignore
1714997275
Reply with quote  #2

1714997275
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714997275
Hero Member
*
Offline Offline

Posts: 1714997275

View Profile Personal Message (Offline)

Ignore
1714997275
Reply with quote  #2

1714997275
Report to moderator
1714997275
Hero Member
*
Offline Offline

Posts: 1714997275

View Profile Personal Message (Offline)

Ignore
1714997275
Reply with quote  #2

1714997275
Report to moderator
1714997275
Hero Member
*
Offline Offline

Posts: 1714997275

View Profile Personal Message (Offline)

Ignore
1714997275
Reply with quote  #2

1714997275
Report to moderator
LOG123 (OP)
Full Member
***
Offline Offline

Activity: 153
Merit: 100


...


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

bump so people can see this  Grin
LOG123 (OP)
Full Member
***
Offline Offline

Activity: 153
Merit: 100


...


View Profile
September 02, 2011, 04:33:04 PM
Last edit: September 02, 2011, 06:48:34 PM by LOG123
 #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: 125
Merit: 100


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 (OP)
Full Member
***
Offline Offline

Activity: 153
Merit: 100


...


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: 125
Merit: 100


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:  

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