Coder Social home page Coder Social logo

autolykos-gpu-miner's People

Contributors

catena2w avatar mhssamadani avatar rsmmnt avatar sumvorax 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  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

autolykos-gpu-miner's Issues

Cannot start nanominer on Windows 11 X64

Program 'nanominer.exe' failed to run: The specified executable is not a valid application for this OS platform. Any suggestions? Its running fine on my Win 10 X64 PC. Using the same config_ergo for both.

More convenient error handlng

I made mistake in json file: 192,168.2.33 instead 192.168.2.33

Miner hangs at "Getting block candidate" message. This makes me check everything, node first.

Think it is better to exit with sane error message about wrong json or incorrect params or curl message (internally the not found curl error occured in my case, I suppose).

Jsmn failed to parse latest block

I was also experiencing the "Some of expected fields not present in /block/candidate" issue, so I reverted to a previous version (7b0d424) as per the suggestion from another thread.

I'm however facing with another issue where I'm informed that

2021-02-11 11:30:43,248 INFO [main thread] Waiting for block data to be published by node...
2021-02-11 11:30:43,250 ERROR [main thread] Jsmn failed to parse latest block
2021-02-11 11:30:43,250 ERROR [main thread] Block data: {
"MSG" : "50B6641EE069A33A56860FD0C9D115CB11A0B63F4215F254298FF0DF5DCC3CE0",
"B" : 268967393297257842017928020023141923215807489455853093468192913,
"H" : 419373,
"PK" : "0268D175926EBAB1718BE962832D7E0EB15F0A1ACA951AD835921CC9C557F5BE78"
}

Over and over.

I also tried editing the config.json file to be the testnet node @http://159.203.36.162:9052 but I kept getting: CURL: Timeout was reached.

As far as I can tell the node seems to be synched correctly when compared to the Ergo Explorer, I've also tried rebuilding it just to be safe and I ran into the same issue

I'm on Windows 10 with Nvidia GeForce GTX 1060.

*Update: upon closer examination, winbuild.cmd gives warnings such as

autolykos.cu(575): warning: statement is unreachable
httplib.h(1355): warning: statement is unreachable

along with errors such as:
test.cu(149): error: too few arguments in function call

so now I'm not sure if the miner was even built correctly?

My NVIDIA GPU is not recognized - deviceCount is 0

A month or so ago, Autolykos miner compiled and ran. Now suddenly it doesn't work because the .cu files don't recognize any installed NVIDIA GPU. But when I install and make all of the CUDA examples, THOSE run just fine. Running on UBUNTU 18.04 with a GeForce TITAN X. For example, the utility "deviceQuery" returns the following:
./deviceQuery Starting...

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "GeForce GTX TITAN X"
CUDA Driver Version / Runtime Version 10.1 / 10.1
CUDA Capability Major/Minor version number: 5.2
Total amount of global memory: 12210 MBytes (12802785280 bytes)
(24) Multiprocessors, (128) CUDA Cores/MP: 3072 CUDA Cores
GPU Max Clock rate: 1076 MHz (1.08 GHz)
Memory Clock rate: 3505 Mhz
Memory Bus Width: 384-bit
L2 Cache Size: 3145728 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
Maximum Layered 1D Texture Size, (num) layers 1D=(16384), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(16384, 16384), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 2 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device supports Compute Preemption: No
Supports Cooperative Kernel Launch: No
Supports MultiDevice Co-op Kernel Launch: No
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 10.1, CUDA Runtime Version = 10.1, NumDevs = 1
Result = PASS

libcurl.dll was not found

I have followed all the directions and got miner.exe to compile, however, I get this when I try and open it.
Screenshot 2021-02-16 122505

Rig with 10 GPUs (How to set CUDA_VISIBLE_DEVICES=3080Ti ?)

Hello, got a Rig with 10 GPUs. The newest on is a RTX 3080 Ti Founders Edtion.
I only want to mine with this graphics card. I am an absolute first-timer here.
Do I need to edit config.json to mine with only the one GPU?
This is what my failed attempt looks like.

config.json
{ "node": "http://127.0.0.1:3000" set CUDA_VISIBLE_DEVICES="0"}

Prehash CUDA error

There is an error that occurs from time to time:

2019-05-03 08:02:12,234 INFO [GPU 0 miner] GPU 0 read new block data
ERROR: CUDA failed at src/prehash.cu: 1019
Miner is now terminated

It's at cudaMemcpy call and seems like it tries to read from wrong chunk of memory

   CUDA_CALL(cudaMemcpy(
        (void *)&len, (void *)(invalid + 2 * N_LEN), INDEX_SIZE_8,
        cudaMemcpyDeviceToHost
    ));

so probably kernels before that call can yield corrupted value of invalid

support ergopool.io

The pooling branch of nv miner has been checked by ergopool.io team and it worked properly. Please merge this branch with Master and then transfer it to this repository.

Better config

  • Replace from and to to single parameter node with its ip:port
  • Replace sk to seed. Generate sk as Blake2b256(("1" + seed).getBytes("UTF-8")) mod q

Low performance of a miner

Hello!
I started mining on Ergo mainnet. I noticed that the performance of a miner is very low or there's somethig wrong in the miner. And the arguments are

  1. Hashrate is floating. It may be (in my case) around 13 then may drop to 0.8, then can rise to 2 and so on.
  2. Today my hashrate is more constant and is around 12 MH/s. Curling time is between 7 and 11 sec.
  3. Performance monitor shows that GPU is utilization is low. GPU RAM is utilized less than 50 %. (I'm using gtx 1060).
  4. I did mining several hours today and yesterday and my mining reward=0. That seems also strange to me as I see very fee peers in the network and some reward is expected to be allocated for my node.

What logs are needed to analyse low mining performance ?

Write benchmarks

Write benchmarks that will allow estimating performance improvements in future

LINK : fatal error LNK1561

Tried to compile this miner, and stuck here with error
LINK : fatal error LNK1561
Got this error right after created test.lib and test.exp
How to solve this?
Is there a compiled miner that we can simply download and run instead build by ourselves. Thanks.

Logging

  • Add more logs to always understand what is the current task of the miner
  • Use standard logging format with time and priority

Mining HR stat for each GPU

Hi.
I've found that miner does not output HR statistic for each GPU
Such stat is really useful.
It would be very nice if your miner would periodically print aggregated stat like others miners do

 ETH: GPU0 22.019 Mh/s, GPU1 26.731 Mh/s, GPU2 26.741 Mh/s, GPU3 26.739 Mh/s

Keep precalculated values

Add config boolean parameter kerpPrehashValues, if it is set true - keep precalculated hashes in memory to speed up this phase from block to block.

RTX 3080 Ti - no load.

GPU has not load.

Windows 11 21H2 (Build 22000.376)
Nvidia 3080 Ti Founders Edition (DCH Driver 472.12)
NV_Miner_WIN64_CUDA11_4.2.0
Used this command from Nanopool guide:
ErgoStratumProxy.exe -s ergo-eu1.nanopool.org -p 11111 -u YOUR_WALLET.YOUR_WORKER_NAME/YOUR_EMAIL pause
Screenshot

If i open localhost:3000 got this message:
{"status": "fail"}

Mining with kawpowminer and NBMiner works well.

Edit: My fault. Didnt start after i open .bet the miner.exe.

Remove SM75 for non-cuda 10 builds

Seems we need do something like this for CUDA versions below 10. Otherwise following error occured:

$ make
nvcc fatal   : Unsupported gpu architecture 'compute_75'
make: *** [src/request.o] Error 1
rm -f ./src/request.o ./src/compaction.o ./src/mining.o ./src/reduction.o ./src/cryptography.o ./src/conversion.o ./src/processing.o ./src/prehash.o ./src/definitions.o ./src/jsmn.o ./src/autolykos.o ./lib/lib.a test.out auto.out
nvcc -O3 -c -gencode arch=compute_75,code=sm_75 -arch=sm_30 -gencode arch=compute_75,code=compute_75 src/request.cu -o src/request.o
Makefile:31: recipe for target 'src/request.o' failed

I get this error trying to compile on Ubuntu 18.04.2, Cuda compilation tools release 9.1, V9.1.85.

GPU is notebook's GeForce GT 640M

GPU Mining CUDA error

GPU: Nvidia Quadro M2200 4GB

When running minner.exe, I got this:
1

HERE IS MY GPU/DRIVER/CUDA info:
2
I also tried newer drivers, they did not work as well.

Miner Error: Some of expected fields not present in /block/candidate

Hi

I set up the node and miner. However the output seems to give this error:

2020-08-31 17:50:01,770 INFO [main thread] Waiting for block data to be published by node...
2020-08-31 17:50:01,772 ERROR [main thread] Some of expected fields not present in /block/candidate
2020-08-31 17:50:01,772 ERROR [main thread] Block data: {
  "MSG" : "AB8F6C28FC99A500A15E9F69583D0126E1F7345804664880C99496E890B914C3",
  "B" : 138044468569478798123221394308315099788204054836980398382911928,
  "PK" : "0311A4FB0054F7955366C5FCB224A0BD0A9BF19EF38098E37C0245C594B0ADEA97"
}

My nvidia-smi output:

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla T4            Off  | 00000000:00:1E.0 Off |                    0 |
| N/A   43C    P0    27W /  70W |   7410MiB / 15109MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0     49956      C   ./auto.out                                  7399MiB |
+-----------------------------------------------------------------------------+

I've tried every possible configuration and the node seems to be working ok. What could be the issue?

No accepted shares, but hashrate of 70

I am a 100% worthless noob at mining trying to learn. I have just set up my ERGO node (I think) according to the guide. I have Autolykos mining, and a hashrate of ~70MH/s. However, after mining for 15 minutes, I still am not showing any rejected or accepted shares, and after ~15-16 minutes, Autolykos shuts off saying "[CONNECTION] Disconnected from server."

I would appreciate any constructive feedback possible.

Fix hang-up when running in background

When I start miner in background it writes

[email protected]:~/autolykos/secp256k1$ ./auto.out seckey &
[1] 146
[email protected]:~/autolykos/secp256k1$ Processing:
m     =    0xFBC129FE34339C94 0FAFFEBBF450475C CD7D102F9183F50E F3DE7C673E49C5C5
pk    = 0x03 B45C772BF116D172 6EEF59BACB85A3C5 FC4FBEE8DF905DF8 3B874CEAF08B70A3
w     = 0x03 D5539B177B9BB226 6C80BA57A5BECE68 3C21552F2A8F4171 D641779452C48E58
b     =    0x0000128ED409A276 C52080794767B2F6 BA2E29D263A6F599 6B1B2B00EF435A80
Solution found:
nonce =    0x000000000011249D
d     =    0x000009779CAF1224 2C335905734DA435 3412F540B9FAFA54 46FC9BE39DCDC2DF
Solution posted successfully

and after that nothing happens (while process is alive)

Jsmn failed to parse latest block

2021-02-17 20:03:49,624 INFO [main thread] Waiting for block data to be published by node...
2021-02-17 20:03:49,625 ERROR [main thread] Jsmn failed to parse latest block
2021-02-17 20:03:49,625 ERROR [main thread] Block data: {
"MSG" : "32A701BA6B78F6DB3F28F4BB7E882A57D9BD81C3685291D584FC8EBB034352BA",
"B" : 420048091662132337140161960129935195823449569287933484314916982,
"H" : 428460,
"PK" : "024F83A32E6250289471616A2C410DEA9C332269B1F7F88408BDF105A5D9BA6299"

[FR] Add OpenCL support

Currently the miner supports just NVIDIA CUDA, I think as the official miner, it should support both CUDA and OpenCL used by Intel and AMD...

There is an AMD miner, as a non-official project, but I believe the two should be merged...

Not compiled on CUDA 10.1

Hi!

Seems miner not compile on CUDA 10.1:

root@ubuntu:~/workspace/miners/Autolykos-GPU-miner/secp256k1# make
rm -f ./src/request.o ./src/compaction.o ./src/mining.o ./src/cryptography.o ./src/conversion.o ./src/processing.o ./src/prehash.o ./src/definitions.o ./src/reduction.o ./src/jsmn.o ./src/autolykos.o ./lib/lib.a test.out auto.out
nvcc -O3 -c -gencode arch=compute_75,code=sm_75 -arch=sm_30 -gencode arch=compute_75,code=compute_75 src/request.cu -o src/request.o
src/request.cu(39): warning: a user-provided literal suffix must begin with "_"

src/request.cu(39): error: user-defined literal operator not found

src/request.cu(41): error: user-defined literal operator not found

2 errors detected in the compilation of "/tmp/tmpxft_000034cb_00000000-7_request.compute_75.cpp1.ii".
Makefile:31: recipe for target 'src/request.o' failed
make: *** [src/request.o] Error 1

I have latest nvidia-driver-418 and latest cuda-10.1 installed. Ubuntu 18.04.2

Miner-node communication

Make miner-node communication as efficient as possible.
Probably web sockets or something similar should be useful.

Miner too fragile for user input

Currently, miner stops if user press any button. This is happens very often, especially by users that get used to check if program (or computer) not hanged by pressing space button and see that terminal print it back, and that usually does not break program.

Think would be much better to cancel only on Ctrl+C like most programs do.

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.