Bitcoin Forum
April 18, 2024, 06:57:12 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Scrypt GPU-hostile / CPU-friendly  (Read 1367 times)
Frodek (OP)
Member
**
Offline Offline

Activity: 138
Merit: 25


View Profile
May 13, 2012, 09:31:47 AM
 #1

I search code for generating hash GPU-hostile / CPU-friendly.
I found two:
https://github.com/Lolcust/Tenebrix-miner
https://github.com/ArtForz/cpuminer
Generators are the same and ArtForz is faster, or ArtForz is for bitcoin, and Lolcust for Solidcoin,Litecoin?
Which is the main .c file containing algorithm?
Are sample generated hash , for example hash for "abcd" to ensure my implementation is correct?
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713466632
Hero Member
*
Offline Offline

Posts: 1713466632

View Profile Personal Message (Offline)

Ignore
1713466632
Reply with quote  #2

1713466632
Report to moderator
1713466632
Hero Member
*
Offline Offline

Posts: 1713466632

View Profile Personal Message (Offline)

Ignore
1713466632
Reply with quote  #2

1713466632
Report to moderator
1713466632
Hero Member
*
Offline Offline

Posts: 1713466632

View Profile Personal Message (Offline)

Ignore
1713466632
Reply with quote  #2

1713466632
Report to moderator
gmaxwell
Staff
Legendary
*
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
May 13, 2012, 05:36:21 PM
 #2

I search code for generating hash GPU-hostile / CPU-friendly.
I found two:
https://github.com/Lolcust/Tenebrix-miner
https://github.com/ArtForz/cpuminer
Generators are the same and ArtForz is faster, or ArtForz is for bitcoin, and Lolcust for Solidcoin,Litecoin?
Which is the main .c file containing algorithm?
Are sample generated hash , for example hash for "abcd" to ensure my implementation is correct?

Scrypt is not really "Scrypt GPU-hostile".  Please direct your attention to the scrypt paper.  Scrypt is designed to use more of the large fast drams that desktop computers have so that attackers with asic farms get less speedup over desktop computers built on the same asic process.  GPUs, however, also have lots of very fast dram and there now exists fairly fast gpu implementations of scrypt.
etotheipi
Legendary
*
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
May 13, 2012, 08:11:29 PM
 #3

... GPUs, however, also have lots of very fast dram and there now exists fairly fast gpu implementations of scrypt.

Scrypt was designed to be able to customize the the memory-per-thread requirement.  A quad-core CPU using its 8GB of RAM has 2 GB/core.  A GPU with 2 GB of RAM for 1600 cores has only 1-2 MB/core. 

The goal of scrypt was to be able to tailor the computational problem to disarm massively-parallel processors from being able to execute too many threads simultaneously.  I don't know what exactly the designer had in mind, but I bet GPUs were considered.  And it will be a long time before that gap is closed, if ever.

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
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!