Bitcoin Forum
October 17, 2017, 05:28:25 PM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Crypto++ 5.6 ?  (Read 1327 times)
j16sdiz
Jr. Member
*
Offline Offline

Activity: 37


View Profile
December 15, 2010, 09:18:06 AM
 #1

I saw you are using a modified cryptopp 5.6.0,  which disable SSE2 on 32-bit x86.

On the official website, there is a newer version 5.6.1 which fix a few SHA-256 related bug. I guess you may be interested:

- fixed several bugs in the SHA-256 x86/x64 assembly code:
--- incorrect hash on non-SSE2 x86 machines on non-aligned input
--- incorrect hash on x86 machines when input crosses 0x80000000
--- incorrect hash on x64 when compiled with GCC with optimizations enabled

1508261305
Hero Member
*
Offline Offline

Posts: 1508261305

View Profile Personal Message (Offline)

Ignore
1508261305
Reply with quote  #2

1508261305
Report to moderator
1508261305
Hero Member
*
Offline Offline

Posts: 1508261305

View Profile Personal Message (Offline)

Ignore
1508261305
Reply with quote  #2

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

Posts: 1508261305

View Profile Personal Message (Offline)

Ignore
1508261305
Reply with quote  #2

1508261305
Report to moderator
1508261305
Hero Member
*
Offline Offline

Posts: 1508261305

View Profile Personal Message (Offline)

Ignore
1508261305
Reply with quote  #2

1508261305
Report to moderator
1508261305
Hero Member
*
Offline Offline

Posts: 1508261305

View Profile Personal Message (Offline)

Ignore
1508261305
Reply with quote  #2

1508261305
Report to moderator
BioMike
Legendary
*
Offline Offline

Activity: 1412


View Profile
December 15, 2010, 09:25:25 AM
 #2

For the gentoo ebuild I have been using the original thing for some time now (Gentoo policy is not to use bundled libs, as they are a security hazard). No problems encountered in more then a half year.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
December 16, 2010, 04:13:55 AM
 #3


This patch updates part of Crypto++ in bitcoin to upstream:
http://yyz.us/bitcoin/patch.bitcoin-asmfix1


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
j16sdiz
Jr. Member
*
Offline Offline

Activity: 37


View Profile
December 16, 2010, 01:49:40 PM
 #4

I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s


Here is the patch to use system-provided cryptopp (if available, with fallback)
https://github.com/j16sdiz/bitcoin-pool/commit/121a0a570bed15fc347cff091e740a02bd8e1a3f
BioMike
Legendary
*
Offline Offline

Activity: 1412


View Profile
December 16, 2010, 02:09:57 PM
 #5

I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s


Here is the patch to use system-provided cryptopp (if available, with fallback)
https://github.com/j16sdiz/bitcoin-pool/commit/121a0a570bed15fc347cff091e740a02bd8e1a3f

That's quite a difference.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1470


View Profile
December 16, 2010, 07:50:38 PM
 #6

I have patched the  "bitcoinr" to use system provided crypto, here is the result:

CPU:  Premium III Mobile  (yes, i know this is very very old)
Compiled with gcc 4.4,  -O3 -msse

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s

Out of curiosity, what speed do you get from various algorithms in the CPU miner?  That also uses Crypto++ code.

Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
j16sdiz
Jr. Member
*
Offline Offline

Activity: 37


View Profile
December 20, 2010, 12:17:07 AM
 #7

the cryptopp 5.6.0 in bitcoinr tree:   133khash/s
the cryptopp 5.6.1 (provided in debian):   200khash/s

Sorry, I was mixing up some binaries. The improvement was not that great. -- in fact, that was statistically insignificant.
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!