Post
Topic
Board Mining software (miners)
Re: RPC Miners (CPU/4way/CUDA/OpenCL)
by
yomi
on 27/02/2011, 23:51:19 UTC
I'm getting compilation errors on Linux:

Code:
OPTION(BITCOIN_ENABLE_CUDA "Enable CUDA miner" ON)
OPTION(BITCOIN_ENABLE_OPENCL "Enable OpenCL miner" OFF)
OPTION(BITCOIN_ENABLE_REMOTE_SERVER "Enable remote miner server" OFF)
OPTION(BITCOIN_BUILD_GUI "Build Server GUI (bitcoin)" OFF)
OPTION(BITCOIN_BUILD_DAEMON "Build Server Daemon (bitcoind)" OFF)
OPTION(BITCOIN_BUILD_REMOTE_MINER "Build remote miner (bitcoinr)" OFF)
OPTION(BITCOIN_BUILD_RPC_MINER "Build RPC miner (rpcminer)" ON)
Code:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘unsigned int GetSerializeSize(const boost::tuples::tuple&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:579:31: error: ‘get’ was not declared in this scope
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h: In function ‘void Serialize(Stream&, const boost::tuples::tuple&, int, int)’:
/root/z/rpc/src/rpcminer/../minercommon/../serialize.h:588:19: error: ‘get’ was not declared in this scope
...

"get" is a pretty hard search term to figure out what templated function I'm looking for.

I'm also not exactly sure which pieces I'm supposed to be building, but with the other "BITCOIN_BUILD" options I get other errors, some with WX (no target set), others with json_spirit (int64 isn't a valid type for some reason, I got it to keep going once by changing them all to int64_t).

Thoughts?  Different place I should be asking?

I solved this build error by adding "using namespace boost;" just after the boost include files in "serialize.h".

Thanks! Adding that line I managed to compile the rpcminer using CUDA.

Now I am stuck with the cubin problem:

Code:

$ ./rpcminer -url=http://mining.bitcoin.cz:8332 -user=xxxx -password=yyyy -gpu
Client will start 1 miner threads
Work will be refreshed every 4000 ms
1 CUDA GPU devices found
Setting CUDA device to first device found
Loading module bitcoinminercuda_11.cubin
Unable to load CUDA module


I also tried to generate the cubin file with:

nvcc -cubin ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_11,code=sm_11 -o bitcoinminercuda_11.cubin

But I still get the same error when I start the miner.

How did you do it? :-)

Thank you.