Bitcoin Forum
November 07, 2024, 08:35:37 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 »
  Print  
Author Topic: New demonstration CPU miner available  (Read 386311 times)
jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
November 29, 2010, 05:31:36 PM
Last edit: November 29, 2010, 05:55:56 PM by jgarzik
 #41

Just pushed out v0.2.1 to cpuminer.git, and updated the Windows installer:
http://yyz.us/bitcoin/cpuminer-installer-0.2.1.zip

SHA1: d85390e1bb4da94b84f0968d0c98590f4be22f39  cpuminer-installer-0.2.1.zip
MD5: 02bcd0b22fa62499e96244ebd86efcd5  cpuminer-installer-0.2.1.zip

Windows users should see a slight increase in khash/sec, due to improved optimization.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Cdecker
Hero Member
*****
Offline Offline

Activity: 489
Merit: 505



View Profile WWW
December 03, 2010, 05:32:36 PM
 #42

I wonder what this might mean:
Quote
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
./configure: line 4305: syntax error near unexpected token `LIBCURL_CHECK_CONFIG'
./configure: line 4305: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'

Any ideas?

Want to see what developers are chatting about? http://bitcoinstats.com/irc/bitcoin-dev/logs/
Bitcoin-OTC Rating
jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 03, 2010, 06:32:35 PM
 #43

I wonder what this might mean:
Quote
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
./configure: line 4305: syntax error near unexpected token `LIBCURL_CHECK_CONFIG'
./configure: line 4305: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'

Any ideas?

autogen.sh did not find the necessary libcurl autoconf magic to build your configure script.  Thus, instead of transforming the macro LIBCURL_CHECK_CONFIG into something useful, it left it as-is.

So, your libcurl install is missing some pieces (or autogen.sh cannot find them).

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
prometheus
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 04, 2010, 04:01:57 AM
 #44

Fantastic work.  Are you able to get the 4way algorithm into the main client?  It performs twice as well as the main client's algorithm on intel hardware, and seems to be working terrific on the AMD hardware.
jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 04, 2010, 05:42:58 AM
 #45

Fantastic work.  Are you able to get the 4way algorithm into the main client?  It performs twice as well as the main client's algorithm on intel hardware, and seems to be working terrific on the AMD hardware.

4way is in the main client already -- albeit Linux-only, if I understand correctly.  That's an open project for someone to tackle, if they're interested.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 06, 2010, 07:38:23 AM
 #46

Version 0.2.2 released:
- VIA padlock works (lfm)
- minor bug fixes (lfm)

SHA1: b7ffda89f3b76302b948a715905105b4cf0c080f  cpuminer-installer-0.2.2.zip
MD5: 716f883b92e93082e2dfa9a3130972cb  cpuminer-installer-0.2.2.zip

See top of thread for URLs.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
lfm
Full Member
***
Offline Offline

Activity: 196
Merit: 104



View Profile
December 06, 2010, 10:58:39 AM
Last edit: December 06, 2010, 12:15:00 PM by lfm
 #47

note if you wanted to do a full difficulty test rather than returning the preliminary "proof of work" to the server, its not hard, I think this would work:

Code:
/* do full difficulty test of hash */

#define OFF 75

int fulltest(void * block, void *hash)
{
  unsigned char *blk = block;  // 80 bytes
  unsigned char *hsh = hash;   // 32 bytes
  int i;
  int shift = blk[OFF] - 2;

  for (i = 31; i > shift && i >= 0; i--)
    if (hsh[i] != 0)
      return 0;

  if (shift < 32)
    for (i = 0; i < 3 && shift >= i; i++) {
      if (hsh[shift - i] > blk[OFF - 1 - i])
        return 0;
      if (hsh[shift - i] < blk[OFF - 1 - i])
        return 1;
    }

  return 1;
}
jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 07, 2010, 01:27:27 AM
 #48

A test version of cpuminer, with crypto++ 32-bit assembly implementation, has been pushed out to git, and a test installer for Windows uploaded at http://yyz.us/bitcoin/cpuminer-installer-0.2.2test.zip

SHA1: c105454954b63c4f846ced958b553c87182b88e5  cpuminer-installer-0.2.2test.zip
MD5: ce5fd9d17167080892b8d9c06f582660  cpuminer-installer-0.2.2test.zip

I'm interested if this works at all.  Should be faster for Windows users than the current Crypto++ implementation, I'm guessing.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
December 07, 2010, 01:46:47 AM
 #49

Quote
I'm interested if this works at all.
it does, installs and runs nice as usual,
on my PhenomII X3 it's
slightly faster using 'c' 1070khash/s (+50)
but slower using '4way' 1440khash/s (-960), which is also the case in version 0.2.2, haven't tested that one before.

so, with 0.2.1 '4way' i get 2400,
0.2.2-0.2.2test '4way' i get 1440.

you broke it.  Cry    Wink
    
and yes, it's all single threads.

jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 07, 2010, 05:23:47 AM
 #50

Quote
I'm interested if this works at all.
it does, installs and runs nice as usual,

Did you test 'cryptopp_asm32' algorithm?

Quote
so, with 0.2.1 '4way' i get 2400,
0.2.2-0.2.2test '4way' i get 1440.

hmmm.  On my side, I upgraded Fedora 13 to Fedora 14, and changed -O2 to -O3 in compile flags.  Gotta wonder what changed Sad

I should also look into a better CPU architecture setting than the default.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
December 07, 2010, 06:02:00 AM
 #51

Quote
Did you test 'cryptopp_asm32' algorithm?

sorry, the slow 4way-algo confused me a bit, so i totally missed to post those,
yes i did.

cryptopp = 890khash/s
cryptopp_asm32 = 1350khash/s

jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 07, 2010, 06:39:45 AM
 #52

cryptopp_asm32 = 1350khash/s

This is faster than standard bitcoin client, yes?

Anyway, how much patience do you have for testing?  Smiley  Other readers.. your help in comparing 0.2 versus 0.2.2test* speed is welcomed.  Here is a matrix of options, to see if 4way can be improved:

Compiler flagsURL
-O2 -msse2http://yyz.us/bitcoin/cpuminer-installer-0.2.2test-o2.zip
-O2 -march=pentium4 -msse2http://yyz.us/bitcoin/cpuminer-installer-0.2.2test-o2-pentium4.zip
-O2 -march=k8http://yyz.us/bitcoin/cpuminer-installer-0.2.2test-o2-k8.zip
-O3 -msse2http://yyz.us/bitcoin/cpuminer-installer-0.2.2test-o3.zip
-O3 -march=pentium4 -msse2http://yyz.us/bitcoin/cpuminer-installer-0.2.2test-o3-pentium4.zip
-O3 -march=k8http://yyz.us/bitcoin/cpuminer-installer-0.2.2test-o3-k8.zip

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
December 07, 2010, 07:27:37 AM
 #53

Phenom II X3 720 2.8GHz XP x64

--algo=4way --threads=1

0.2.2test-o2 = 1450
0.2.2test-o2-pentium4 = 1438
0.2.2test-o2-k8 = 1450
0.2.2test-o3 = 1450
0.2.2test-o3-pentium4 = 1438
0.2.2test-o3-k8 = 1450

 

0.2.1 = 2418.34 interesting on this one is, that it's not fluctuating,
all others go up and down by 1-few khash, 0.2.1 isnt, it's rockstable at 2418.34,
except the CPU is doing some other stuff, then it drops a bit too.

jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 07, 2010, 07:38:12 AM
 #54

Thanks for testing.  Here's another test, integrating the 4way algorithm and removing the others:
     http://yyz.us/bitcoin/cpuminer-installer-0.2.2test-4way-only.zip

Unlikely to change anything, but it seems that we are narrowing this down to gcc 4.4 -> gcc 4.5 changes in Fedora 13 -> 14.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 07, 2010, 08:41:47 AM
 #55

Hi jgarzik, getting problem with configure on pretty old CentOS 5. Any idea, please?  Roll Eyes

Quote
[root@virt10 jgarzik-cpuminer-080ddb6]# ./autogen.sh
[root@virt10 jgarzik-cpuminer-080ddb6]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
...
checking pkg-config is at least version 0.9.0... yes
./configure: line 4516: syntax error near unexpected token `,'
./configure: line 4516: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'

jgarzik (OP)
Legendary
*
Offline Offline

Activity: 1596
Merit: 1100


View Profile
December 07, 2010, 08:56:00 AM
 #56

Hi jgarzik, getting problem with configure on pretty old CentOS 5. Any idea, please?  Roll Eyes

Quote
./configure: line 4516: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'

Scroll up to this post, in the current thread.  Your libcurl devel pkg is missing, or your libcurl devel pkg is missing autoconf macros.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 07, 2010, 02:49:40 PM
 #57

Thanks. I tried to find solution here before post, but missed this comment  Roll Eyes
Scroll up to this post, in the current thread.  Your libcurl devel pkg is missing, or your libcurl devel pkg is missing autoconf macros.

tuxsoul
Newbie
*
Offline Offline

Activity: 40
Merit: 0



View Profile WWW
December 11, 2010, 06:34:44 AM
 #58

Hi,

I created a debian/ubuntu package from this app, if somebody will like test or support this package, give feedbacks here:
http://bitcointalk.org/index.php?topic=2207.0

Sorry my english is bad.
Greeting's.
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


View Profile
December 13, 2010, 03:19:26 AM
 #59

I've compiled a binary for 64-bit Intel Mac and have it posted at http://dl.dropbox.com/u/16187822/minerd

It gives better performance than the native Bitcoin client on CPU generation, and even better with 4way on my system that has a processor that supports it. I couldn't get 4way to work in the native Bitcoin client, so I'm glad that I've got a chance to use it. It's not enough to compete with some of those GPU monsters, but every hash counts, right?
Azetab
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
December 16, 2010, 06:11:41 PM
 #60

hey, can someone upload a binary zip version of the cpu miner?
Pages: « 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 »
  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!