Git Product home page Git Product logo

zogminer's Introduction

#PSA

The solo mining portion of Zogminer has moved (temporarily) to a clone of the zcash repo found at https://github.com/nginnever/zcash We will make a PR to zcash when it is ready. This repo can still serve as pool miner.

ZCash-gpu-miner

An OpenCL Zcash miner solving Equihash PoW.

Project Status

Status: In active development

Check the project's roadmap to see what's happening at the moment and what's planned next.

Project Status Build Status Gitter chat

Building

First make sure OpenCL is correctly installed in your system. If you are having issues, take a look at our Ubuntu Guide or Fedora Guide.

If you are getting /usr/bin/ld: cannot find -lOpenCL, the error has to do with the driver installing libOpenCL.so as libOpenCL.so.1. You can create a symlink:

$ sudo ln -s /usr/lib/libOpenCL.so.1 /usr/lib/libOpenCL.so

Or for people that do not want to mess with this:

$ sudo apt-get install ocl-icd-opencl-dev

Unix

Install the dependencies. On Debian/Ubuntu-based systems:

$ sudo apt-get install \
      build-essential pkg-config libc6-dev m4 g++-multilib \
      autoconf libtool ncurses-dev unzip git python \
      zlib1g-dev wget bsdmainutils automake opencl-headers \
      mesa-common-dev

On RedHat (Fedora/CentOS) systems:

$ sudo dnf install \
      git pkgconfig automake autoconf ncurses-devel python wget vim-commom \
      gtest-devel gcc gcc-c++ libtool patch opencl-headers mesa-libGL-devel

Fetch our repository with git and run fetch-params.sh like so:

$ git clone https://github.com/nginnever/zogminer.git
$ cd zogminer/
$ ./zcutil/fetch-params.sh

Ensure you have successfully installed all system dependencies as described above. Then run the build, e.g.:

$ ./zcutil/build.sh -j$(nproc)

This should compile our dependencies and build zcash-miner. (Note: if you don't have nproc, then substitute the number of your processors.)

Running

Run GPU test miner

$ ./src/zcash-miner -G

Usage:

$ ./src/zcash-miner -help

Stratum

./src/zcash-miner -G -stratum="stratum+tcp://<address>:<port>" -user=<user> -password=<pass>

Solo mine ZCash

This currently only works on the zcash branch https://github.com/nginnever/zcash

zcashd -G -allgpu (this will load all your cards and solo mine) zcashd -G -deviceid= (this will run a specific card) zcashd -G -allgpu -genproclimit=2 (this will run two threads per card. If you're card has 4gb or more this can work)

First create or modify ~/.zcash/zcash.conf with the following:

testnet=1
addnode=betatestnet.z.cash
rpcuser=username
rpcpassword=password
gen=1
GPU=1
deviceid=<device> (default: 0)

Next run zcashd:

./src/zcashd

Donations

@omaralvarez

ZEC: t1MEUYR6yu9hYQ31ECWmijVwx9R6pAXQSTy

BTC: 18tvCqDFAFWv3jwDqXe5SBs6bmy9Xn4bnN

ETH: 0x000DCB7ccB55faDaEc5C4A13E173a1E30e643867

@AgeManning

ZEC: t1MfAaj8YDwiwFb6RAnNtW4EtzvTvkFGBvV

BTC:1EdijwWG3jYczjWLAqVgg3WgV8prXo5M5C

ETH: 0a9e0a4cfffc9a7c7df37d8300e9f79ad15b986f

@nginnever

ZEC: t1PGgRgVQ14utsD7mp2dzGdykTDFUCKzPQ5

BTC: 1A67XmfyukPNbrMmckBToE8xZPesuM6Ti1

ETH: 0x82a642cAFD6bFc228C7B5Ea0394A0Ad702A7c03D

zogminer's People

Contributors

agemanning avatar lhl avatar nginnever avatar omaralvarez 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  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  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  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

zogminer's Issues

Is this intended to be submitted to the ZCash Miners Contest?

Is this project intended to be submitted to the ZCash Miners contest (http://zcashminers.org)? If so is it expected to be completed in time for launch?

If there is still a lot that needs to be completed I may know some developers including myself that would be interested in collaborating on the project so that it can be submitted to the contest and completed before the launch.

cannot find -lOpenCL

when i put in "./zcutil/build.sh -j$(nproc)" it says "cannot find -lOpenCL" what should i do?

errors while working

Hello. Thanks for your working.
I have issuses with miner.

  1. at start i have this messages

[OPENCL]:/tmp/OCL2139T5.cl:97:14: warning: passing 'const void ' to parameter of type 'void *' discards qualifiers
memcpy(&w, src, sizeof w);
^~~
/tmp/OCL2139T5.cl:83:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2139T5.cl:104:14: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers
memcpy(&w, src, sizeof w);
^~~
/tmp/OCL2139T5.cl:83:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2139T5.cl:351:20: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers
memcpy( block, key, keylen );
^~~
/tmp/OCL2139T5.cl:83:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2139T5.cl:431:30: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, fill ); /
Fill buffer */
^~
/tmp/OCL2139T5.cl:83:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2139T5.cl:442:30: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, inlen );
^~
/tmp/OCL2139T5.cl:83:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2139T5.cl:521:26: warning: unknown OpenCL extension 'cl_intel_printf' - ignoring

pragma OPENCL EXTENSION cl_intel_printf : enable

                     ^

6 warnings generated.

  1. while mining gets this messages and 0 hashe on pool.

Solutions: 0
Kernel run took 150 ms. (0 H/s)
Running Equihash solver with nNonce = 000000000000000000000000000000742f00002800000000000000002800002e
[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
Solutions: 3
Kernel run took 207 ms. (14.4928 H/s)
Checking solution 1

  • Checking solution against target...Found solution satisfying the server target
    Solution found; Submitting to zec.suprnova.cc...
    000000000000000000000000000000742f00002800000000000000002800002e
    Invalid solution: invalid collision length between StepRows
    X[i] = 0775d80eadc30e8be60c534706692e02c7090691940e07680df2330c6445
    X[i+1] = 0022ba0670930da37a002bc0013edc00e09f02b8f90356b8009a880eae8d
    [WARN] FAILURE: Miner gave incorrect result!
    Checking solution 2
  • Checking solution against target... too large.
    Checking solution 3
  • Checking solution against target... too large.
    Running Equihash solver with nNonce = 000000000000000000000000000000752f00002800000000000000002800002e
    [OPENCL]:Running Solver...
    Step: 1...
    Step: 2...
    Step: 3...
    Step: 4...
    Step: 5...
    Step: 6...
    Step: 7...
    Step: 8...

The system is ubuntu 16.04, gpu rx480 8gb

terminate called without an active exception

./src/zcash-miner -G -stratum="stratum+tcp://us-east1.zcash.miningpoolhub.com:20570" -user=test -password=x
[OPENCL]:Found suitable OpenCL device [Tonga] with 4108320768 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Tonga(OpenCL 2.0 AMD-APP (1800.11))
terminate called without an active exception
Aborted (core dumped)

Test mode works OK, aside from #48

built with gcc 6.1.1, will try with 4.8.4
edit: same result with gcc 4.8.4

Segmentation fault (core dumped)

I'm on ubuntu 16.04 (64bit) running an rx480 with custom rom (and the master repo as of 12 hours or so ago) but got a segmentation fault after about 20 minutes i think. I started it with
./zcash-miner -G -genproclimit=2 -stratum="stratum+tcp://zec.suprnova.cc:2142" -user=username -password=password
Here are the last few print statements of that's of any help...

Invalid solution: invalid collision length between StepRows
Invalid solution: invalid collision length between StepRows
Kernel run took 85 ms. (22.3549 H/s)
Kernel run took 80 ms. (22.5525 H/s)
Kernel run took 83 ms. (22.3568 H/s)
Kernel run took 82 ms. (22.5546 H/s)
Kernel run took 81 ms. (22.3511 H/s)
Kernel run took 83 ms. (22.5533 H/s)
Kernel run took 83 ms. (22.3505 H/s)
Kernel run took 80 ms. (22.5577 H/s)
Kernel run took 84 ms. (22.346 H/s)
Kernel run took 86 ms. (22.5507 H/s)
Kernel run took 82 ms. (22.343 H/s)
Kernel run took 87 ms. (22.556 H/s)
Segmentation fault (core dumped)

Any ideas? I'll start running it again to see if it consistently seg faults again

[OPENCL]:CL ERROR:CL_OUT_OF_RESOURCES

[OPENCL]:Found suitable OpenCL device [Pitcairn] with 2096103424 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Pitcairn(OpenCL 1.2 AMD-APP (1800.11))
[OPENCL]:Printing program log
[OPENCL]:"/tmp/OCLcdLVuG.cl", line 60: warning: arithmetic on pointer to void or
          function type
      for ( ; n-- ; s1++, s2++) {
                      ^

"/tmp/OCLcdLVuG.cl", line 60: warning: arithmetic on pointer to void or
          function type
      for ( ; n-- ; s1++, s2++) {
                            ^

"/tmp/OCLcdLVuG.cl", line 96: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
    memcpy(&w, src, sizeof w);
               ^

"/tmp/OCLcdLVuG.cl", line 103: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
    memcpy(&w, src, sizeof w);
               ^

"/tmp/OCLcdLVuG.cl", line 195: warning: integer conversion resulted in a
          change of sign
    S->f[1] = -1;
              ^

"/tmp/OCLcdLVuG.cl", line 215: warning: integer conversion resulted in a
          change of sign
    S->f[0] = -1;
              ^

"/tmp/OCLcdLVuG.cl", line 350: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
      memcpy( block, key, keylen );
                     ^

"/tmp/OCLcdLVuG.cl", line 430: warning: argument of type "const uint8_t *" is
          incompatible with parameter of type "void *"
        memcpy( S->buf + left, in, fill ); /* Fill buffer */
                               ^

"/tmp/OCLcdLVuG.cl", line 441: warning: argument of type "const uint8_t *" is
          incompatible with parameter of type "void *"
        memcpy( S->buf + left, in, inlen );
                               ^

"/tmp/OCLcdLVuG.cl", line 93: warning: function "load32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) load32( const void *src )
                                ^

"/tmp/OCLcdLVuG.cl", line 117: warning: function "load48" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint64_t) load48( const void *src )
                                ^

"/tmp/OCLcdLVuG.cl", line 129: warning: function "store48" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(void) store48( void *dst, uint64_t w )
                            ^

"/tmp/OCLcdLVuG.cl", line 140: warning: function "rotl32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) rotl32( const uint32_t w, const unsigned c )
                                ^

"/tmp/OCLcdLVuG.cl", line 145: warning: function "rotl64" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint64_t) rotl64( const uint64_t w, const unsigned c )
                                ^

"/tmp/OCLcdLVuG.cl", line 150: warning: function "rotr32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) rotr32( const uint32_t w, const unsigned c )
                                ^

"/tmp/OCLcdLVuG.cl", line 219: warning: function "blake2b_clear_lastblock" was
          declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_clear_lastblock( blake2b_state *S )
                           ^

"/tmp/OCLcdLVuG.cl", line 237: warning: function
          "blake2b_param_set_digest_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length )
                           ^

"/tmp/OCLcdLVuG.cl", line 243: warning: function "blake2b_param_set_fanout"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_fanout( blake2b_param *P, const uint8_t fanout )
                           ^

"/tmp/OCLcdLVuG.cl", line 249: warning: function "blake2b_param_set_max_depth"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_max_depth( blake2b_param *P, const uint8_t depth )
                           ^

"/tmp/OCLcdLVuG.cl", line 255: warning: function
          "blake2b_param_set_leaf_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_leaf_length( blake2b_param *P, const uint32_t leaf_length )
                           ^

"/tmp/OCLcdLVuG.cl", line 261: warning: function
          "blake2b_param_set_node_offset" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_offset( blake2b_param *P, const uint64_t node_offset )
                           ^

"/tmp/OCLcdLVuG.cl", line 267: warning: function "blake2b_param_set_node_depth"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_depth( blake2b_param *P, const uint8_t node_depth )
                           ^

"/tmp/OCLcdLVuG.cl", line 273: warning: function
          "blake2b_param_set_inner_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_inner_length( blake2b_param *P, const uint8_t inner_length )
                           ^


[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
[OPENCL]:CL ERROR:CL_OUT_OF_RESOURCES
Kernel run took 278 ms. (117799 H/s)
Checking solution 1
Checking solution 2
Checking solution 3
...
Segmentation fault

gpusolver.h:36:19: fatal error: CL/cl.h: No such file or directory

got this error compiling on ububntu 16 + amdgpu pro installed


In file included from miner.cpp:27:0:
gpusolver.h:36:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
Makefile:4125: recipe for target 'libbitcoin_server_a-miner.o' failed
make[2]: *** [libbitcoin_server_a-miner.o] Error 1

make[2]: *** Waiting for unfinished jobs....

OPENCL error when starting zcash-miner

[OPENCL]:Found suitable OpenCL device [Tahiti] with 3179282432 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Tahiti(OpenCL 1.2 AMD-APP (1800.11))
[OPENCL]:Printing program log
[OPENCL]:"/tmp/OCLRQQ3gr.cl", line 287: warning: integer conversion resulted in a
change of sign
v[14] ^= -1;
^

build against fglrx yields /usr/bin/ld: cannot find -lOpenCL

clinfo shows devices fine.

build goes OK until dies with /usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status

not using amdgpu-pro due to headless remote system mining ETH on R9 390s.

is there a workaround for this, as installation of libopencl1-amdgpu-pro_16.40-348864_amd64.deb brings no relief?

Multiple GPU mining

So far you can list and mine with a specific GPU, but does it allow to select up to 6 or do you need to run 6 instances (and does that work?)

Frontend phase failed compilation.

Ubuntu 14.04
AMD Radeon 7970

Running the test miner
[OPENCL]:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] Tahiti
    CL_DEVICE_TYPE: GPU
    CL_DEVICE_GLOBAL_MEM_SIZE: 2883584000
    CL_DEVICE_MAX_MEM_ALLOC_SIZE: 1602748416
    CL_DEVICE_MAX_WORK_GROUP_SIZE: 256

Number of Platforms:1
[OPENCL]:Found suitable OpenCL device [Tahiti] with 2883584000 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Tahiti(OpenCL 1.2 AMD-APP (1800.11))
[OPENCL]:"/tmp/OCLZw2eDE.cl", line 61: warning: arithmetic on pointer to void or
          function type
      for ( ; n-- ; s1++, s2++) {
                      ^

"/tmp/OCLZw2eDE.cl", line 61: warning: arithmetic on pointer to void or
          function type
      for ( ; n-- ; s1++, s2++) {
                            ^

"/tmp/OCLZw2eDE.cl", line 97: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
    memcpy(&w, src, sizeof w);
               ^

"/tmp/OCLZw2eDE.cl", line 104: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
    memcpy(&w, src, sizeof w);
               ^

"/tmp/OCLZw2eDE.cl", line 196: warning: integer conversion resulted in a
          change of sign
    S->f[1] = -1;
              ^

"/tmp/OCLZw2eDE.cl", line 216: warning: integer conversion resulted in a
          change of sign
    S->f[0] = -1;
              ^

"/tmp/OCLZw2eDE.cl", line 351: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
      memcpy( block, key, keylen );
                     ^

"/tmp/OCLZw2eDE.cl", line 431: warning: argument of type "const uint8_t *" is
          incompatible with parameter of type "void *"
        memcpy( S->buf + left, in, fill ); /* Fill buffer */
                               ^

"/tmp/OCLZw2eDE.cl", line 442: warning: argument of type "const uint8_t *" is
          incompatible with parameter of type "void *"
        memcpy( S->buf + left, in, inlen );
                               ^

"/tmp/OCLZw2eDE.cl", line 521: error: can't enable all OpenCL extensions or
          unrecognized OpenCL extension
  #pragma OPENCL EXTENSION cl_intel_printf : enable
                           ^

"/tmp/OCLZw2eDE.cl", line 620: error: argument of type "__global digest_t *"
          is incompatible with parameter of type "__global void *"
              memcpy_step0(dst_digests + new_el->digest_index, new_digest + (j*EQUIHASH_N/8), DIGEST_SIZE);
                           ^

"/tmp/OCLZw2eDE.cl", line 94: warning: function "load32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) load32( const void *src )
                                ^

"/tmp/OCLZw2eDE.cl", line 118: warning: function "load48" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint64_t) load48( const void *src )
                                ^

"/tmp/OCLZw2eDE.cl", line 130: warning: function "store48" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(void) store48( void *dst, uint64_t w )
                            ^

"/tmp/OCLZw2eDE.cl", line 141: warning: function "rotl32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) rotl32( const uint32_t w, const unsigned c )
                                ^

"/tmp/OCLZw2eDE.cl", line 146: warning: function "rotl64" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint64_t) rotl64( const uint64_t w, const unsigned c )
                                ^

"/tmp/OCLZw2eDE.cl", line 151: warning: function "rotr32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) rotr32( const uint32_t w, const unsigned c )
                                ^

"/tmp/OCLZw2eDE.cl", line 220: warning: function "blake2b_clear_lastblock" was
          declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_clear_lastblock( blake2b_state *S )
                           ^

"/tmp/OCLZw2eDE.cl", line 238: warning: function
          "blake2b_param_set_digest_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length )
                           ^

"/tmp/OCLZw2eDE.cl", line 244: warning: function "blake2b_param_set_fanout"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_fanout( blake2b_param *P, const uint8_t fanout )
                           ^

"/tmp/OCLZw2eDE.cl", line 250: warning: function "blake2b_param_set_max_depth"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_max_depth( blake2b_param *P, const uint8_t depth )
                           ^

"/tmp/OCLZw2eDE.cl", line 256: warning: function
          "blake2b_param_set_leaf_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_leaf_length( blake2b_param *P, const uint32_t leaf_length )
                           ^

"/tmp/OCLZw2eDE.cl", line 262: warning: function
          "blake2b_param_set_node_offset" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_offset( blake2b_param *P, const uint64_t node_offset )
                           ^

"/tmp/OCLZw2eDE.cl", line 268: warning: function "blake2b_param_set_node_depth"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_depth( blake2b_param *P, const uint8_t node_depth )
                           ^

"/tmp/OCLZw2eDE.cl", line 274: warning: function
          "blake2b_param_set_inner_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_inner_length( blake2b_param *P, const uint8_t inner_length )
                           ^

2 errors detected in the compilation of "/tmp/OCLZw2eDE.cl".
Frontend phase failed compilation.

Freezing

[OPENCL]:Running Solver...
Step: 1...
Step: 2...
......
Step: 8...
[OPENCL]:CL ERROR:CL_OUT_OF_RESOURCES
Kernel run took 123 ms. (62361 H/s)
Checking solution 1
......
Checking solution 28
Invalid solution: invalid collision length between StepRows
Valid block found!
[OPENCL]:Running Solver...
Step: 1...
Step: 2...
......
Step: 8...

^C^M^Z
freezing and not action !!!!

sudo dpkg -l fglrx fglrx-core fglrx-amdcccle fglrx-dev
||/ Name Version Architecture Description
+++-===============-=================-=============-=====================================================
ii fglrx 2:15.302-0ubuntu1 amd64 Video driver for the AMD graphics accelerators
ii fglrx-amdcccle 2:15.302-0ubuntu1 amd64 Catalyst Control Center for the AMD graphics accelera
ii fglrx-core 2:15.302-0ubuntu1 amd64 Minimal video driver for the AMD graphics accelerator
ii fglrx-dev 2:15.302-0ubuntu1 amd64 Video driver for the AMD graphics accelerators (devel

OpenCL Warnings passing argument to parameters

Hi,

When starting the miner I get the below warnings. Don't know if they are relevant or not:

[OPENCL]:Found suitable OpenCL device [Hawaii] with 4206792704 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Hawaii(OpenCL 1.2 AMD-APP (2117.7))
[OPENCL]:Printing program log
[OPENCL]:/tmp/OCL2497T5.cl:96:14: warning: passing 'const void ' to parameter of type 'void *' discards qualifiers
memcpy(&w, src, sizeof w);
^~~
/tmp/OCL2497T5.cl:82:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2497T5.cl:103:14: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers
memcpy(&w, src, sizeof w);
^~~
/tmp/OCL2497T5.cl:82:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2497T5.cl:350:20: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers
memcpy( block, key, keylen );
^~~
/tmp/OCL2497T5.cl:82:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2497T5.cl:430:30: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, fill ); /
Fill buffer */
^~
/tmp/OCL2497T5.cl:82:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL2497T5.cl:441:30: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, inlen );
^~
/tmp/OCL2497T5.cl:82:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
5 warnings generated.

Ubuntu 14.04 and 16.04 segmentation fault

The miner does a segmentation fault after few minute running

in /var/log/syslog
Oct 30 18:55:08 pcd70 kernel: [80037.102607] zcash-miner[25707]: segfault at 0 ip 0000558fdeb632f6 sp 00007f4897fae870 error 4 in zcash-miner[558fdeb22000+31d000]

There is something to do ?

Miner not getting OpenCL mode,

Zcash Miner version v1.0.0-beta2-00e562c (2016-10-24 16:56:16 +0200)
Connecting to stratum server zmine.io:1337
Connected!
Starting miner
ZcashMinerThread started
Subscribed to stratum server
Target set to 0fffffff00000000000000000000000000000000000000000000000000000000
Received new job #1238-1477329994
Authorized worker tmGUdN9CE1wNb7znydNHYiyw8VzqmApnLrp
Running Equihash solver with nNonce = 000000000000000000000000000000006f01000000 0000000000000000000000
Generating first list
Round 1:

  • Sorting list
  • Finding collisions
    Round 2:
  • Sorting list
  • Finding collisions
    Round 3:
  • Sorting list
  • Finding collisions
    Round 4:
  • Sorting list
  • Finding collisions
    Round 5:
  • Sorting list
  • Finding collisions
    Round 6:
  • Sorting list
  • Finding collisions
    Round 7:
  • Sorting list
  • Finding collisions
    Round 8:
  • Sorting list
    ^Z

error: 'long long' type is not supported

Ubuntu 16.04 with Nvidia GTX 960.
I just compiled the head c2341ba
compilation successful.
When trying to run, I get:

Running the test miner
OPENCL:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] GeForce GTX 960
CL_DEVICE_TYPE: GPU
CL_DEVICE_GLOBAL_MEM_SIZE: 4294770688
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 1073692672
CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024

Number of Platforms:1
OPENCL:Found suitable OpenCL device [GeForce GTX 960] with 4294770688 bytes of GPU memory
OPENCL:Using platform: NVIDIA CUDA
OPENCL:Using device: GeForce GTX 960(OpenCL 1.2 CUDA)
OPENCL::69:5: error: 'long long' type is not supported
0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL,
^
:69:28: error: 'long long' type is not supported
0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL,
^
:70:5: error: 'long long' type is not supported
0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL,
^
:70:28: error: 'long long' type is not supported
0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL,
^
:71:5: error: 'long long' type is not supported
0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL,
^
:71:28: error: 'long long' type is not supported
0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL,
^
:72:5: error: 'long long' type is not supported
0x1f83d9abfb41bd6bULL, 0x5be0cd19137e2179ULL
^
:72:28: error: 'long long' type is not supported
0x1f83d9abfb41bd6bULL, 0x5be0cd19137e2179ULL
^
:112:16: warning: passing 'const attribute((address_space(16776963))) void attribute((address_space(16776963)))' to parameter of type 'attribute((address_space(16776963))) void *' discards qualifiers
memcpy(&w, src, sizeof(w));
^~~
:93:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t len) {
^
:184:24: error: implicit conversion from address space "generic" to address space "private" is not supported when passing to parameter of destination type
m[i] = load64( block + i * sizeof( m[i] ) );
^~~~~~~~~~~~~~~~~~~~~~~~~~
:107:29: note: passing argument to parameter 'src' here
ulong load64( *const void src )
^
:252:36: warning: passing 'const __attribute
((address_space(16776963))) uchar *attribute((address_space(16776963)))' (aka 'const attribute((address_space(16776963))) unsigned char *attribute((address_space(16776963)))') to parameter of type 'attribute((address_space(16776963))) void *' discards qualifiers
memcpy( S->buf + left, in, fill ); /
Fill buffer */
^~
:93:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t len) {
^
:267:36: warning: passing 'const attribute((address_space(16776963))) uchar *attribute((address_space(16776963)))' (aka 'const attribute((address_space(16776963))) unsigned char *attribute((address_space(16776963)))') to parameter of type 'attribute((address_space(16776963))) void *' discards qualifiers
memcpy( S->buf + left, in, inlen );
^~
:93:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t len) {
^

Kernel run took 0 ms. (inf H/s)

Kernel run took 0 ms. (inf H/s)

Kernel run took 0 ms. (inf H/s)

Kernel run took 0 ms. (inf H/s)

I just ran HEAD (f6baa2f) with the new kernel on Nvidia GTX 960.
OS is ubuntu 16.04.
It looks like it starts mining for one cycle, and then not any more.
Do I have to run also zcashd? is there a way to see the status of the mining except the log that it spits?

Running the test miner
OPENCL:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] GeForce GTX 960
CL_DEVICE_TYPE: GPU
CL_DEVICE_GLOBAL_MEM_SIZE: 4294770688
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 1073692672
CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024

Number of Platforms:1
OPENCL:Found suitable OpenCL device [GeForce GTX 960] with 4294770688 bytes of GPU memory
OPENCL:Using platform: NVIDIA CUDA
OPENCL:Using device: GeForce GTX 960(OpenCL 1.2 CUDA)
OPENCL:Printing program log
OPENCL:

OPENCL:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...

Kernel run took 107 ms. (9.34579 H/s)

Kernel run took 0 ms. (inf H/s)

Kernel run took 0 ms. (inf H/s)

Kernel run took 0 ms. (inf H/s)

Kernel run took 0 ms. (inf H/s)
[..]

Segmentation fault from custom rom

I have 2 rx 480s - one with a custom rom (lower clock, higher mem) and one without. The one without performs just fine consistently but the one with the custom rom continuously seg faults every few minutes.

Running with ./zcash-miner -G -S=1 -stratum="stratum+tcp://zec.suprnova.cc:2142" -user=u -password=p

memory warning.

/tmp/OCL1776T5.cl:475:30: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, inlen );

ERROR: No suitable GPU found! No work will be performed!

➜  zogminer git:(master) ./src/zcash-miner -listdevices
Number of Platforms:1
[OPENCL]:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] GeForce GTX 1060 3GB
    CL_DEVICE_TYPE: GPU
    CL_DEVICE_GLOBAL_MEM_SIZE: 3159687168
    CL_DEVICE_MAX_MEM_ALLOC_SIZE: 789921792
    CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024

➜  zogminer git:(master) ./src/zcash-miner -G          
Running the test miner
ERROR: No suitable GPU found! No work will be performed!
^C

[OPENCL]:CL ERROR:NVIDIA: ILLEGAL READ OR WRITE TO A BUFFER

HEAD:
56d0e00

Running the test miner
[OPENCL]:Found suitable OpenCL device [GeForce GTX 960] with 4294770688 bytes of GPU memory
[OPENCL]:Using platform: NVIDIA CUDA
[OPENCL]:Using device: GeForce GTX 960(OpenCL 1.2 CUDA)
[OPENCL]:Printing program log
[OPENCL]:

is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
is valid: 1
Valid solution found!
Kernel run took 357 ms. (5.41385 H/s)
is valid: 1
Valid solution found!
[..]
is valid: 0
Invalid solution found!
[OPENCL]:CL ERROR:NVIDIA: ILLEGAL READ OR WRITE TO A BUFFER
Invalid solution: invalid collision length between StepRows
is valid: 0
Invalid solution found!
[OPENCL]:CL ERROR:NVIDIA: ILLEGAL READ OR WRITE TO A BUFFER
Kernel run took 0 ms. (inf H/s)
Invalid solution: invalid collision length between StepRows
is valid: 0

"/usr/bin/ld: cannot find -lOpenCL" build error on Ubuntu 16.04

I have done 2 clean install and uninstalls of the AMDGPU-Pro Driver (Version 16.40 for Ubuntu 16.04) as per the build instructions & link but I keep getting the "/usr/bin/ld: cannot find -lOpenCL" error when I execute the "$ ./zcutil/build.sh -j$(nproc)" command. My clinfo output indicates that OpenCL is correctly installed so I'm guessing that something about my setup (all brand new, straight out-of-box installation) makes it so that the Zogminer build doesn't have the right dynamic links to my OpenGL library?

My specs: Intel i5 AMD RX470 Ubuntu 16.04

~$ clinfo
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.0 AMD-APP (2117.10)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Extensions function suffix AMD

Platform Name AMD Accelerated Parallel Processing
Number of devices 2
Device Name Ellesmere
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 1.2 AMD-APP (2117.10)
Driver Version 2117.10 (VM)
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Profile FULL_PROFILE

Invalid solution: Index tree incorrectly ordered

GTX 960 with 4ae4d28
I only get "Invalid solution found!"

Running the test miner
[OPENCL]:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] GeForce GTX 960
CL_DEVICE_TYPE: GPU
CL_DEVICE_GLOBAL_MEM_SIZE: 4294770688
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 1073692672
CL_DEVICE_MAX_WORK_GROUP_SIZE: 1024

Number of Platforms:1
[OPENCL]:Found suitable OpenCL device [GeForce GTX 960] with 4294770688 bytes of GPU memory
[OPENCL]:Using platform: NVIDIA CUDA
[OPENCL]:Using device: GeForce GTX 960(OpenCL 1.2 CUDA)
[OPENCL]:Printing program log
[OPENCL]:

[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
Solutions: 4
Kernel run took 420 ms. (9.52381 H/s)
Checking solution 1
Invalid solution: Index tree incorrectly ordered
is valid: 0
Invalid solution found!
[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
Solutions: 1
Kernel run took 371 ms. (6.10961 H/s)
Checking solution 1
Invalid solution: Index tree incorrectly ordered
is valid: 0
Invalid solution found!
[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...

hashrate quickly drops

Ubuntu 14.04, fglrx, Zcash Miner version v1.0.0-beta2-331ea50 (latest as of 2016-10-30)

./src/zcash-miner -G
Running the test miner
[OPENCL]:Found suitable OpenCL device [Tonga] with 4108320768 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Tonga(OpenCL 2.0 AMD-APP (1800.11))
[OPENCL]:Printing program log
[OPENCL]:"/tmp/OCLmHpXNE.cl", line 287: warning: integer conversion resulted in a
change of sign
v[14] ^= -1;
^

Kernel run took 83 ms. (35.5581 H/s)
Kernel run took 76 ms. (31.5199 H/s)
Kernel run took 75 ms. (25.4637 H/s)
Kernel run took 85 ms. (23.5684 H/s)
Kernel run took 81 ms. (21.3239 H/s)
Kernel run took 76 ms. (20.5733 H/s)
Kernel run took 82 ms. (21.8986 H/s)
Kernel run took 78 ms. (22.1938 H/s)
Kernel run took 97 ms. (22.2265 H/s)
Kernel run took 87 ms. (21.4204 H/s)
Kernel run took 81 ms. (22.3411 H/s)
Kernel run took 82 ms. (22.4499 H/s)
Kernel run took 73 ms. (23.3142 H/s)
Kernel run took 62 ms. (21.6489 H/s)
Kernel run took 60 ms. (20.2057 H/s)
Kernel run took 61 ms. (18.9428 H/s)
Kernel run took 60 ms. (17.8285 H/s)
Kernel run took 60 ms. (16.838 H/s)
Kernel run took 60 ms. (15.9518 H/s)
Kernel run took 61 ms. (15.1542 H/s)
Kernel run took 60 ms. (14.4326 H/s)
Kernel run took 60 ms. (13.7766 H/s)
Kernel run took 60 ms. (13.1776 H/s)
Kernel run took 60 ms. (12.6285 H/s)
Kernel run took 61 ms. (12.1234 H/s)
Kernel run took 61 ms. (11.6571 H/s)
Kernel run took 61 ms. (11.2254 H/s)
Kernel run took 60 ms. (10.8245 H/s)
Kernel run took 60 ms. (10.4512 H/s)

valid block found, but never added to wallet?

Solutions: 2
Kernel run took 143 ms. (10.2743 H/s)
Checking solution 1
Checking solution 2
ZcashMiner:
proof-of-work found
prevHash: 033dcfd734b8faccd577d475df554d0afb5d2308eda830f7af9301190949be8d
hash: 064872ee852880c2174f3a6ebf294d6117591ab193308c2a2ae49ca07642e5bd
target: 0f0f0f0000000000000000000000000000000000000000000000000000000000
duration: 4
Valid block found!

loads of these messages, but the test wallet stays empty?

NVIDIA GPU support

I have a machine with four NVIDIA GPUs and starting the miner with -G — which to my understanding is not CUDA but OpenCL — causes it to blow up (there are other issue reports with the same error messages).

When can we expect proper NVIDIA GPU support to come aboard? And what about CUDA? Right now this machine is doing a paltry 16 Sol/s. It should be capable of pulling hundreds with the use of all four GPUs.

Alternatively: is there another GPU miner?

Add donation BTC address to readme

Please can fund your project / appriciate the work you've done by sending a donation.

Perhaps add a IRC channel somewhere to report issues, like build errors

immediate segfault + [OPENCL]:CL ERROR:CL_OUT_OF_RESOURCES

with master HEAD:
3501698

./src/zcash-miner -G
Running the test miner
[OPENCL]:Found suitable OpenCL device [GeForce GTX 960] with 4294770688 bytes of GPU memory
[OPENCL]:Using platform: NVIDIA CUDA
[OPENCL]:Using device: GeForce GTX 960(OpenCL 1.2 CUDA)
[OPENCL]:Printing program log
[OPENCL]:

Solving nonce 0000000000000000000000000000000000000000000000000000000000000000
[OPENCL]:CL ERROR:CL_OUT_OF_RESOURCES
Solutions: 486565743
Segmentation fault (core dumped)

Multi-GPU does not work now... ?

I have 2 GPU, but test miner does not use one of them.

Zcash Miner version v1.0.0-beta2-f6baa2f (2016-10-21 13:19:08 +0200)
Running the test miner
[OPENCL]:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] Ellesmere
CL_DEVICE_TYPE: GPU
CL_DEVICE_GLOBAL_MEM_SIZE: 8515809280
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 4244635648
CL_DEVICE_MAX_WORK_GROUP_SIZE: 256
[1] Ellesmere
CL_DEVICE_TYPE: GPU
CL_DEVICE_GLOBAL_MEM_SIZE: 8270716928
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 4244635648
CL_DEVICE_MAX_WORK_GROUP_SIZE: 256

Number of Platforms:1
[OPENCL]:Found suitable OpenCL device [Ellesmere] with 8515809280 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Ellesmere(OpenCL 1.2 AMD-APP (2117.7))
[OPENCL]:Printing program log
[OPENCL]:/tmp/OCL3061T5.cl:130:14: warning: passing 'const void ' to parameter of type 'void *' discards qualifiers
memcpy(&w, src, sizeof w);
^~~
/tmp/OCL3061T5.cl:116:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL3061T5.cl:137:14: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers
memcpy(&w, src, sizeof w);
^~~
/tmp/OCL3061T5.cl:116:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL3061T5.cl:384:20: warning: passing 'const void *' to parameter of type 'void *' discards qualifiers
memcpy( block, key, keylen );
^~~
/tmp/OCL3061T5.cl:116:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL3061T5.cl:464:30: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, fill ); /
Fill buffer */
^~
/tmp/OCL3061T5.cl:116:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
/tmp/OCL3061T5.cl:475:30: warning: passing 'const uint8_t *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, inlen );
^~
/tmp/OCL3061T5.cl:116:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t n) {
^
5 warnings generated.

Running Equihash solver with nNonce = 0000000000000000000000000000000000000000000000000000000000000000
[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
Kernel run took 184 ms. (5.43478 H/s)
Solver took 457.75 Mcycles

Running Equihash solver with nNonce = 0000000000000000000000000000000000000000000000000000000000000001
[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
Kernel run took 121 ms. (8.26446 H/s)
Solver took 302.47 Mcycles

Running Equihash solver with nNonce = 0000000000000000000000000000000000000000000000000000000000000002
[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
Kernel run took 121 ms. (8.26446 H/s)
Solver took 303.10 Mcycles

AMD 480 GPU, Ubuntu 16.04. hung up .

here is log info:
root@st:~# zcash-miner -stratum=stratum+tcp://zmine.io:1337 -user=tmGUdN9CE1wNb7znydNHYiyw8VzqmApnLrp -printtoconsole -debug

Zcash Miner version v1.0.0-beta2-c2341ba (2016-10-16 19:03:18 +0200)
Connecting to stratum server zmine.io:1337
Connected!
Starting miner
ZcashMinerThread started
[OPENCL]:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] Ellesmere
CL_DEVICE_TYPE: GPU
CL_DEVICE_GLOBAL_MEM_SIZE: 4266250240
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 3019828224
CL_DEVICE_MAX_WORK_GROUP_SIZE: 256

Number of Platforms:1
[OPENCL]:Found suitable OpenCL device [Ellesmere] with 4266250240 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Ellesmere(OpenCL 1.2 AMD-APP (2117.7))
Subscribed to stratum server
Target set to 0fffffff00000000000000000000000000000000000000000000000000000000
Received new job #8982-1476957611
Authorized worker tmGUdN9CE1wNb7znydNHYiyw8VzqmApnLrp
[OPENCL]:Printing program log
[OPENCL]:/tmp/OCL2521T5.cl:112:16: warning: passing 'const void ' to parameter of type 'void *' discards qualifiers
memcpy(&w, src, sizeof(w));
^~~
/tmp/OCL2521T5.cl:93:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t len) {
^
/tmp/OCL2521T5.cl:252:36: warning: passing 'const uchar *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, fill ); /
Fill buffer */
^~
/tmp/OCL2521T5.cl:93:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t len) {
^
/tmp/OCL2521T5.cl:267:36: warning: passing 'const uchar *' (aka 'const unsigned char *') to parameter of type 'void *' discards qualifiers
memcpy( S->buf + left, in, inlen );
^~
/tmp/OCL2521T5.cl:93:31: note: passing argument to parameter 'src' here
void memcpy(void *dest, void *src, size_t len) {
^
3 warnings generated.

Received new job #8983-1476957701
Running Equihash solver with nNonce = 0000000000000000000000000000000075000000000000000000000000000000
[OPENCL]:Running List Generation...100 Times :)
[OPENCL]:Iteration: 0 Result: 3
[OPENCL]:Iteration: 10 Result: 3
[OPENCL]:Iteration: 20 Result: 3
[OPENCL]:Iteration: 30 Result: 3
[OPENCL]:Iteration: 40 Result: 3
[OPENCL]:Iteration: 50 Result: 3
[OPENCL]:Iteration: 60 Result: 3
[OPENCL]:Iteration: 70 Result: 3
[OPENCL]:Iteration: 80 Result: 3
[OPENCL]:Iteration: 90 Result: 3
Kernel run took 83773 ms. (0.011937 H/s)
Running Equihash solver with nNonce = 0000000000000000000000000000000175000000000000000000000000000000
[OPENCL]:Running List Generation...100 Times :)
[OPENCL]:Iteration: 0 Result: 3
^CDisconnecting
Stopping miner
[OPENCL]:Iteration: 10 Result: 3
^C[WARN] read_until: Bad file descriptor
Reconnecting in 3 seconds...
^Cterminate called after throwing an instance of 'boost::exception_detail::clone_implboost::exception_detail::error_info_injector<boost::system::system_error >'
what(): wait: Interrupted system call
Aborted (core dumped)
root@st:~#

[OPENCL]:CL ERROR:CL_INVALID_BUFFER_SIZE

./src/zcash-miner -stratum=stratum+tcp://equihash.usa.nicehash.com:3357 -user=x.miner1 -password=x -debug -printtoconsole
Zcash Miner version v1.0.0-beta2-c3b0e16 (2016-10-25 01:30:37 +1100)
Connecting to stratum server equihash.usa.nicehash.com:3357
Connected!
Starting miner
ZcashMinerThread started
[OPENCL]:Found suitable OpenCL device [Pitcairn] with 2081424576 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Pitcairn(OpenCL 1.2 AMD-APP (1912.5))
Subscribed to stratum server
Authorized worker x.miner1
Target set to 03c3c3c3c0000000000000000000000000000000000000000000000000000000
Received new job #0000002e1ab549c3
[OPENCL]:Printing program log
[OPENCL]:"/tmp/OCL27956T3.cl", line 60: warning: arithmetic on pointer to void or
          function type
      for ( ; n-- ; s1++, s2++) {
                      ^

"/tmp/OCL27956T3.cl", line 60: warning: arithmetic on pointer to void or
          function type
      for ( ; n-- ; s1++, s2++) {
                            ^

"/tmp/OCL27956T3.cl", line 96: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
    memcpy(&w, src, sizeof w);
               ^

"/tmp/OCL27956T3.cl", line 103: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
    memcpy(&w, src, sizeof w);
               ^

"/tmp/OCL27956T3.cl", line 195: warning: integer conversion resulted in a
          change of sign
    S->f[1] = -1;
              ^

"/tmp/OCL27956T3.cl", line 215: warning: integer conversion resulted in a
          change of sign
    S->f[0] = -1;
              ^

"/tmp/OCL27956T3.cl", line 350: warning: argument of type "const void *" is
          incompatible with parameter of type "void *"
      memcpy( block, key, keylen );
                     ^

"/tmp/OCL27956T3.cl", line 430: warning: argument of type "const uint8_t *" is
          incompatible with parameter of type "void *"
        memcpy( S->buf + left, in, fill ); /* Fill buffer */
                               ^

"/tmp/OCL27956T3.cl", line 441: warning: argument of type "const uint8_t *" is
          incompatible with parameter of type "void *"
        memcpy( S->buf + left, in, inlen );
                               ^

"/tmp/OCL27956T3.cl", line 93: warning: function "load32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) load32( const void *src )
                                ^

"/tmp/OCL27956T3.cl", line 117: warning: function "load48" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint64_t) load48( const void *src )
                                ^

"/tmp/OCL27956T3.cl", line 129: warning: function "store48" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(void) store48( void *dst, uint64_t w )
                            ^

"/tmp/OCL27956T3.cl", line 140: warning: function "rotl32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) rotl32( const uint32_t w, const unsigned c )
                                ^

"/tmp/OCL27956T3.cl", line 145: warning: function "rotl64" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint64_t) rotl64( const uint64_t w, const unsigned c )
                                ^

"/tmp/OCL27956T3.cl", line 150: warning: function "rotr32" was declared but
          never referenced
  BLAKE2_LOCAL_INLINE(uint32_t) rotr32( const uint32_t w, const unsigned c )
                                ^

"/tmp/OCL27956T3.cl", line 219: warning: function "blake2b_clear_lastblock"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_clear_lastblock( blake2b_state *S )
                           ^

"/tmp/OCL27956T3.cl", line 237: warning: function
          "blake2b_param_set_digest_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length )
                           ^

"/tmp/OCL27956T3.cl", line 243: warning: function "blake2b_param_set_fanout"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_fanout( blake2b_param *P, const uint8_t fanout )
                           ^

"/tmp/OCL27956T3.cl", line 249: warning: function "blake2b_param_set_max_depth"
          was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_max_depth( blake2b_param *P, const uint8_t depth )
                           ^

"/tmp/OCL27956T3.cl", line 255: warning: function
          "blake2b_param_set_leaf_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_leaf_length( blake2b_param *P, const uint32_t leaf_length )
                           ^

"/tmp/OCL27956T3.cl", line 261: warning: function
          "blake2b_param_set_node_offset" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_offset( blake2b_param *P, const uint64_t node_offset )
                           ^

"/tmp/OCL27956T3.cl", line 267: warning: function
          "blake2b_param_set_node_depth" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_depth( blake2b_param *P, const uint8_t node_depth )
                           ^

"/tmp/OCL27956T3.cl", line 273: warning: function
          "blake2b_param_set_inner_length" was declared but never referenced
  BLAKE2_LOCAL_INLINE(int) blake2b_param_set_inner_length( blake2b_param *P, const uint8_t inner_length )
                           ^


[OPENCL]:CL ERROR:CL_INVALID_BUFFER_SIZE

Segmentation fault

I am trying the solo miner setup with aa33f14

crash is 100% reproducible:

$ ./src/zcash-miner -G
Running the test miner
[OPENCL]:Found suitable OpenCL device [GeForce GTX 960] with 4294770688 bytes of GPU memory
[OPENCL]:Using platform: NVIDIA CUDA
[OPENCL]:Using device: GeForce GTX 960(OpenCL 1.2 CUDA)
[OPENCL]:Printing program log
[OPENCL]:

[OPENCL]:Running Solver...
Step: 1...
Step: 2...
Step: 3...
Step: 4...
Step: 5...
Step: 6...
Step: 7...
Step: 8...
Segmentation fault (core dumped)

AMD Driver installation error

I end up with the following error while try to install the amd drivers as described on the wiki:

Trigger für man-db (2.7.5-1) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
/var/opt/amdgpu-pro/./amdgpu-pro-clinfo_16.30.3-315407_amd64.deb
/var/opt/amdgpu-pro/./amdgpu-pro-libopencl-dev_16.30.3-315407_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Does anyone have a solution for me?

"Failed to load kernel." with README.md's instructions

README.md says:

$ ./src/zcash-miner

but with the current location of OpenCL kernels (in "src" and "tests"), this should probably be:

$ cd src
$ ./zcash-miner -debug

Then the miner starts and pretends to work, but GPU utilization is reported by aticonfig as 0% and its clock rate barely increases from what it is at idle. "debug.log" is getting different nonces logged to it, but no info on any solutions. I guess this isn't a complete miner yet?

Invalid Solutions

Hi,

The GPU miner is running for quite some time without crashing. Nonetheless, I'm getting a lot of the following messages:

Solution found; Submitting to zec.suprnova.cc...
000000000000000000000000000002ffa1eeff0f00000000000000000fffeea2
Invalid solution: invalid collision length between StepRows
Invalid solution: invalid collision length between StepRows
[WARN] FAILURE: Miner gave incorrect result!

Might be a bug?

clinfo

when i type clinfo i get this error:
"error while loading shared libraries: libOpenCL.so.1: cannot enable executable stack as shared object requires: Invalid argument"
what should i do?

Error:E013:Insufficient Private Resources!

Running the test miner
[OPENCL]:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName
[0] Tahiti
CL_DEVICE_TYPE: GPU
CL_DEVICE_GLOBAL_MEM_SIZE: 936378368
CL_DEVICE_MAX_MEM_ALLOC_SIZE: 649592832
CL_DEVICE_MAX_WORK_GROUP_SIZE: 256

Number of Platforms:1
[OPENCL]:Found suitable OpenCL device [Tahiti] with 936378368 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Tahiti(OpenCL 1.2 AMD-APP (1800.11))
[OPENCL]:"/tmp/OCL749eEA.cl", line 94: warning: arithmetic on pointer to void or
function type
for ( ; n-- ; s1++, s2++) {
^

"/tmp/OCL749eEA.cl", line 94: warning: arithmetic on pointer to void or
function type
for ( ; n-- ; s1++, s2++) {
^

"/tmp/OCL749eEA.cl", line 130: warning: argument of type "const void *" is
incompatible with parameter of type "void *"
memcpy(&w, src, sizeof w);
^

"/tmp/OCL749eEA.cl", line 137: warning: argument of type "const void *" is
incompatible with parameter of type "void *"
memcpy(&w, src, sizeof w);
^

"/tmp/OCL749eEA.cl", line 229: warning: integer conversion resulted in a
change of sign
S->f[1] = -1;
^

"/tmp/OCL749eEA.cl", line 249: warning: integer conversion resulted in a
change of sign
S->f[0] = -1;
^

"/tmp/OCL749eEA.cl", line 384: warning: argument of type "const void *" is
incompatible with parameter of type "void *"
memcpy( block, key, keylen );
^

"/tmp/OCL749eEA.cl", line 464: warning: argument of type "const uint8_t " is
incompatible with parameter of type "void *"
memcpy( S->buf + left, in, fill ); /
Fill buffer */
^

"/tmp/OCL749eEA.cl", line 475: warning: argument of type "const uint8_t *" is
incompatible with parameter of type "void *"
memcpy( S->buf + left, in, inlen );
^

"/tmp/OCL749eEA.cl", line 730: warning: variable "bucket" was declared but
never referenced
__global bucket_t* bucket = src + i;
^

"/tmp/OCL749eEA.cl", line 732: warning: variable "sub_buckets" was declared
but never referenced
uint32_t sub_buckets[NUM_INDICES_PER_BUCKET][20];
^

"/tmp/OCL749eEA.cl", line 718: warning: variable "n_solutions" was declared
but never referenced
uint32_t n_solutions = 0;
^

"/tmp/OCL749eEA.cl", line 719: warning: variable "start_bit" was declared but
never referenced
size_t start_bit = ((EQUIHASH_K-1) * NUM_COLLISION_BITS);
^

"/tmp/OCL749eEA.cl", line 720: warning: variable "last_bit" was declared but
never referenced
size_t last_bit = ((EQUIHASH_K) * NUM_COLLISION_BITS);
^

"/tmp/OCL749eEA.cl", line 724: warning: variable "indices" was set but never
used
__global element_indice_t* indices[9];
^

"/tmp/OCL749eEA.cl", line 127: warning: function "load32" was declared but
never referenced
BLAKE2_LOCAL_INLINE(uint32_t) load32( const void *src )
^

"/tmp/OCL749eEA.cl", line 151: warning: function "load48" was declared but
never referenced
BLAKE2_LOCAL_INLINE(uint64_t) load48( const void *src )
^

"/tmp/OCL749eEA.cl", line 163: warning: function "store48" was declared but
never referenced
BLAKE2_LOCAL_INLINE(void) store48( void *dst, uint64_t w )
^

"/tmp/OCL749eEA.cl", line 174: warning: function "rotl32" was declared but
never referenced
BLAKE2_LOCAL_INLINE(uint32_t) rotl32( const uint32_t w, const unsigned c )
^

"/tmp/OCL749eEA.cl", line 179: warning: function "rotl64" was declared but
never referenced
BLAKE2_LOCAL_INLINE(uint64_t) rotl64( const uint64_t w, const unsigned c )
^

"/tmp/OCL749eEA.cl", line 184: warning: function "rotr32" was declared but
never referenced
BLAKE2_LOCAL_INLINE(uint32_t) rotr32( const uint32_t w, const unsigned c )
^

"/tmp/OCL749eEA.cl", line 253: warning: function "blake2b_clear_lastblock" was
declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_clear_lastblock( blake2b_state *S )
^

"/tmp/OCL749eEA.cl", line 271: warning: function
"blake2b_param_set_digest_length" was declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_param_set_digest_length( blake2b_param *P, const uint8_t digest_length )
^

"/tmp/OCL749eEA.cl", line 277: warning: function "blake2b_param_set_fanout"
was declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_param_set_fanout( blake2b_param *P, const uint8_t fanout )
^

"/tmp/OCL749eEA.cl", line 283: warning: function "blake2b_param_set_max_depth"
was declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_param_set_max_depth( blake2b_param *P, const uint8_t depth )
^

"/tmp/OCL749eEA.cl", line 289: warning: function
"blake2b_param_set_leaf_length" was declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_param_set_leaf_length( blake2b_param *P, const uint32_t leaf_length )
^

"/tmp/OCL749eEA.cl", line 295: warning: function
"blake2b_param_set_node_offset" was declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_offset( blake2b_param *P, const uint64_t node_offset )
^

"/tmp/OCL749eEA.cl", line 301: warning: function "blake2b_param_set_node_depth"
was declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_param_set_node_depth( blake2b_param *P, const uint8_t node_depth )
^

"/tmp/OCL749eEA.cl", line 307: warning: function
"blake2b_param_set_inner_length" was declared but never referenced
BLAKE2_LOCAL_INLINE(int) blake2b_param_set_inner_length( blake2b_param *P, const uint8_t inner_length )
^

Error:E013:Insufficient Private Resources!

what is the reason? Ubuntu 14.04

No suitable GPU found

Sorry for prolly dumb question. I am on ubuntu 16.04 with latest drivers. Headless without xorg (because amd drivers are not compatible with xorg on 16.04)

Number of Platforms:1
ERROR: No suitable GPU found! No work will be performed!
[OPENCL]:
Listing OpenCL devices.
FORMAT: [deviceID] deviceName

lsmod

amdkfd                131072  0
amd_iommu_v2           20480  1 amdkfd
amdgpu               1961984  0
ttm                    94208  1 amdgpu
i2c_algo_bit           16384  2 i915_bpo,amdgpu
drm_kms_helper        155648  2 i915_bpo,amdgpu
drm                   364544  5 ttm,i915_bpo,drm_kms_helper,amdgpu

I have both internal intel GPU and AMD r9 290. Any hints how to make zogminer find it?

No hashing after start with 90% probability

I launched zog, it authenticated on pool and received job, no hashing for 3 minutes. Sometimes it starts fast, sometimes it takes 5 minutes. I am using 290 and the rest of hardware is high-end.

Also sometimes it's 2x slower if hashing.

Segmentation fault (core dumped)

When running the kernel it wil never reach past 98 iterations and will just return:

Segmentation fault (core dumped)

It will segfault after run 98 each time

dmesg:

[874430.341892] zcash-miner[16109]: segfault at 10001a003f8 ip 00007f04ccd80eee sp 00007fffe7f4ca28 error 4 in libc-2.19.so[7f04ccce9000+1ba000]
[874465.518384] zcash-miner[16120]: segfault at 10001a003f8 ip 00007f517eda4eee sp 00007fff4bd5e4e8 error 4 in libc-2.19.so[7f517ed0d000+1ba000]
[874514.656683] zcash-miner[16149]: segfault at 10001a003f8 ip 00007f50d5448eee sp 00007ffc850ce168 error 4 in libc-2.19.so[7f50d53b1000+1ba000]
[874540.777722] zcash-miner[16225]: segfault at 10001a003f8 ip 00007f21efcfdeee sp 00007fff8199eaa8 error 4 in libc-2.19.so[7f21efc66000+1ba000]
[874591.851730] zcash-miner[16240]: segfault at 10001a003f8 ip 00007f6ac4847eee sp 00007ffd84d67ce8 error 4 in libc-2.19.so[7f6ac47b0000+1ba000]
[874612.700473] zcash-miner[16249]: segfault at 10001a003f8 ip 00007f7a83e17eee sp 00007ffe76e4dc28 error 4 in libc-2.19.so[7f7a83d80000+1ba000]
[874904.007845] zcash-miner[16321]: segfault at 10001a003f8 ip 00007fe5fccc9eee sp 00007fff20a6d4a8 error 4 in libc-2.19.so[7fe5fcc32000+1ba000]
[875149.257718] zcash-miner[16379]: segfault at 10001a003f8 ip 00007f70f945beee sp 00007ffdfd8c41e8 error 4 in libc-2.19.so[7f70f93c4000+1ba000]
[875327.349311] zcash-miner[16390]: segfault at 10001a003f8 ip 00007f03947a4eee sp 00007ffe5129c2e8 error 4 in libc-2.19.so[7f039470d000+1ba000]
[875344.245269] zcash-miner[16400]: segfault at 10001a003f8 ip 00007ff5c21e7eee sp 00007ffc2eb8ca68 error 4 in libc-2.19.so[7ff5c2150000+1ba000]
[875371.569944] zcash-miner[16411]: segfault at 10001a003f8 ip 00007fed485c0eee sp 00007ffe4601ad68 error 4 in libc-2.19.so[7fed48529000+1ba000]

strace:

clock_gettime(CLOCK_MONOTONIC_RAW, {875523, 327565710}) = 0
write(1, "Solutions: 0\n", 13) = 13
Solutions: 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10001a003f8} ---
+++ killed by SIGSEGV (core dumped) +++

Problem after start test miner.

After close terminal with miner - Ubuntu 16.04 freeze and got:

[ 1084.587016] VM fault (0x01, vmid 3) at page 47326788, read from 'TC0' (0x54433000) (8)
[ 1084.587016] amdgpu 0000:07:00.0: GPU fault detected: 147 0x05708801
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x00E0983C
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x06088002
[ 1084.587016] VM fault (0x02, vmid 3) at page 14719036, read from 'TC6' (0x54433600) (136)
[ 1084.587016] amdgpu 0000:07:00.0: GPU fault detected: 147 0x0d78c401
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x03B9780A
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x060C4001
[ 1084.587016] VM fault (0x01, vmid 3) at page 62486538, read from 'TC3' (0x54433300) (196)
[ 1084.587016] amdgpu 0000:07:00.0: GPU fault detected: 147 0x0c88c801
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x016D8DF6
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x06044001
[ 1084.587016] VM fault (0x01, vmid 3) at page 23956982, read from 'TC5' (0x54433500) (68)
[ 1084.587016] amdgpu 0000:07:00.0: GPU fault detected: 147 0x09e08801
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x006F7D1B
[ 1084.587016] amdgpu 0000:07:00.0: VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x060C4002
etc. etc...

/usr/bin/ld: cannot find -lOpenCL at build stage

Having trouble with building zogminer on Debian 8. Here is the ./build.sh output:

libtool: link: /home/debian/miners/zogminer/depends/x86_64-unknown-linux-gnu/native/bin/ccache g++ -m64 -std=c++11 -pipe -O1 -fwrapv -fno-strict-aliasing -g -Wformat -Wformat-security -Wstack-protector -fstack-protector-all -fPIE -pthread -Wl,-z -Wl,relro -Wl,-z -Wl,now -pie -o zcashd zcashd-bitcoind.o -fopenmp -L/home/debian/miners/zogminer/depends/x86_64-unknown-linux-gnu/lib libbitcoin_server.a libbitcoin_common.a univalue/libbitcoin_univalue.a libbitcoin_util.a ./leveldb/libleveldb.a ./leveldb/libmemenv.a secp256k1/.libs/libsecp256k1.a libbitcoin_wallet.a -lboost_filesystem-mt -lboost_program_options-mt -lboost_thread-mt -lboost_chrono-mt -ldb_cxx-5.3 -lssl -ldl -lminiupnpc libzcash.a crypto/libbitcoin_crypto.a -lsnark /home/debian/miners/zogminer/depends/x86_64-unknown-linux-gnu/lib/libgmpxx.a /home/debian/miners/zogminer/depends/x86_64-unknown-linux-gnu/lib/libgmp.a -lboost_system-mt -lcrypto /home/debian/miners/zogminer/depends/x86_64-unknown-linux-gnu/lib/libsodium.a libzogminer.a -lOpenCL -lanl -fopenmp -pthread
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
Makefile:3154: recipe for target 'zcashd' failed
make[2]: *** [zcashd] Error 1
make[2]: Leaving directory '/home/debian/miners/zogminer/src'
Makefile:7496: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/debian/miners/zogminer/src'
Makefile:633: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

Just installed opencl(opencl is working on claymore dualminer), then trying to build.
Additionally, I copied all libraries from /opt/AMDAPPSDK-3.0/ to /usr/lib/OpenCL/vendors/amd (both x86 and amd) and also added their references in /etc/ld.so.conf.d

Debian x64, segmentation fault

[OPENCL]:Found suitable OpenCL device [Hawaii] with 6057127488 bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Hawaii(OpenCL 2.0 AMD-APP (1912.5))
Segmentation fault

Some miners gives me that message too. Could it be some missing dependencies?

Invalid shares

After stratum restart zogminer kinda ignores new nonce and hashing with old so all shares are invalid on pool side.

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.