Search content
Sort by

Showing 3 of 3 results by p2501
Post
Topic
Board Mining (Altcoins)
Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
by
p2501
on 08/03/2020, 09:22:14 UTC
Any chance you could help with the following error during compilation?
This is under centos 6 and gcc 8.3.1

util.c: In function ‘send_line’:
util.c:1136:15: error: ‘sock’ undeclared (first use in this function); did you mean ‘work’?
      n = send(sock, s + sent, len, 0);
               ^~~~
               work
util.c:1136:15: note: each undeclared identifier is reported only once for each function it appears in
Post
Topic
Board Mining (Altcoins)
Re: [ANN]: cpuminer-opt v3.9.2.2, open source optimized multi-algo CPU miner
by
p2501
on 05/06/2019, 15:38:14 UTC

Ooops, that code is supposed to bre turned off in the field. It appears your CPU has some limited AVX512
capabilities, but not enough for my test code. It also shows my test code did not screen properly for
the correct features. But as I said that code should never have been enabled in the release.

A small code edit in avxdefs.h will fix that. Find the follwing code near the bottom of the file and
change "#if 1" to "#if 0". It'll be fixed in the next release.

Code:
#if 1
//////////////////////////////////////////////////
//
//   Compile test.
//
//   Code to test that macros compile.


yeap, that did the trick for me.
Post
Topic
Board Mining (Altcoins)
Re: [ANN]: cpuminer-opt v3.9.2.2, open source optimized multi-algo CPU miner
by
p2501
on 05/06/2019, 13:25:18 UTC
Hello,

I'm getting the following since version 3.9.1.1 on a Xeon D-2141I CPU while compiling with gcc 6.3.0 under a debian system

In file included from algo-gate-api.h:5:0,
                 from util.c:48:
avxdefs.h: In function ‘avx512_compile_test’:
In file included from algo-gate-api.h:5:0,
                 from cpu-miner.c:64:
avxdefs.h: In function ‘avx512_compile_test’:
avxdefs.h:2035:7: warning: implicit declaration of function ‘mm256_rorv_16’ [-Wimplicit-function-declaration]
   y = mm256_rorv_16( y, 3 );
       ^~~~~~~~~~~~~
avxdefs.h:2035:7: warning: implicit declaration of function ‘mm256_rorv_16’ [-Wimplicit-function-declaration]
   y = mm256_rorv_16( y, 3 );
       ^~~~~~~~~~~~~
avxdefs.h:2035:5: error: incompatible types when assigning to type ‘__m256i {aka __vector(4) long long int}’ from type ‘int’
   y = mm256_rorv_16( y, 3 );
     ^
avxdefs.h:2036:7: warning: implicit declaration of function ‘mm256_ror_1x16’ [-Wimplicit-function-declaration]
   y = mm256_ror_1x16( y );
       ^~~~~~~~~~~~~~
avxdefs.h:2035:5: error: incompatible types when assigning to type ‘__m256i {aka __vector(4) long long int}’ from type ‘int’
   y = mm256_rorv_16( y, 3 );
     ^
avxdefs.h:2036:5: error: incompatible types when assigning to type ‘__m256i {aka __vector(4) long long int}’ from type ‘int’
   y = mm256_ror_1x16( y );
     ^
avxdefs.h:2036:7: warning: implicit declaration of function ‘mm256_ror_1x16’ [-Wimplicit-function-declaration]
   y = mm256_ror_1x16( y );
       ^~~~~~~~~~~~~~
avxdefs.h:2036:5: error: incompatible types when assigning to type ‘__m256i {aka __vector(4) long long int}’ from type ‘int’
   y = mm256_ror_1x16( y );
     ^

and later on
In file included from algo-gate-api.h:5:0,
                 from algo-gate-api.c:20:
avxdefs.h: In function ‘avx512_compile_test’:
avxdefs.h:2035:7: warning: implicit declaration of function ‘mm256_rorv_16’ [-Wimplicit-function-declaration]
   y = mm256_rorv_16( y, 3 );
       ^~~~~~~~~~~~~
avxdefs.h:2035:5: error: incompatible types when assigning to type ‘__m256i {aka __vector(4) long long int}’ from type ‘int’
   y = mm256_rorv_16( y, 3 );
     ^
avxdefs.h:2036:7: warning: implicit declaration of function ‘mm256_ror_1x16’ [-Wimplicit-function-declaration]
   y = mm256_ror_1x16( y );
       ^~~~~~~~~~~~~~
avxdefs.h:2036:5: error: incompatible types when assigning to type ‘__m256i {aka __vector(4) long long int}’ from type ‘int’
   y = mm256_ror_1x16( y );
     ^