Post
Topic
Board Mining software (miners)
Re: RPC Miners (CPU/4way/CUDA/OpenCL)
by
TheShoura
on 30/04/2011, 08:08:47 UTC
I'm new to all this.

I just got my first working binary for rpcminer working for CUDA on Ubuntu 10.10 after screwing around with the source for half a day.  I wanted to roughly document the steps for anyone trying to follow in my footsteps.  Many of the problems were discussed in this thread but I wanted to put them together in one place.

1.  Open up the CMakeLists.txt.  There's a group of seven options (lines 5-11 in my version of the file for me).  I set "Enable CUDA miner" and "Build RPC miner" to ON and everythign else to OFF.
2.  Ran cmake .
3.  Cleaned up some compile errors:
3A.  Added "#include " to serialize.h after the rest of the #includes
3B.  Added "using namespace boost;" just after the includes
3C.  Modified bitcoinminercuda.cu to "#define _BITCOIN_MINER_CUDA_" right above the #ifdef that checks for it.
4.  Ran make
5.  Got .cubin files by running
nvcc ../src/cuda/bitcoinminercuda.cu -gencode arch=compute_10,\"code=sm_10,compute_10\" -gencode arch=compute_11,\"code=sm_11,compute_11\" --keep -gencode arch=compute_20,\"code=sm_20,compute_20\" --keep
6.  Ran the rpcminer binary from step 4.  It will complain about not being able to run.  Take one of the three .cubin files and put it in your target directory.  You'll have to rename it to the file that rpcminer is looking for.  (in my case, I renamed bitcoinminercuda.compute_20.sm_20.cubin to bitcoinminercuda_20.cubin")
7.  Opened an account on deepbit.net and then ran
./rpcminer -user=foo@bar.com -password=my_password -url=http://deepbit.net:8332/
(of course I changed user and password to whatever I registered with)

Hopefully I didn't leave anything out.
There may be better ways to solve some of those issues, but that's how I solved them and I got a working binary that does hashes using CUDA.

Good luck and happy bitmining.

Man its not even work using CUDA... I'm getting 30x more on an AMD Radeon GPU using the same mount of power on OpenCL