An open API service indexing awesome lists of open source software.

https://github.com/unsalted/docker-nheqminer-cuda

CUDA capable docker image of nheqminer (zcash/equihash miner)
https://github.com/unsalted/docker-nheqminer-cuda

blockchain cuda docker docker-image gpu nheqminer nicehash nvidia nvidia-docker zcash

Last synced: about 2 months ago
JSON representation

CUDA capable docker image of nheqminer (zcash/equihash miner)

Awesome Lists containing this project

README

          

## [Nheqminer *with* NVIDIA CUDA](https://github.com/unsalted/docker-nheqminer-cuda) support

I have now had my docker running 4+ weeks which meets my standards for "stable".

### Releases

#### Ubuntu 16.04
- `v0.5c`, ` cuda`, `latest` [(CUDA 8.0/v0.5c)](https://github.com/unsalted/docker-nheqminer-cuda/blob/master/Dockerfile)
- `v0.5c-cpu`, `cpu` [(CPU/v0.5c)](https://github.com/unsalted/docker-nheqminer-cuda/blob/master/CPU/Dockerfile)

### Requirements
---
This assumes that current version of NVIDIA drivers and Docker is installed, it also requires the [nvidia-docker plugin](https://github.com/NVIDIA/nvidia-docker) which allows the image to access the host GPU and drivers with minimal extra requirements on *you* or the host.

For convenience there is also a [*cpu only*](https://github.com/unsalted/docker-nheqminer-cuda/blob/master/CPU/Dockerfile) build.

**nvidia-docker [install requirements](https://github.com/NVIDIA/nvidia-docker/wiki/Installation)**

##### An example of installing nvidia-docker on Ubuntu 16.04
*It really isn't so bad...*
```bash

# requirement
sudo apt-get install nvidia-modprobe
# Install nvidia-docker and nvidia-docker-plugin
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.0/nvidia-docker_1.0.0-1_amd64.deb
sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb

# Test nvidia-smi
nvidia-docker run --rm nvidia/cuda nvidia-smi

```
---

#### Quickstart instructions
---
A few example commands to help get things up and running quickly.
**Do not** run more than two threads per instance, if you want to run CPU and GPU on the same machine spin up seperate instances.
**DO RUN *two threads* per instance** for example `-cd 0 0 1 1`.
On a stock GTX1070 with two threads the djezo solver runs at around 380 Sol/s.

**DOCKER RUN**
```bash
nvidia-docker run --restart always -i -d -h nheqminer unsalted/nheqminer \
nheqminer -l zec-us1.dwarfpool.com:3335 -u ZEC_ADDRESS.user -cd 0
```

**DOCKER Enter the container**
=======
**RUN**

`nvidia-docker run --rm -i -d -h nheqminer --name nheqminer unsalted/nheqminer`

**EXEC nheq command (start, help, benchmark)**

`docker exec nheqminer bash -c "nheqminer -l zec-us1.dwarfpool.com:3335 -u YOUR_ZEC_ADDRESS.user -cd 0 0"`

**Enter the container**

`docker exec -it nheqminer bash`

**Makefile**

A makefile is provided with quickstart commands the only *required* variable is your ADDRESS, it will still run but it will mine to my address (thank you).

*Run with flags*

`make nheqminer FLAGS="-l zec-us1.dwarfpool.com:3336 -u t1UoqVgJYfRuZZyaU93FncJzXdhKmx6Vpb5.botbot -cd 0 1"`

*Run with variables*

`make run GPU="0 1" ADDRESS=MY_ADDRESS PORT=3356`

*Run cpu*

`make cpu ADDRESS=MY_ADDRESS PORT=3354 THREADS=4`

**Full list of default variables**

```

GPU=0
THREADS=Null
HOST=HOSTNAME
RESTART=always
UID=RANDOM
LOCATION=zec-us1.dwarfpool.com
PORT=3335
ADDRESS=t1UoqVgJYfRuZZyaU93FncJzXdhKmx6Vpb5
DOCKER=nvidia-docker

```
---
**RUN**

`docker run --rm -i -d -h nheqminer --name nheqminer unsalted/nheqminer:cpu`

**EXEC command (start, help, benchmark)**

`docker exec nheqminer bash -c "nheqminer -l zec-us1.dwarfpool.com:3334 -u YOUR_ZEC_ADDRESS.user -t 2"`

**Enter the container**

`docker exec -it nheqminer bash`

**For more information about using nheqminer see [the nicehash nheqminer repo](https://github.com/nicehash/nheqminer)**.

**Please ask questions and post bugs to [github](https://github.com/unsalted/docker-nheqminer-cuda).**