| 1 | I like the BitCoin idea, mostly for the GPU computation part and to see if the idea actually holds. To get it running under Ubuntu 10.10 with NVIDIA CUDA 3.2 tools installed, requires some tricks as {{{python-pyopencl}}} requires a whole bunch of non-compatibele NVIDIA stuff to be installed. |
| 2 | |
| 3 | $ sudo apt-get install blt dkms libboost-python1.42.0 python-dateutil python-decorator python-matplotlib python-matplotlib-data git-core libboost-python-dev |
| 4 | $ mkdir ~/src |
| 5 | $ cd ~/src |
| 6 | $ git clone http://git.tiker.net/trees/pyopencl.git |
| 7 | $ cd pyopencl |
| 8 | $ ./configure.py |
| 9 | $ cat <<EOF > siteconf.py |
| 10 | BOOST_INC_DIR = [] |
| 11 | BOOST_LIB_DIR = [] |
| 12 | BOOST_COMPILER = 'gcc43' |
| 13 | BOOST_PYTHON_LIBNAME = ['boost_python-py26'] |
| 14 | USE_SHIPPED_BOOST = False |
| 15 | CL_TRACE = False |
| 16 | CL_ENABLE_GL = False |
| 17 | CL_ENABLE_DEVICE_FISSION = False |
| 18 | CL_INC_DIR = ['/usr/local/cuda/include'] |
| 19 | CL_LIB_DIR = ['/usr/local/cuda/lib64'] |
| 20 | CL_LIBNAME = ['OpenCL'] |
| 21 | CXXFLAGS = [] |
| 22 | LDFLAGS = [] |
| 23 | EOF |
| 24 | $ make |
| 25 | $ sudo make install |
| 26 | |
| 27 | |
| 28 | Now download and run the miner. I run mine against the [http://eligius.st/wiki/index.php/Getting_Started Eligius Grid]. Replace {{{1AdxXkR3aB6xwPU6XwPZMZhu2v9avFuFoJ}}} with your own BitCoin Address, else thanks for the donation! |
| 29 | $ cd ~/src |
| 30 | $ git clone https://github.com/m0mchil/poclbm |
| 31 | $ cd poclbm |
| 32 | $ python poclbm.py --device=0 --pass=x --host=mining.eligius.st --port=8337 --user=1AdxXkR3aB6xwPU6XwPZMZhu2v9avFuFoJ --verbose |
| 33 | |
| 34 | For daily usage you can run it as a daemon with verbose logging if wanted: |
| 35 | $ python poclbm.py --device=0 --pass=x --host=mining.eligius.st --port=8337 --user=1AdxXkR3aB6xwPU6XwPZMZhu2v9avFuFoJ --verbose >> bitcoin-mining.log & |
| 36 | |
| 37 | If you have multiple GPUs in your system, make sure to fire up multiple installed with different {{{--device=}}} ID. |
| 38 | |
| 39 | |