create account

Compiling ZEN/ZEC Equihash CPU miner `nheqminer` for VPS without AVX/AVX2 support (using TROMP-SSE2 solver) by hairetikos

View this thread on: hive.blogpeakd.comecency.com
· @hairetikos · (edited)
Compiling ZEN/ZEC Equihash CPU miner `nheqminer` for VPS without AVX/AVX2 support (using TROMP-SSE2 solver)
**This guide assumes you can build a working nheqminer on your system already**

By default, `nheqminer` is configured to build with `XENONCAT` CPU solvers for AVX/AVX2 CPU instruction sets.

If you try to run it on a VPS or other machine which does not have AVX/AVX2 instruction sets on the CPU, **it will result in 0 sols/s hashing speed but report no error while running.**

You may see something like the following:

```
[01:01:55][0x00007fe305412740] Using SSE2: YES
[01:01:55][0x00007fe305412740] Using AVX: NO
[01:01:55][0x00007fe305412740] Using AVX2: NO
[23:50:38][0x00007f4fe6871700] miner#2 | Starting thread #2 (cpu_tromp_STUB)
[23:50:38][0x00007f4fe7873700] miner#0 | Starting thread #0 (cpu_tromp_STUB)
...
[23:51:02][0x00007f4fe9111740] Speed [15 sec]: 0 I/s, 0 Sols/s
...
```


***You need to enable TROMP CPU solver to use regular SSE2 instructions which most VPS should have***

To fix this is simple.  First grab `nheqminer` from one of the up-to-date forks:

* `git clone https://github.com/aayanl/nheqminer`

follow the instructions on the github page to get it installed up until the `cmake ../nheqminer` part. (***do not run `cmake ../nheqminer` yet.***)

* https://github.com/aayanl/nheqminer#general-instructions (**skip CUDA installation**)

if you are in the build directory, cd into the `nheqminer` directory

* `cd ../nheqminer`

edit `CMakeLists.txt`

* `nano CMakeLists.txt`

Change the following options like so (set them all to OFF apart from `CPU_TROMP`):

![cmake.png](https://steemitimages.com/DQmTPkmZY6SY5kjytXPVC4MQ1N7aBDTRocjVzjebE5AAdMh/cmake.png)

Close and save the file

* `ctrl + x` then `y` then `enter`

Now build the program.

* `cd ../build`
* `cmake ../nheqminer`
* `make -j $(nproc)`

If all is well, the program should compile and you should have a working `nheqminer`

Test that the `TROMP` CPU solver is working by invoking the command:

* `./nheqminer -b 30 -t X` *where X is the number of CPUs you want to test on*

It should now benchmark the speed using `CPU-TROMP-SSE2`.  Once finished and confirmed it is working you can go ahead and set it to mine properly on a pool.

*Please note that CPU hashrates are very slow compared to GPU, and without AVX/AVX2 XENONCAT acceleration, the hashrate will be even slower, but this should solve the 0 sols/s issue experienced by various people using non-AVX VPS instances.*

If this guide has helped you, consider a donation:

**ZEN:** `znSTMxvU3AizLV9cAm4iNPT5uLoJ2wbfHy9`
**Private ZEN:** `zcK5A39UwgaufiyUVtVqTXMFQXxxCUCvicvuMxcCE9QrgBMAGW5yCQW9a5zRqwZbYBTCMhTZgyhKH3TMMHq4xwLADQvqrM3`
**BTC:** `1EwGXrmGdiD6Xd8uPnmRufyoWowJ7qpkJ1`
👍  ,
properties (23)
authorhairetikos
permlinkcompiling-zen-zec-equihash-cpu-miner-nheqminer-for-vps-without-avx-avx2-support-using-tromp-sse2-solver
categoryzencash
json_metadata{"tags":["zencash","mining","crypto","bitcoin","zcash"],"image":["https://steemitimages.com/DQmTPkmZY6SY5kjytXPVC4MQ1N7aBDTRocjVzjebE5AAdMh/cmake.png"],"links":["https://github.com/aayanl/nheqminer#general-instructions"],"app":"steemit/0.1","format":"markdown"}
created2017-10-26 09:00:45
last_update2017-10-26 10:53:57
depth0
children0
last_payout2017-11-02 09:00:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,632
author_reputation102,079,454,361
root_title"Compiling ZEN/ZEC Equihash CPU miner `nheqminer` for VPS without AVX/AVX2 support (using TROMP-SSE2 solver)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,600,249
net_rshares619,520,000
author_curate_reward""
vote details (2)