PyOpenCL bitcoin miner
Pull request Compare This branch is 28 commits ahead, 138 commits behind m0mchil:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Python Bitcoin GPU Miner

This is a forked version of m0mchil's version. I plan on doing some reworking to the client in the near future, for now this exists to be an easy installation version of the library.

Installation (OSX)

I have only tested this on Mac OSX, but it should work on other *nix variants.


Let's get Boost installed. My recommended way is through brew:

ruby -e "$(curl -fsSL";
brew install boost;

Site back and relax for this one, it took half an hour to compile on my brand new laptop.

Let's get virtualenv up and running. This is going to be used to isolate our install of the miner.

easy_install virtualenv

Now let's create our new virtual environment:

virtualenv ~/.miner --distribute --no-site-packages;
cd ~/.miner;
source bin/activate

Lastly, we will need to install numpy. Due to some weirdness with PyOpenCL and the way it expects to find numpy we can't list it as a dependency in so it needs to be done by hand:

pip install numpy; 
pip install;


If you want detailed instructions run:

gpu_miner --help

To join a pooler like you could issue the following on a *nix based system:

nohup gpu_miner -o -p 8332 -u <username>.<password> --pass <password> -d 0 & 

This will detach the process from the shell and you can go on your merry way.