My Experiences Building 0xBitcoin GPU miner on Windows 10 x64.

Tutorial Version 1 (pre-alpha status, lol)

(You will no doubt have to google a few things, but as I revise this tutorial that number should decrease. Let me know how it can be made more helpful)

Note: Your Mileage can, and probably will, Vary!

(by: Mag517 on the 0xBitcoin discord. Donations [ETH/0xBTC] welcome! Help my broke ass buy groceries. 0xa8b8ea4C083890833f24817b4657888431486444)

---

First you'll have to install Git and Node.js (version 8.something). Let me know if you can't find it. You also need to install CUDA. The latest version seems to be fine. Also get any updates that are listed with the main intaller package. Make sure you get drivers that play nice with your GPU for mining (google around to find experiences of other miners with your hardware.)

Get the latest master from: https://github.com/0xbitcoin/0xbitcoin-gpuminer or clone it (google that) to your disk.

Extract it somewhere handy, I'll put it in c:\development\0xbitcoin-gpuminer-master

Open an Admin PowerShell (windows key + X, then press A in the submenu that appears)

Navigate to your build directory.

cd ../../

cd Development

cd 0xbitcoin-gpuminer-master

Now you want to run yarn to get the dependencies for the build.

But first you need yarn. Do these.

npm install yarn

(consider doing npm install -g yarn to install it globally for other build dirs.)

yarn

Now yarn should run and install python and some other goodies.

You might also need to do:

npm install windows-build-tools

Now you will need to set the "magic numbers" to match your GPU.

In your favorite text editor, open c:\development\0xbitcoin-gpuminer-master\cpp\hybridminer\cuda_sha3.cu

At the very top you should see two #define directives. Change the numeric value in these to match your GPU. Here is mine as an example. I have a GTX960, which has 1024 CUDA cores, so I set 32 for both of these. Which conveniently multiplies out to 1024. I was able to find some starter values by running another miner I had lying around, XMR-STAK, and looking at the nvidia.txt it generates with # of threads, blocks. It was giving 24 and 28 and I adjusted to 32 and 32. I continue to play with these numbers to see ife I can eke out extra performance or lower the intensity to make Windows more responsive while mining.

Ready for the moment of truth. Execute these commands in order in c:\development\0xbitcoin-gpuminer-master\.

node-gyp clean

node-gyp configure

node-gyp build

node-gyp install

If all were successful, then proceed, otherwise we need to fix something. As people report errors I will add solutions **here*.

node index.js

This SHOULD run the program in your Power Shell. You can do this in a regular, non-elevated one, as Admin should not be necessary after you installed those dependencies earlier. This was the case for me, but run as Admin if you encounter a problem so that you can check this off the list of potential culprits.

Once in the miner, enter these commands.

account select 0xthisisyouraddress

You should be asked to enter the keystore's password. If you haven't set up an account yet, do 'account new' instead and follow the steps. Then come back and use the above command in the future. On additional computers you wish to mine on, you should in theory only need to enter the address, not transfer the keystore to each one.

pool select http://tokenminingpool.com:8586/

alternatively:

pool select http://0xpool.io:8586/

pool mine cuda