nicehash / nheqminer

Equihash miner for NiceHash
https://www.nicehash.com
MIT License
768 stars 583 forks source link

Benchmark exists immediately (no errors) mining results in 0 I/s, 0 Sols/s #269

Open huysamen opened 7 years ago

huysamen commented 7 years ago

Running on Intel dual Xeon SR1500ALR server (no GPU)

I followed the installation instructions as per the README, with the following 3 changes:

  1. Did not install CUDA (as there is no GPU)
  2. Installed fasm with apt-get and pointed fasm in the cpu_xenoncat/asm_linux folder
  3. Changed CMakeLists.txt to only link CPU_XENONCAT

There were no issues during the build process:

## sh assemble.sh 
flat assembler  version 1.71.51  (1280000 kilobytes memory)
3 passes, 1.1 seconds, 17144 bytes.
flat assembler  version 1.71.51  (1280000 kilobytes memory)
3 passes, 1.1 seconds, 17183 bytes.
## cmake ../nheqminer/
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- USE_CPU_XENONCAT DEFINED
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   system
--   log_setup
--   log
--   date_time
--   filesystem
--   thread
--   regex
--   chrono
--   atomic
-- CXXFLAGS:  -std=c++11 -m64 -msse2
-- LIBS: /usr/lib/x86_64-linux-gnu/libboost_system.a;/usr/lib/x86_64-linux-gnu/libboost_log_setup.a;/usr/lib/x86_64-linux-gnu/libboost_log.a;/usr/lib/x86_64-linux-gnu/libboost_date_time.a;/usr/lib/x86_64-linux-gnu/libboost_filesystem.a;/usr/lib/x86_64-linux-gnu/libboost_thread.a;/usr/lib/x86_64-linux-gnu/libboost_regex.a;/usr/lib/x86_64-linux-gnu/libboost_chrono.a;/usr/lib/x86_64-linux-gnu/libboost_atomic.a;/usr/lib/x86_64-linux-gnu/libpthread.a
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nico/nheqminer/build
## make -j $(nproc)
Scanning dependencies of target cpu_xenoncat
[  5%] Building CXX object cpu_xenoncat/CMakeFiles/cpu_xenoncat.dir/xenoncat.cpp.o
[ 10%] Linking CXX static library libcpu_xenoncat.a
[ 10%] Built target cpu_xenoncat
Scanning dependencies of target nheqminer
[ 15%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/api.cpp.o
[ 21%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/amount.cpp.o
[ 26%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_writer.cpp.o
[ 36%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/crypto/sha256.cpp.o
[ 36%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_reader.cpp.o
[ 42%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/json/json_spirit_value.cpp.o
[ 47%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/arith_uint256.cpp.o
[ 52%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/ZcashStratum.cpp.o
[ 57%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/main.cpp.o
[ 63%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/primitives/block.cpp.o
[ 68%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/speed.cpp.o
[ 73%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/uint256.cpp.o
[ 78%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/utilstrencodings.cpp.o
[ 84%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/libstratum/StratumClient.cpp.o
[ 89%] Building CXX object CMakeFiles/nheqminer.dir/nheqminer/MinerFactory.cpp.o
[ 94%] Building CXX object CMakeFiles/nheqminer.dir/blake2/blake2bx.cpp.o
[100%] Linking CXX executable nheqminer
[100%] Built target nheqminer

However, running the benchmark just exits immediately, with no errors:

## ./nheqminer -b

    ==================== www.nicehash.com ====================
        Equihash CPU&GPU Miner for NiceHash v0.5c
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp, xenoncat and djeZo for providing 
          optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[11:45:04][0x00007fedbb51b740] Using SSE2: YES
[11:45:04][0x00007fedbb51b740] Using AVX: NO
[11:45:04][0x00007fedbb51b740] Using AVX2: NO
[11:45:05][0x00007fedbb51b740] Benchmark starting... this may take several minutes, please wait...
[11:45:05][0x00007fedbb51b740] Benchmark done!
[11:45:05][0x00007fedbb51b740] Total time : 0 ms
[11:45:05][0x00007fedbb51b740] Total iterations: 0
[11:45:05][0x00007fedbb51b740] Total solutions found: 0
[11:45:05][0x00007fedbb51b740] Speed: -nan I/s
[11:45:05][0x00007fedbb51b740] Speed: -nan Sols/s

Running benchmark with debug logging on makes it clear that it is not finding any solutions:

[12:29:08][0x00007fb1f1133740] Benchmark done!
[12:29:08][0x00007fb1f1133740] Total time : 0 ms
[12:29:08][0x00007fb1f1133740] Total iterations: 200
[12:29:08][0x00007fb1f1133740] Total solutions found: 0
[12:29:08][0x00007fb1f1133740] Speed: inf I/s
[12:29:08][0x00007fb1f1133740] Speed: -nan Sols/s

And then running the actual miner results in 0 I/s, 0 Sols/s:

##./nheqminer -l equihash.eu.nicehash.com:3357 -u xxx -p x -t 6 -e 0

    ==================== www.nicehash.com ====================
        Equihash CPU&GPU Miner for NiceHash v0.5c
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp, xenoncat and djeZo for providing 
          optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[11:46:06][0x00007f6e4062e740] Using SSE2: YES
[11:46:06][0x00007f6e4062e740] Using AVX: NO
[11:46:06][0x00007f6e4062e740] Using AVX2: NO
[11:46:06][0x00007f6e3f592700] stratum | Starting miner
[11:46:06][0x00007f6e3ed91700] miner#0 | Starting thread #0 (cpu_tromp_STUB) 
[11:46:06][0x00007f6e3dd8f700] miner#2 | Starting thread #2 (cpu_tromp_STUB) 
[11:46:06][0x00007f6e3e590700] miner#1 | Starting thread #1 (cpu_tromp_STUB) 
[11:46:06][0x00007f6e3f592700] stratum | Connecting to stratum server equihash.eu.nicehash.com:3357
[11:46:06][0x00007f6e2ffff700] miner#5 | Starting thread #5 (cpu_tromp_STUB) 
[11:46:06][0x00007f6e3d58e700] miner#3 | Starting thread #3 (cpu_tromp_STUB) 
[11:46:06][0x00007f6e3cd8d700] miner#4 | Starting thread #4 (cpu_tromp_STUB) 
[11:46:07][0x00007f6e3f592700] stratum | Connected!
[11:46:07][0x00007f6e3f592700] stratum | Subscribed to stratum server
[11:46:07][0x00007f6e3f592700] miner | Extranonce is dfbd050000000000000000000000000078
[11:46:07][0x00007f6e3f592700] stratum | Authorized worker xxx
[11:46:07][0x00007f6e3f592700] stratum | Target set to 000f0f0f0f000000000000000000000000000000000000000000000000000000
[11:46:07][0x00007f6e3f592700] stratum | Received new job #0000000000acfcbd
[11:46:15][0x00007f6e3f592700] stratum | Received new job #0000000000ad0f57
[11:46:16][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:46:26][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:46:36][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:46:45][0x00007f6e3f592700] stratum | Received new job #0000000000ad5647
[11:46:47][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:46:57][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:47:07][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:47:16][0x00007f6e3f592700] stratum | Received new job #0000000000ad9492
[11:47:17][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:47:27][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:47:30][0x00007f6e3f592700] stratum | Received new job #0000000000ae32b7
[11:47:37][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:47:47][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:47:57][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:48:00][0x00007f6e3f592700] stratum | Received new job #0000000000aeaf08
[11:48:07][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:48:17][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:48:27][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:48:30][0x00007f6e3f592700] stratum | Received new job #0000000000af331d
[11:48:37][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:48:47][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:48:57][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
[11:48:58][0x00007f6e3f592700] miner | Extranonce is 12985493000000000000506d46396ea4be
[11:48:58][0x00007f6e3f592700] stratum | Target set to 000f0f0f0f000000000000000000000000000000000000000000000000000000
[11:48:58][0x00007f6e3f592700] stratum | Received new job #0000000000af809a
[11:49:07][0x00007f6e3f592700] stratum | Target set to 001e1e1e1e000000000000000000000000000000000000000000000000000000
[11:49:07][0x00007f6e4062e740] Speed [15 sec]: 0 I/s, 0 Sols/s
^C[11:49:16][0x00007f6e3f592700] stratum | Received new job #0000000000afee91
hunasdf commented 7 years ago

+1, for me too (i7-4790K CPU).

erknie commented 7 years ago

Same problem for me on Xubuntu 16.04 with a gtx 1060 3GB card.

k1-801 commented 7 years ago

Same problem. Arch linux, Intel Atom, running on CPU.

suprnurd commented 7 years ago

Darn. I was hoping there would be a solution here!

tiferrei commented 7 years ago

Same problem here. @huysamen have you been able to figure out what's going on here?

calvintam236 commented 7 years ago

Same problem here.. 1070FE. I ran the benchmark inside docker

$ docker run --rm --device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm --device /dev/nvidia-modeset:/dev/nvidia-modeset calvintam236/nheqminer:nvidia -b
romka1977 commented 6 years ago

This helped me, at least for actual mining (CPU-only mining)

in CMakeLists.txt

option(USE_CPU_TROMP "USE CPU_TROMP" ON) option(USE_CUDA_TROMP "USE CUDA_TROMP" OFF) option(USE_CPU_XENONCAT "USE CPU_XENONCAT" OFF) option(USE_CUDA_DJEZO "USE CUDA_DJEZO" OFF)

Ahmad-Drak commented 6 years ago

did anyone find a solution for this by any chance?

klaxian commented 6 years ago

Enabling only USE_CPU_TROMP does not solve the problem for me. Should we assume this will not be fixed?

ddombrowsky commented 4 years ago

Looks like this project is dead. I have gotten kost's fork to run, but it's of limited use: https://github.com/kost/nheqminer