BeamMW / opencl-miner

Open CL Miner for BeamHash (Equihash 150,5)
30 stars 30 forks source link

Log messages consistency ++ #12

Closed frankcoderL closed 5 years ago

frankcoderL commented 5 years ago

Log messages consistancy ++

3 changes:

The output will look now like below. It's more easy to read, currently IMHO the log messages are a bit untidy to read. Most log messages changes are before "Start mining". In the future I send maybe some more consistency changes.

Thanks!

$ ./beam-opencl-miner --server beam.sparkpool.com:2222 --key foo.miningrig0
-====================================-

      BEAM Equihash OpenCL miner      
       version:   v1.0.63
       date:      Jan 6th 2019
       algorithm: Equihash 150,5

-====================================-

Parameters: 
 --server:      beam.sparkpool.com:2222
 --key:         foo.miningrig0
 --enable-cpu:  false
 --force3G:     false
 --debug:       false

Setup OpenCL devices:
=====================
Found device 0: GeForce GTX 1050 Ti
          Total memory: 4037 MByte
          Beam OpenCL kernel: using 4 Gbyte
          Beam OpenCL kernel: loading & compiling
          Beam OpenCL kernel: build sucessfully
Found device 1: Radeon RX 560 Series
          Total memory: 4033 MByte
          Free memory:  4014 MByte
          Beam OpenCL kernel: using 4 Gbyte
          Beam OpenCL kernel: loading & compiling
          Beam OpenCL kernel: build sucessfully          
Found device 2: Radeon RX 580 Series
          Device not used. Not included in --devices parameter.
Found device 3: AMD Radeon (TM) RX 480 Graphics
          Device not used. Not included in --devices parameter.

Waiting for work from stratum:
==============================
Connecting to beam.sparkpool.com:2222
Node connection: ok
TLS Handshake:   ok
New job: 1  Difficulty: 100
Solutions (Accepted/Rejected): 0 / 0 Uptime: 1 sec

Start mining:
=============
New job: 2  Difficulty: 100
Solutions (Accepted/Rejected): 0 / 0 Uptime: 6 sec
New job: 3  Difficulty: 100
Solutions (Accepted/Rejected): 0 / 0 Uptime: 16 sec
Performance: 2.40 sol/s 2.70 sol/s | Total: 5.10 sol/s 
New job: 4  Difficulty: 100
Solutions (Accepted/Rejected): 0 / 0 Uptime: 36 sec
Submitting solution to job 4 with nonce 719e3582e12175d8
Solution for work id 4 accepted
Solutions (Accepted/Rejected): 1 / 0 Uptime: 42 sec
Performance: 2.40 sol/s 2.70 sol/s | Total: 5.10 sol/s 
Submitting solution to job 4 with nonce 819e3582e12175d8
Solution for work id 4 accepted
...
$./beam-opencl-miner --help
-====================================-
      BEAM Equihash OpenCL miner      
             version: v1.0.63
             date:    Jan 6th 2019

      alogritm: Equihash 150,5

-====================================-

Parameters: 
 --server:      :
 --key:         
 --enable-cpu:  false
 --force3G:     false
 --debug:       false
Parameters: 
 --help / -h                    Showing this message
 --server <server>:<port>       The BEAM stratum server and port to connect to (required)
 --key <key>                    The BEAM stratum server API key (required)
 --devices <numbers>            A comma seperated list of devices that should be used for mining (default: all in system)
 --debug                        Enable debug mode - verbose information will be displayed
 --enable-cpu                   Enable mining on OpenCL CPU devices
 --force3G                      Force miner to use max 3G for all installed GPUs
 --version                      Prints the version number
$