Giter Site home page Giter Site logo

tomkha / nq-miner Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 18.0 165 KB

Nimiq GPU miner. Supports Nvidia and AMD cards.

License: GNU Affero General Public License v3.0

Python 2.46% JavaScript 22.06% Cuda 19.51% C 2.92% C++ 48.54% Shell 4.29% Batchfile 0.22%

nq-miner's People

Contributors

tomkha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nq-miner's Issues

Segmentation fault after recompile

I'm getting segmentation fault after recompiling:

CUDA_PATH=/usr/local/cuda yarn install
CUDA_PATH=/usr/local/cuda yarn build
mv build/Release/*.node .

everything looks fine at first glance:

ldd ./nimiq_miner_cuda.node 
	linux-vdso.so.1 (0x00007ffc255e5000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4bdf880000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4bdf865000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4bdf842000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4bdf650000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f4bdfbbb000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4bdf501000)

But executing "start_gpu.sh" with renamed binary in the script always results in

Segmentation fault

And same with:

$> ./nimiq_miner_cuda.node --version
Segmentation fault 

Compiled with:
cuda 10.2
node 10.19.0

Couple Requests and Questions

I have a couple things but didn't want to create an issue for each one:

  1. is it possible to re-order by pciebus, I use afterburner and it makes it easier to troubleshoot if they match up
  2. it looks like nq-miner detected the wrong memory speed for a couple of my 290x cards on startup, I don't know if that has an effect on it's settings, this machine does crash more than others.
    Error Detecting Memory Speed.txt
  3. can you take a look at Crash Log.txt and see if you have any suggestions, it looks like maybe the driver crashes one card and then the others crash until nq-miner can't connect to the pool
    Crash Log.txt
  4. is it possible to print to a log file?

How to recompile nqminer

ubuntu 18.04
now run ./release_linux.sh
What is the reason for such a mistake?

make: Entering directory '/home/hqw/nq-miner-app/nq-miner-0.99.7/build'
RULE binding_gyp_nimiq_miner_cuda_target_CUDA_compiler_0 Release/obj.target/nimiq_miner_cuda/geni/argon2d.o
/bin/sh: 1: nvcc: not found
nimiq_miner_cuda.target.mk:10: recipe for target 'Release/obj.target/nimiq_miner_cuda/geni/argon2d.o' failed
make: *** [Release/obj.target/nimiq_miner_cuda/geni/argon2d.o] Error 127
make: Leaving directory '/home/hqw/nq-miner-app/nq-miner-0.99.7/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/hqw/nq-miner-app/nq-miner-0.99.7/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-130-generic
gyp ERR! command "/usr/bin/node" "/home/hqw/nq-miner-app/nq-miner-0.99.7/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /home/hqw/nq-miner-app/nq-miner-0.99.7
gyp ERR! node -v v10.23.1
gyp ERR! node-gyp -v v5.1.1
gyp ERR! not ok
error Command failed with exit code 1.

lock memory

You could add the lucky memory command because most coins mineable by your program don't use memory for mining... It will help reduce consumption and stability. If this option already exists, how to do it.

API compatibility

If possible could you please add other stats to your api so awesome miner can read it. Right now it only reads total hashrate. It's missing the pool, shares, hw errors, number of gpus and their stats, clock, fan, temps, and performance.
Thanks

No .exe in repository

am unable to start the miner due to it not being in the repository:

"------------------------START Miner----------------------"
'nq-miner.exe' is not recognized as an internal or external command,
operable program or batch file.
"------------------------END Miner----------------------"
"Something went wrong or you exited"
Press any key to continue . . .

GTX 770 Cuda error

A very high hashrate of >30MH/s is displayed with the GTX 770 when using CUDA. The drivers are up to date. The device is not displayed in the pool and there seems to be no mining progress. opencl works normally.

Error: Failed to initialize miner: clGetPlatformIDs

Hi,
I used https://hub.shortnim.me/setupMiner for setting up the program and installed everything as told.
I get this error after executing ./start_gpu.sh as root:

------------------------START Miner----------------------
[I 19:32:39] NQMiner: NQ Miner 0.99.7 OpenCL starting
Error: Failed to initialize miner: clGetPlatformIDs
at new NativeMiner (/snapshot/nq-miner/src/NativeMiner.js:0:0)
at /snapshot/nq-miner/index.js:0:0
at Object. (/snapshot/nq-miner/index.js:0:0)
at Module._compile (pkg/prelude/bootstrap.js:1261:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:710:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Function.Module.runMain (pkg/prelude/bootstrap.js:1316:12)
at startup (internal/bootstrap/node.js:320:19)
------------------------END Miner----------------------
Something went wrong or you exited

What's the issue? Do I lack some dependencies? Do I have to install something manually? It looks like a runtime error but honestly idk.

Feel free to help. Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.