Bitcoin Forum
November 15, 2024, 07:00:33 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 9 »  All
  Print  
Author Topic: Pooled/Remote Mining - Open Source - Updated 2010-12-24  (Read 59066 times)
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


View Profile
December 07, 2010, 02:29:18 AM
 #101

replace src/remote/remotebitcoinheaders.h with http://www.bluishcoder.co.nz/bitcoin-pool/remotebitcoinheaders.h and see how that goes.

Well, that seems to give different errors:

Code:
Relm:~/Downloads/bitcoin-remote-20101205-src% make clean
Relm:~/Downloads/bitcoin-remote-20101205-src% make
[  8%] Building NVCC (Device) object cmake-bitcoinr/./bitcoinr_generated_bitcoinminercuda.cu.o
[ 16%] Building CXX object cmake-bitcoinr/CMakeFiles/bitcoinr.dir/__/src/remoteminermain.cpp.o
In file included from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/remotebitcoinheaders.h:33,
                 from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remoteminermain.cpp:19:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../headers.h:46:20: error: db_cxx.h: No such file or directory
In file included from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../headers.h:126,
                 from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/remotebitcoinheaders.h:33,
                 from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remoteminermain.cpp:19:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:28: error: ‘DbEnv’ does not name a type
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:41: error: ISO C++ forbids declaration of ‘Db’ with no type
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:41: error: expected ‘;’ before ‘*’ token
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:43: error: ‘DbTxn’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:43: error: template argument 1 is invalid
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:43: error: template argument 2 is invalid
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:156: error: ISO C++ forbids declaration of ‘Dbc’ with no type
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:156: error: expected ‘;’ before ‘*’ token
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:167: error: expected `;' before ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:167: error: ‘Dbc’ has not been declared
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:206: error: ISO C++ forbids declaration of ‘DbTxn’ with no type
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:206: error: expected ‘;’ before ‘*’ token
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:214: error: expected `;' before ‘public’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:167: error: ‘DB_NEXT’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘bool CDB::Read(const K&, T&)’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:58: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:65: error: ‘Dbt’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:65: error: expected `;' before ‘datKey’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:68: error: expected `;' before ‘datValue’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:69: error: ‘datValue’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:69: error: ‘DB_DBT_MALLOC’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:70: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:70: error: there are no arguments to ‘GetTxn’ that depend on a template parameter, so a declaration of ‘GetTxn’ must be available
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:70: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:70: error: ‘datKey’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘bool CDB::Write(const K&, const T&, bool)’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:88: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:97: error: ‘Dbt’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:97: error: expected `;' before ‘datKey’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:103: error: expected `;' before ‘datValue’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:106: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:106: error: there are no arguments to ‘GetTxn’ that depend on a template parameter, so a declaration of ‘GetTxn’ must be available
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:106: error: ‘datKey’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:106: error: ‘datValue’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:106: error: ‘DB_NOOVERWRITE’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘bool CDB::Erase(const K&)’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:117: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:126: error: ‘Dbt’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:126: error: expected `;' before ‘datKey’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:129: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:129: error: there are no arguments to ‘GetTxn’ that depend on a template parameter, so a declaration of ‘GetTxn’ must be available
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:129: error: ‘datKey’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:133: error: ‘DB_NOTFOUND’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘bool CDB::Exists(const K&)’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:139: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:146: error: ‘Dbt’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:146: error: expected `;' before ‘datKey’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:149: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:149: error: there are no arguments to ‘GetTxn’ that depend on a template parameter, so a declaration of ‘GetTxn’ must be available
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:149: error: ‘datKey’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘int CDB::ReadAtCursor(int*, CDataStream&, CDataStream&, unsigned int)’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:170: error: ‘Dbt’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:170: error: expected `;' before ‘datKey’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:171: error: ‘DB_SET’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:171: error: ‘DB_SET_RANGE’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:171: error: ‘DB_GET_BOTH’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:171: error: ‘DB_GET_BOTH_RANGE’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:173: error: ‘datKey’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:176: error: expected `;' before ‘datValue’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:177: error: ‘DB_GET_BOTH’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:177: error: ‘DB_GET_BOTH_RANGE’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:179: error: ‘datValue’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:182: error: ‘datKey’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:182: error: ‘DB_DBT_MALLOC’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:183: error: ‘datValue’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:184: error: request for member ‘get’ in ‘* pcursor’, which is of non-class type ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘bool CDB::TxnBegin()’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:217: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:219: error: ‘DbTxn’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:219: error: ‘ptxn’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:220: error: ‘dbenv’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:220: error: ‘GetTxn’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:220: error: ‘DB_TXN_NOSYNC’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:223: error: request for member ‘push_back’ in ‘((CDB*)this)->CDB::vTxn’, which is of non-class type ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘bool CDB::TxnCommit()’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:229: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:231: error: request for member ‘empty’ in ‘((CDB*)this)->CDB::vTxn’, which is of non-class type ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:233: error: request for member ‘back’ in ‘((CDB*)this)->CDB::vTxn’, which is of non-class type ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:234: error: request for member ‘pop_back’ in ‘((CDB*)this)->CDB::vTxn’, which is of non-class type ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h: In member function ‘bool CDB::TxnAbort()’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:240: error: ‘pdb’ was not declared in this scope
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:242: error: request for member ‘empty’ in ‘((CDB*)this)->CDB::vTxn’, which is of non-class type ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:244: error: request for member ‘back’ in ‘((CDB*)this)->CDB::vTxn’, which is of non-class type ‘int’
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../db.h:245: error: request for member ‘pop_back’ in ‘((CDB*)this)->CDB::vTxn’, which is of non-class type ‘int’
In file included from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../headers.h:127,
                 from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/remotebitcoinheaders.h:33,
                 from /Users/pete/Downloads/bitcoin-remote-20101205-src/src/remoteminermain.cpp:19:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../net.h: In member function ‘void CNode::EndMessage()’:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../net.h:710: warning: invalid access to non-static data member ‘CMessageHeader::nMessageSize’ of NULL object
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../net.h:710: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../net.h:718: warning: invalid access to non-static data member ‘CMessageHeader::nChecksum’ of NULL object
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../net.h:718: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../net.h:719: warning: invalid access to non-static data member ‘CMessageHeader::nChecksum’ of NULL object
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/../net.h:719: warning: (perhaps the ‘offsetof’ macro was used incorrectly)
make[2]: *** [cmake-bitcoinr/CMakeFiles/bitcoinr.dir/__/src/remoteminermain.cpp.o] Error 1
make[1]: *** [cmake-bitcoinr/CMakeFiles/bitcoinr.dir/all] Error 2
make: *** [all] Error 2

Thank you very much for your help.
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
December 07, 2010, 02:31:09 AM
 #102

here's a feature request:

show distribution type in server status messages.

that'd be nice.  Smiley

FairUser
Sr. Member
****
Offline Offline

Activity: 1344
Merit: 264


bit.ly/3QXp3oh | Ultimate Launchpad on TON


View Profile
December 07, 2010, 02:44:27 AM
 #103

Does that also work for running a server on Windows?

Yes, except replace 'bitcoinr' with 'remoteminer-cpu.exe' or 'remoteminer-cuda.exe'.

Got it working.  Was missing the "-gen" and it didn't want to run.  Added "-gen" and it's find now.

Thanks!

TONUP██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
▄▄███████▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████▄░▄▄▀█████▀▄████▄
▄███████▄▀█▄▀██▀▄███████▄
█████████▄▀█▄▀▄██████████
██████████▄▀█▄▀██████████
██████████▀▄▀█▄▀█████████
▀███████▀▄██▄▀█▄▀███████▀
▀████▀▄█████▄▀▀░▀█████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀███████▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████████████████████▄
▄████▀▀███▀▀███▀▀██▀███▄
████▀███████▀█▀███▀█████
██████████████████████
████▄███████▄█▄███▄█████
▀████▄▄███▄▄███▄▄██▄███▀
▀█████████████████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
████████
██
██
██
██
██
██
██
██
██
██
██
████████
████████████████████████████████████████████████████████████████████████████████
.
JOIN NOW
.
████████████████████████████████████████████████████████████████████████████████
████████
██
██
██
██
██
██
██
██
██
██
██
████████
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


View Profile
December 07, 2010, 05:05:49 AM
 #104

I found https://github.com/doublec/bitcoin-pool/blob/master/src/build-osx.txt which told me how to install Berkley DB, and I managed to build on a Mac with CUDA disabled. I'd like to try CUDA, but the build seems to not quite know where I've installed its Toolkit and SDK, even though CMake does. But I've dug through it enough for one night, and I'm now happily generating with my CPU on the pooled server from my Mac.

The binary I built is at http://dl.dropbox.com/u/16187822/bitcoinr, although I assume you need a 64-bit Intel system at the least to run it, and perhaps there are even more requirements that your system needs to be similar to mine. But I did manage to put just the binary on another Mac and it's running there too, so it seems to be at least somewhat portable.
doublec
Legendary
*
Offline Offline

Activity: 1078
Merit: 1005


View Profile
December 07, 2010, 06:06:27 AM
 #105

I've updated the first post with the latest release.  The "contributed" distribution method should be working now.  That is the only substantial change in this release.

Does this require remote miner clients to update as well? Or is it just the server?
kabo
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 07, 2010, 09:18:54 AM
 #106

Any ideas?

You should install libboost-all-dev.
Which isn't available on debian stable (lenny). Libbost1.35-dev is available and installed.
Trying to build boost from source now, seems to take some time...
kabo
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 07, 2010, 01:27:58 PM
 #107

I built the needed boost stuff from source, and set BOOST_ROOT.
Now it compiles but the linker crashes.
Code:
Linking CXX executable bitcoinr
CMakeFiles/bitcoinr.dir/__/src/remoteminermain.cpp.o: In function `__static_initialization_and_destruction_0(int, int)':
remoteminermain.cpp:(.text+0x9e): undefined reference to `boost::system::generic_category()'
remoteminermain.cpp:(.text+0xaa): undefined reference to `boost::system::generic_category()'
remoteminermain.cpp:(.text+0xb6): undefined reference to `boost::system::system_category()'
CMakeFiles/bitcoinr.dir/__/src/remote/remoteminerclient.cpp.o: In function `__static_initialization_and_destruction_0(int, int)':
remoteminerclient.cpp:(.text+0x9e): undefined reference to `boost::system::generic_category()'
remoteminerclient.cpp:(.text+0xaa): undefined reference to `boost::system::generic_category()'
remoteminerclient.cpp:(.text+0xb6): undefined reference to `boost::system::system_category()'
CMakeFiles/bitcoinr.dir/__/src/remote/remoteminerclient.cpp.o: In function `boost::thread::sleep(boost::posix_time::ptime const&)':
remoteminerclient.cpp:(.text._ZN5boost6thread5sleepERKNS_10posix_time5ptimeE[boost::thread::sleep(boost::posix_time::ptime const&)]+0x11): undefined reference to `boost::this_thread::sleep(boost::posix_time::ptime const&)'
collect2: ld returned 1 exit status
make[2]: *** [cmake-bitcoinr/bitcoinr] Error 1
make[1]: *** [cmake-bitcoinr/CMakeFiles/bitcoinr.dir/all] Error 2
make: *** [all] Error 2
puddinpop (OP)
Member
**
Offline Offline

Activity: 103
Merit: 17


View Profile
December 07, 2010, 11:28:47 PM
 #108

I've updated the first post with the latest release.  The "contributed" distribution method should be working now.  That is the only substantial change in this release.

Does this require remote miner clients to update as well? Or is it just the server?

Just the server.  Any client since the 2010-12-02 release should connect and work fine.

doublec
Legendary
*
Offline Offline

Activity: 1078
Merit: 1005


View Profile
December 07, 2010, 11:36:05 PM
Last edit: December 08, 2010, 04:21:32 AM by doublec
 #109

I built the needed boost stuff from source, and set BOOST_ROOT.
Now it compiles but the linker crashes.

It's picking up old boost libraries and/or headers. I had this issue too. I hardcoded the makefile to pick the boost stuff I wanted.

inertia
Newbie
*
Offline Offline

Activity: 35
Merit: 0



View Profile WWW
December 08, 2010, 01:25:50 AM
 #110

I found https://github.com/doublec/bitcoin-pool/blob/master/src/build-osx.txt which told me how to install Berkley DB, and I managed to build on a Mac with CUDA disabled. I'd like to try CUDA, but the build seems to not quite know where I've installed its Toolkit and SDK, even though CMake does. But I've dug through it enough for one night, and I'm now happily generating with my CPU on the pooled server from my Mac.

The binary I built is at http://dl.dropbox.com/u/16187822/bitcoinr, although I assume you need a 64-bit Intel system at the least to run it, and perhaps there are even more requirements that your system needs to be similar to mine. But I did manage to put just the binary on another Mac and it's running there too, so it seems to be at least somewhat portable.

Weird, I installed Berkely DB as described in the osx build file you mentioned, but I still get the db_cxx.h error.  Your binary works on my machine.  Nice work!
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


View Profile
December 08, 2010, 01:49:40 AM
 #111

Weird, I installed Berkely DB as described in the osx build file you mentioned, but I still get the db_cxx.h error.  Your binary works on my machine.  Nice work!

I think I had to run the configure for it with --prefix=/usr/local for it to work. I really should have been documenting all the stuff I've tried better while trying to get this to work. I've probably made quite the mess of my machine. Now all that's left is trying to get the CUDA pooled binary built. I'm at the point where I get the error in gpurunner.h listed in the comments at http://www.bluishcoder.co.nz/bitcoin-pool/ which is the next point I'm stumped.

Glad to hear that the binary's working for someone else.
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


View Profile
December 08, 2010, 03:06:43 AM
 #112

Here's what I think I did to get the CUDA version to compile on a Mac. Note that this is definitely the wrong way of solving the problems I was having compiling.

  • In src/remote/cuda/bitcoinminercuda.cpp, just after the includes, I added inline int OutputDebugStringF(const char* pszFormat, ...) {return 0;}
  • In src/gpucommon/gpurunner.h, just below #define _bitcoin_gpu_runner_ added #include "../headers.h"

It's using one CPU generating, and my system is lagging now, and it's certainly more than I was getting just generating on one CPU before, but it's still only a few thousand khash, not the hundreds of thousands that it seems some others get using a GPU. Perhaps my video card isn't fancy enough, or I've horribly screwed up some settings somewhere.

Binary is located at http://dl.dropbox.com/u/16187822/bitcoinr-cuda for those who have a 64-bit Intel Mac that's close enough to mine that it works for them.
lysacor
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
December 08, 2010, 04:34:25 AM
 #113

This version of the CUDA pooled mining client gets about half of the performance of m0m's client and comparable clients. I am sure with subsequent revisions that will get better. That is part of the development process!
doublec
Legendary
*
Offline Offline

Activity: 1078
Merit: 1005


View Profile
December 08, 2010, 05:10:28 AM
 #114

Just the server.  Any client since the 2010-12-02 release should connect and work fine.

Thanks, I've switched and it looks like it's working fine.
kabo
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 08, 2010, 10:05:30 AM
 #115

I built the needed boost stuff from source, and set BOOST_ROOT.
Now it compiles but the linker crashes.

It's picking up old boost libraries and/or headers. I had this issue too. I hardcoded the makefile to pick the boost stuff I wanted.



Took a while to find all the places, but got it working now. Thanks!
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
December 08, 2010, 11:18:31 AM
 #116

i thought today, that 17-18M is a bit slow for my GTX260 (not to complain, it works and that's better than nothing),
then i noticed, that the miner only does 50% GPU Load, so i started a 2nd instance.

good thing is, that this also works,
bad thing is, that, as i mentioned before, a single instance also loads 50% of the CPU, so with 2 instances i'm at 100% CPU, which might be the cause that both instances only load the GPU up to 70%.
still a little improvement, its 2x ~13M now, but also lots of 'wasted' energy on the CPU and of course a slower system.

anyway, just wanted to let you know.


inertia
Newbie
*
Offline Offline

Activity: 35
Merit: 0



View Profile WWW
December 08, 2010, 08:36:59 PM
 #117

Here's what I think I did to get the CUDA version to compile on a Mac. Note that this is definitely the wrong way of solving the problems I was having compiling.

  • In src/remote/cuda/bitcoinminercuda.cpp, just after the includes, I added inline int OutputDebugStringF(const char* pszFormat, ...) {return 0;}
  • In src/gpucommon/gpurunner.h, just below #define _bitcoin_gpu_runner_ added #include "../headers.h"

It's using one CPU generating, and my system is lagging now, and it's certainly more than I was getting just generating on one CPU before, but it's still only a few thousand khash, not the hundreds of thousands that it seems some others get using a GPU. Perhaps my video card isn't fancy enough, or I've horribly screwed up some settings somewhere.

Binary is located at http://dl.dropbox.com/u/16187822/bitcoinr-cuda for those who have a 64-bit Intel Mac that's close enough to mine that it works for them.

That binary worked for me, but for another user, he got:

Code:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/cuda/bitcoinminercuda.cpp(43) : cudaSafeCall() Runtime API error : CUDA driver version is insufficient for CUDA runtime version.

I don't know the exact particulars of his hardware.
pc
Sr. Member
****
Offline Offline

Activity: 253
Merit: 250


View Profile
December 08, 2010, 09:01:31 PM
 #118

That binary worked for me, but for another user, he got:

Code:
/Users/pete/Downloads/bitcoin-remote-20101205-src/src/remote/cuda/bitcoinminercuda.cpp(43) : cudaSafeCall() Runtime API error : CUDA driver version is insufficient for CUDA runtime version.

I don't know the exact particulars of his hardware.
Well, my wild guess is that he needs the latest "Developer Drivers for MacOS" from http://developer.nvidia.com/object/cuda_3_2_downloads.html

If that's not it, then I guess my build isn't compatible in some other way.
inertia
Newbie
*
Offline Offline

Activity: 35
Merit: 0



View Profile WWW
December 09, 2010, 01:47:42 AM
 #119

That is the problem.  He didn't have the developer drivers.  Now it's working.  I'm getting ~5600 khash/s.  He's getting ~2700 khash/s.
doublec
Legendary
*
Offline Offline

Activity: 1078
Merit: 1005


View Profile
December 09, 2010, 02:55:53 AM
 #120

/home/mithrandir/Downloads/bitcoin-pool/src/remote/../headers.h:41:27: fatal error: openssl/ecdsa.h: No such file or directory

Do you have the libssl development files installed? On a debian based system this is libssl-dev.
Pages: « 1 2 3 4 5 [6] 7 8 9 »  All
  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!