Bitcoin Forum
November 15, 2024, 02:22:41 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Scrypt GPU-hostile / CPU-friendly  (Read 1391 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?
gmaxwell
Staff
Legendary
*
Offline Offline

Activity: 4284
Merit: 8808



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!