Bitcoin Forum
October 23, 2017, 08:47:49 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 ... 82 »
  Print  
Author Topic: [ANN][GAP] Gapcoin - Prime Gap Search - New Math Algo - CPU / GPU - Zero Premine  (Read 237693 times)
AizenSou
Hero Member
*****
Offline Offline

Activity: 924


View Profile
November 06, 2014, 11:00:47 AM
 #561

Anyone else been keeping an eye on testnet?

Difficulty is rising pretty fast, which means some serious mining from a very small base is happening.

Regards,

--
bsunau7

I see a difficulty below 17. Thats <100k pps total.

Let me show you how to optimize the miner:

My I7-4770k with 8 threads, stock-miner:
pps: 31821 / 31160  10g/h 4473 / 3429  15g/h 0 / 0

Now go on and build your own libgmp from source. When done, run the tune utility for optimum results. Copy your final libgmp.so.10 to /usr/local/lib/.

Now we're at:
pps: 34039 / 34041  10g/h 6077 / 4479  15g/h 0 / 0

Optimizing sieve size:
open src/main.cpp

line 252:
  1048576);

to
   8 * 1048576);


and line 256
  500000);

to
  15000000);

make sure to also change the shift, otherwise you wont be able to submit most blocks! You could specify it on command line, but this is safer:

line 128:
  uint16_t shift = (opts->has_shift() ?  atoi(opts->get_shift().c_str()) : 20);

change to:
  uint16_t shift = (opts->has_shift() ?  atoi(opts->get_shift().c_str()) : 23);


Now its mining at
pps: 38276 / 37068  10g/h 5156 / 5265  15g/h 0 / 0


Lets also add the tuning for Haswell AVX2:
open Makefile add set

OTFLAGS   = -march=core-avx2 -mtune=core-avx2 -O3
(if you have a haswell, of cause)

Results:
pps: 39691 / 39553  10g/h 6059 / 5635  15g/h 0 / 0


Oh yeah. 20% for free.
Thanks dcct.
1508748469
Hero Member
*
Offline Offline

Posts: 1508748469

View Profile Personal Message (Offline)

Ignore
1508748469
Reply with quote  #2

1508748469
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508748469
Hero Member
*
Offline Offline

Posts: 1508748469

View Profile Personal Message (Offline)

Ignore
1508748469
Reply with quote  #2

1508748469
Report to moderator
BitcoinFX
Legendary
*
Offline Offline

Activity: 1512


youtu.be/3kqLVeP7iHA


View Profile WWW
November 06, 2014, 11:20:49 AM
 #562

Herewith, a basic guide for pool mining Gapcoin in the cloud - http://gapcoin.grn.cc/

~ Serving some text ad links across various sites to get some traffic to the guide. N.B. Its just a free domain on some free hosting.

"The industry of the integrated spectacle and immaterial command owes me (us all) money." - We do not Forgive. We do not Forget. Expect Revolution! for we are all Satoshi now? - youtu.be/G7Z8MMk45U0 - "the multiple and the multiplex!" - Mostly AWOL Hunting SNARKS ... youtu.be/Yc18hhM6gUc?t=4m27s - "Beware of Boojum's"!
bsunau7
Member
**
Offline Offline

Activity: 114


View Profile
November 06, 2014, 01:22:53 PM
 #563

Anyone else been keeping an eye on testnet?

Difficulty is rising pretty fast, which means some serious mining from a very small base is happening.

Regards,

--
bsunau7

I see a difficulty below 17. Thats <100k pps total.

Let me show you how to optimize the miner:


Thanks to riecoin my gmp is already custom compiled and tuned.  I only mentioned testnet as the diffidently was high and was increasing at a steady rate.

Interesting that you get some performance out of SIMD with the code as is.  One of the first things I did was to compile with "-ftree-vectorize -mavx2 -ftree-vectorizer-verbose=5" to see what auto-vectorising found.  It didn't find much (any?) to vectorise as most of the size of the loops aren't know at compile time (there are trick you can use however) or a non-uniform step being used.

Regards,

PS.  The fact that GCC couldn't vectorise what should be very conducive to vectorising is a good avenue to work on for speed-ups.

--
bsunau7
dcct
Sr. Member
****
Offline Offline

Activity: 280


View Profile
November 06, 2014, 04:50:51 PM
 #564

Thanks to riecoin my gmp is already custom compiled and tuned.  I only mentioned testnet as the diffidently was high and was increasing at a steady rate.

Interesting that you get some performance out of SIMD with the code as is.  One of the first things I did was to compile with "-ftree-vectorize -mavx2 -ftree-vectorizer-verbose=5" to see what auto-vectorising found.  It didn't find much (any?) to vectorise as most of the size of the loops aren't know at compile time (there are trick you can use however) or a non-uniform step being used.

Regards,

PS.  The fact that GCC couldn't vectorise what should be very conducive to vectorising is a good avenue to work on for speed-ups.

--
bsunau7

Its not only the vector extensions that are added, its switching between march=native to everything up to core-avx2. And O2 to O3. I dont know what exactly did the trick, has to be something thats added here.

nonce-pool
Full Member
***
Offline Offline

Activity: 149


View Profile
November 06, 2014, 07:21:08 PM
 #565

We are currently testing a stratum server on port 3385 for those that can build from source.

https://github.com/noncepool/GapMiner
qwep
Legendary
*
Offline Offline

Activity: 1008



View Profile
November 06, 2014, 10:13:09 PM
 #566

We are currently testing a stratum server on port 3385 for those that can build from source.

https://github.com/noncepool/GapMiner
+1Who compiles it
ig0tik3d
Legendary
*
Offline Offline

Activity: 1288



View Profile
November 06, 2014, 10:28:19 PM
 #567

We are currently testing a stratum server on port 3385 for those that can build from source.

https://github.com/noncepool/GapMiner
Code:
[2014-11-07 00:27:47] can not parse server response
nonce-pool
Full Member
***
Offline Offline

Activity: 149


View Profile
November 06, 2014, 10:54:53 PM
 #568

We are currently testing a stratum server on port 3385 for those that can build from source.

https://github.com/noncepool/GapMiner
+1Who compiles it

Wouldn't be in any hurry to build it, likely might need some changes.

Note connection string should be similiar.
Code:
./gapminer -o mine3.gap.nonce-pool.com -p 3385 -u username.worker -x password --stratum
j0nn9
Full Member
***
Offline Offline

Activity: 178


View Profile WWW
November 07, 2014, 03:56:04 AM
 #569

Hi there,

i've managed to build a experimental gpu miner.
It got me about 200,000 pps with one R9 280x without any overclocking or powertune.

Currently the miner is very experimental and needs to be tested,
therefore I published the source code on github.

The miner is a hybrid version of eXtremals fermat test and GapMiners sieve.
The sieving is calculated on the cpu and the fermat tests are running on the GPU.
Currently it is very (host) memory hungry about 1GB and you have to use one instance
per gpu device.

You can get it with:

Code:
git clone https://github.com/gapcoin/GapMiner.git -b gpu-miner
cd GapMiner
git submodule init
git submodule update

It was built against amd app sdk v2.9 but maybe works with other versions too.
You can edit the Makefile to change the sdk destination directory.

I will merge nonce-pools stratum changes, and probably fix some bugs
at the weekend, and then create some binaries within the next week.

Gapcoin - The largest, decentralized prime gap search
Aleh777
Full Member
***
Offline Offline

Activity: 144


View Profile WWW
November 07, 2014, 06:26:31 AM
 #570

Hi there,

i've managed to build a experimental gpu miner.
It got me about 200,000 pps with one R9 280x without any overclocking or powertune.

Currently the miner is very experimental and needs to be tested,
therefore I published the source code on github.

The miner is a hybrid version of eXtremals fermat test and GapMiners sieve.
The sieving is calculated on the cpu and the fermat tests are running on the GPU.
Currently it is very (host) memory hungry about 1GB and you have to use one instance
per gpu device.

You can get it with:

Code:
git clone https://github.com/gapcoin/GapMiner.git -b gpu-miner
cd GapMiner
git submodule init
git submodule update

It was built against amd app sdk v2.9 but maybe works with other versions too.
You can edit the Makefile to change the sdk destination directory.

I will merge nonce-pools stratum changes, and probably fix some bugs
at the weekend, and then create some binaries within the next week.

Tell me where and gpu miner himself with the exe file?
bsunau7
Member
**
Offline Offline

Activity: 114


View Profile
November 07, 2014, 06:28:21 AM
 #571


I will merge nonce-pools stratum changes, and probably fix some bugs
at the weekend, and then create some binaries within the next week.

Tell me where and gpu miner himself with the exe file?

You either:

a) wait a week
b) compile it yourself.

Regards,

--
bsunau7
muchoman
Sr. Member
****
Online Online

Activity: 454


View Profile
November 07, 2014, 06:36:13 AM
 #572

No doubt it will be compiled soon.
agran
Hero Member
*****
Offline Offline

Activity: 896


View Profile
November 07, 2014, 08:14:52 AM
 #573

record merit for the last day:
merit: 31.61372127
gap length: 6114
start prime: 9800893666818811479594732182521441591913618525100779877111253311731626918555735 48729
end prime: 9800893666818811479594732182521441591913618525100779877111253311731626918555735 54843
http://coinia.net/gapcoin/blockexplorer.php?q=9877

(c) http://coinia.net/gapcoin/stat.php

QORA | 2ND GEN | NEW SOURCE CODE | QTz6fSV2VNc2wjwwsw57kwQzgQhmGw5idQ
bloodex
Newbie
*
Offline Offline

Activity: 6


View Profile
November 07, 2014, 11:15:15 AM
 #574

Does anyone tried to compile GPU miner with NVIDIA CUDA SDK?

I have compiled it successfully but running miner fails:
$ gapminer -o http://mine3.gap.nonce-pool.com -p 4200 -u ***.*** -x *** -g
[2014-11-07 11:00:42] Server supports longpoll
[2014-11-07 11:00:42] Got new target: 13.0000000 @ 22.4775703
[2014-11-07 11:00:48] Found platform[0] name = NVIDIA CUDA
[2014-11-07 11:00:48] Found 1 device(s)
[2014-11-07 11:00:48] Compiling ...
[2014-11-07 11:00:48] Source: 205025 bytes
[2014-11-07 11:00:49] :4329:1: warning: type specifier missing, defaults to 'int'
sqrProductScan320(uint32_t *out, uint32_t *op)
^

and so on...
Code:
:4670:1: warning: control reaches end of non-void function
}
^
:4671:1: warning: type specifier missing, defaults to 'int'
sqrProductScan352(uint32_t *out, uint32_t *op)
^
:5068:1: warning: control reaches end of non-void function
}
^
:6687:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                  ^~~~~
:3715:53: note: passing argument to parameter 'op1' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6687:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                         ^
:3715:68: note: passing argument to parameter 'op2' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6689:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                   ^~~~~
:3881:54: note: passing argument to parameter 'op1' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6689:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                          ^
:3881:69: note: passing argument to parameter 'op2' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6691:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                   ^~~~~
:4076:54: note: passing argument to parameter 'op1' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6691:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                          ^
:4076:69: note: passing argument to parameter 'op2' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6708:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6747:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                ^~~~~
:2025:26: note: passing argument to parameter 'op' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6747:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                       ^~~~~
:2025:40: note: passing argument to parameter 'mod' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6749:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify352(index, q, limbs, m, windowSize);
                                ^
:6674:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6750:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
              ^~~~~
:2669:26: note: passing argument to parameter 'op1' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6750:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                     ^
:2669:41: note: passing argument to parameter 'op2' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6750:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                        ^~~~~
:2669:56: note: passing argument to parameter 'mod' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6755:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
              ^~~~~
:3313:28: note: passing argument to parameter 'op' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6755:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
                     ^~~~~
:3313:42: note: passing argument to parameter 'mod' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6776:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                  ^~~~~
:1458:53: note: passing argument to parameter 'op1' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6776:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                         ^
:1458:68: note: passing argument to parameter 'op2' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6778:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                   ^~~~~
:1611:54: note: passing argument to parameter 'op1' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6778:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                          ^
:1611:69: note: passing argument to parameter 'op2' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6780:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                   ^~~~~
:1791:54: note: passing argument to parameter 'op1' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6780:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                          ^
:1791:69: note: passing argument to parameter 'op2' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6795:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6834:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                ^~~~~
:20:26: note: passing argument to parameter 'op' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6834:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                       ^~~~~
:20:40: note: passing argument to parameter 'mod' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6835:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify320(index, q, limbs, m, windowSize);
                                ^
:6762:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6836:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
              ^~~~~
:566:26: note: passing argument to parameter 'op1' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6836:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                     ^
:566:41: note: passing argument to parameter 'op2' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6836:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                        ^~~~~
:566:56: note: passing argument to parameter 'mod' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6841:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
              ^~~~~
:1112:28: note: passing argument to parameter 'op' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6841:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
                     ^~~~~
:1112:42: note: passing argument to parameter 'mod' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6846:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest352((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6700:36: note: passing argument to parameter 'limbs' here
void FermatTest352(uint4 *restrict limbs,
                                   ^
:6860:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest320((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6789:36: note: passing argument to parameter 'limbs' here
void FermatTest320(uint4 *restrict limbs, uint4 *redcl)
                                   ^
:7038:25: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
        result[id] = fermat352(p);
                               ^
:6844:28: note: passing argument to parameter 'p' here
bool fermat352(const uint* p) {
                           ^
:7052:26: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
  result[id] = fermat320(p);
                         ^
:6858:28: note: passing argument to parameter 'p' here
bool fermat320(const uint* p) {
                           ^
:7109:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                        ^~~~~~
:4329:29: note: passing argument to parameter 'out' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                            ^
:7109:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                                ^~~~
:4329:44: note: passing argument to parameter 'op' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                                           ^
:7144:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                        ^~~~~~
:4671:29: note: passing argument to parameter 'out' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                            ^
:7144:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                                ^~~~
:4671:44: note: passing argument to parameter 'op' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                                           ^
:7191:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                             ^~~~~~
:5069:39: note: passing argument to parameter 'out' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7191:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                     ^~~~
:5069:54: note: passing argument to parameter 'op1' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7191:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                           ^~~~
:5069:69: note: passing argument to parameter 'op2' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:7236:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                             ^~~~~~
:5411:39: note: passing argument to parameter 'out' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7236:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                     ^~~~
:5411:54: note: passing argument to parameter 'op1' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7236:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                           ^~~~
:5411:69: note: passing argument to parameter 'op2' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
dcct
Sr. Member
****
Offline Offline

Activity: 280


View Profile
November 07, 2014, 11:23:40 AM
 #575


Code:
git clone https://github.com/gapcoin/GapMiner.git -b gpu-miner
cd GapMiner
git submodule init
git submodule update

Wow, that was QUICK! I'm pretty impressed by it!
qwep
Legendary
*
Offline Offline

Activity: 1008



View Profile
November 07, 2014, 11:26:17 AM
 #576

who can compile a miner for win Sad
q327K091
Legendary
*
Offline Offline

Activity: 1162


View Profile
November 07, 2014, 11:27:03 AM
 #577

Does anyone tried to compile GPU miner with NVIDIA CUDA SDK?

I have compiled it successfully but running miner fails:
$ gapminer -o http://mine3.gap.nonce-pool.com -p 4200 -u ***.*** -x *** -g
[2014-11-07 11:00:42] Server supports longpoll
[2014-11-07 11:00:42] Got new target: 13.0000000 @ 22.4775703
[2014-11-07 11:00:48] Found platform[0] name = NVIDIA CUDA
[2014-11-07 11:00:48] Found 1 device(s)
[2014-11-07 11:00:48] Compiling ...
[2014-11-07 11:00:48] Source: 205025 bytes
[2014-11-07 11:00:49] :4329:1: warning: type specifier missing, defaults to 'int'
sqrProductScan320(uint32_t *out, uint32_t *op)
^

and so on...
Code:
:4670:1: warning: control reaches end of non-void function
}
^
:4671:1: warning: type specifier missing, defaults to 'int'
sqrProductScan352(uint32_t *out, uint32_t *op)
^
:5068:1: warning: control reaches end of non-void function
}
^
:6687:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                  ^~~~~
:3715:53: note: passing argument to parameter 'op1' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6687:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                         ^
:3715:68: note: passing argument to parameter 'op2' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6689:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                   ^~~~~
:3881:54: note: passing argument to parameter 'op1' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6689:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                          ^
:3881:69: note: passing argument to parameter 'op2' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6691:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                   ^~~~~
:4076:54: note: passing argument to parameter 'op1' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6691:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                          ^
:4076:69: note: passing argument to parameter 'op2' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6708:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6747:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                ^~~~~
:2025:26: note: passing argument to parameter 'op' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6747:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                       ^~~~~
:2025:40: note: passing argument to parameter 'mod' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6749:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify352(index, q, limbs, m, windowSize);
                                ^
:6674:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6750:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
              ^~~~~
:2669:26: note: passing argument to parameter 'op1' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6750:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                     ^
:2669:41: note: passing argument to parameter 'op2' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6750:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                        ^~~~~
:2669:56: note: passing argument to parameter 'mod' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6755:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
              ^~~~~
:3313:28: note: passing argument to parameter 'op' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6755:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
                     ^~~~~
:3313:42: note: passing argument to parameter 'mod' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6776:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                  ^~~~~
:1458:53: note: passing argument to parameter 'op1' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6776:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                         ^
:1458:68: note: passing argument to parameter 'op2' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6778:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                   ^~~~~
:1611:54: note: passing argument to parameter 'op1' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6778:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                          ^
:1611:69: note: passing argument to parameter 'op2' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6780:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                   ^~~~~
:1791:54: note: passing argument to parameter 'op1' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6780:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                          ^
:1791:69: note: passing argument to parameter 'op2' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6795:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6834:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                ^~~~~
:20:26: note: passing argument to parameter 'op' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6834:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                       ^~~~~
:20:40: note: passing argument to parameter 'mod' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6835:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify320(index, q, limbs, m, windowSize);
                                ^
:6762:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6836:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
              ^~~~~
:566:26: note: passing argument to parameter 'op1' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6836:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                     ^
:566:41: note: passing argument to parameter 'op2' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6836:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                        ^~~~~
:566:56: note: passing argument to parameter 'mod' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6841:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
              ^~~~~
:1112:28: note: passing argument to parameter 'op' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6841:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
                     ^~~~~
:1112:42: note: passing argument to parameter 'mod' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6846:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest352((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6700:36: note: passing argument to parameter 'limbs' here
void FermatTest352(uint4 *restrict limbs,
                                   ^
:6860:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest320((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6789:36: note: passing argument to parameter 'limbs' here
void FermatTest320(uint4 *restrict limbs, uint4 *redcl)
                                   ^
:7038:25: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
        result[id] = fermat352(p);
                               ^
:6844:28: note: passing argument to parameter 'p' here
bool fermat352(const uint* p) {
                           ^
:7052:26: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
  result[id] = fermat320(p);
                         ^
:6858:28: note: passing argument to parameter 'p' here
bool fermat320(const uint* p) {
                           ^
:7109:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                        ^~~~~~
:4329:29: note: passing argument to parameter 'out' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                            ^
:7109:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                                ^~~~
:4329:44: note: passing argument to parameter 'op' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                                           ^
:7144:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                        ^~~~~~
:4671:29: note: passing argument to parameter 'out' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                            ^
:7144:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                                ^~~~
:4671:44: note: passing argument to parameter 'op' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                                           ^
:7191:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                             ^~~~~~
:5069:39: note: passing argument to parameter 'out' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7191:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                     ^~~~
:5069:54: note: passing argument to parameter 'op1' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7191:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                           ^~~~
:5069:69: note: passing argument to parameter 'op2' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:7236:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                             ^~~~~~
:5411:39: note: passing argument to parameter 'out' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7236:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                     ^~~~
:5411:54: note: passing argument to parameter 'op1' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7236:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                           ^~~~
:5411:69: note: passing argument to parameter 'op2' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^


I did (using CUDA 6.5) getting following error

[2014-11-07 06:25:45] Server supports longpoll
[2014-11-07 06:25:45] Got new target: 13.0000000 @ 22.4909167
[2014-11-07 06:25:50] Found platform[0] name = NVIDIA CUDA
[2014-11-07 06:25:50] ERROR: AMD Accelerated Parallel Processing found
[2014-11-07 06:25:50] OpenCL error: -34 at ./src/GPUFermat.cpp:390
[2014-11-07 06:25:50] OpenCL error: -34 at ./src/GPUFermat.cpp:390
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:50] clEnqueueNDRangeKernel error!
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:405
[2014-11-07 06:25:51] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:51] OpenCL error: -36 at ./src/GPUFermat.cpp:396

new upcoming awesome coin

the Gulden Coin: GKWHEPx3rQyPnbgQUSHu8gtgoRCgpqed1j
bloodex
Newbie
*
Offline Offline

Activity: 6


View Profile
November 07, 2014, 11:33:13 AM
 #578

Does anyone tried to compile GPU miner with NVIDIA CUDA SDK?

I have compiled it successfully but running miner fails:
$ gapminer -o http://mine3.gap.nonce-pool.com -p 4200 -u ***.*** -x *** -g
[2014-11-07 11:00:42] Server supports longpoll
[2014-11-07 11:00:42] Got new target: 13.0000000 @ 22.4775703
[2014-11-07 11:00:48] Found platform[0] name = NVIDIA CUDA
[2014-11-07 11:00:48] Found 1 device(s)
[2014-11-07 11:00:48] Compiling ...
[2014-11-07 11:00:48] Source: 205025 bytes
[2014-11-07 11:00:49] :4329:1: warning: type specifier missing, defaults to 'int'
sqrProductScan320(uint32_t *out, uint32_t *op)
^

and so on...
Code:
:4670:1: warning: control reaches end of non-void function
}
^
:4671:1: warning: type specifier missing, defaults to 'int'
sqrProductScan352(uint32_t *out, uint32_t *op)
^
:5068:1: warning: control reaches end of non-void function
}
^
:6687:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                  ^~~~~
:3715:53: note: passing argument to parameter 'op1' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6687:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                         ^
:3715:68: note: passing argument to parameter 'op2' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6689:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                   ^~~~~
:3881:54: note: passing argument to parameter 'op1' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6689:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                          ^
:3881:69: note: passing argument to parameter 'op2' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6691:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                   ^~~~~
:4076:54: note: passing argument to parameter 'op1' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6691:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                          ^
:4076:69: note: passing argument to parameter 'op2' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6708:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6747:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                ^~~~~
:2025:26: note: passing argument to parameter 'op' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6747:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                       ^~~~~
:2025:40: note: passing argument to parameter 'mod' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6749:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify352(index, q, limbs, m, windowSize);
                                ^
:6674:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6750:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
              ^~~~~
:2669:26: note: passing argument to parameter 'op1' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6750:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                     ^
:2669:41: note: passing argument to parameter 'op2' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6750:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                        ^~~~~
:2669:56: note: passing argument to parameter 'mod' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6755:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
              ^~~~~
:3313:28: note: passing argument to parameter 'op' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6755:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
                     ^~~~~
:3313:42: note: passing argument to parameter 'mod' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6776:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                  ^~~~~
:1458:53: note: passing argument to parameter 'op1' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6776:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                         ^
:1458:68: note: passing argument to parameter 'op2' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6778:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                   ^~~~~
:1611:54: note: passing argument to parameter 'op1' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6778:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                          ^
:1611:69: note: passing argument to parameter 'op2' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6780:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                   ^~~~~
:1791:54: note: passing argument to parameter 'op1' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6780:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                          ^
:1791:69: note: passing argument to parameter 'op2' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6795:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6834:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                ^~~~~
:20:26: note: passing argument to parameter 'op' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6834:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                       ^~~~~
:20:40: note: passing argument to parameter 'mod' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6835:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify320(index, q, limbs, m, windowSize);
                                ^
:6762:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6836:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
              ^~~~~
:566:26: note: passing argument to parameter 'op1' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6836:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                     ^
:566:41: note: passing argument to parameter 'op2' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6836:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                        ^~~~~
:566:56: note: passing argument to parameter 'mod' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6841:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
              ^~~~~
:1112:28: note: passing argument to parameter 'op' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6841:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
                     ^~~~~
:1112:42: note: passing argument to parameter 'mod' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6846:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest352((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6700:36: note: passing argument to parameter 'limbs' here
void FermatTest352(uint4 *restrict limbs,
                                   ^
:6860:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest320((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6789:36: note: passing argument to parameter 'limbs' here
void FermatTest320(uint4 *restrict limbs, uint4 *redcl)
                                   ^
:7038:25: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
        result[id] = fermat352(p);
                               ^
:6844:28: note: passing argument to parameter 'p' here
bool fermat352(const uint* p) {
                           ^
:7052:26: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
  result[id] = fermat320(p);
                         ^
:6858:28: note: passing argument to parameter 'p' here
bool fermat320(const uint* p) {
                           ^
:7109:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                        ^~~~~~
:4329:29: note: passing argument to parameter 'out' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                            ^
:7109:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                                ^~~~
:4329:44: note: passing argument to parameter 'op' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                                           ^
:7144:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                        ^~~~~~
:4671:29: note: passing argument to parameter 'out' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                            ^
:7144:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                                ^~~~
:4671:44: note: passing argument to parameter 'op' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                                           ^
:7191:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                             ^~~~~~
:5069:39: note: passing argument to parameter 'out' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7191:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                     ^~~~
:5069:54: note: passing argument to parameter 'op1' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7191:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                           ^~~~
:5069:69: note: passing argument to parameter 'op2' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:7236:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                             ^~~~~~
:5411:39: note: passing argument to parameter 'out' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7236:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                     ^~~~
:5411:54: note: passing argument to parameter 'op1' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7236:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                           ^~~~
:5411:69: note: passing argument to parameter 'op2' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^


I did (using CUDA 6.5) getting following error

[2014-11-07 06:25:45] Server supports longpoll
[2014-11-07 06:25:45] Got new target: 13.0000000 @ 22.4909167
[2014-11-07 06:25:50] Found platform[0] name = NVIDIA CUDA
[2014-11-07 06:25:50] ERROR: AMD Accelerated Parallel Processing found
[2014-11-07 06:25:50] OpenCL error: -34 at ./src/GPUFermat.cpp:390
[2014-11-07 06:25:50] OpenCL error: -34 at ./src/GPUFermat.cpp:390
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:50] clEnqueueNDRangeKernel error!
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:405
[2014-11-07 06:25:51] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:51] OpenCL error: -36 at ./src/GPUFermat.cpp:396

You should edit file src/GPUFermat.cpp:
const char *platformId = "amd" replace with const char *platformId = "nvidia"
q327K091
Legendary
*
Offline Offline

Activity: 1162


View Profile
November 07, 2014, 11:40:31 AM
 #579

Does anyone tried to compile GPU miner with NVIDIA CUDA SDK?

I have compiled it successfully but running miner fails:
$ gapminer -o http://mine3.gap.nonce-pool.com -p 4200 -u ***.*** -x *** -g
[2014-11-07 11:00:42] Server supports longpoll
[2014-11-07 11:00:42] Got new target: 13.0000000 @ 22.4775703
[2014-11-07 11:00:48] Found platform[0] name = NVIDIA CUDA
[2014-11-07 11:00:48] Found 1 device(s)
[2014-11-07 11:00:48] Compiling ...
[2014-11-07 11:00:48] Source: 205025 bytes
[2014-11-07 11:00:49] :4329:1: warning: type specifier missing, defaults to 'int'
sqrProductScan320(uint32_t *out, uint32_t *op)
^

and so on...
Code:
:4670:1: warning: control reaches end of non-void function
}
^
:4671:1: warning: type specifier missing, defaults to 'int'
sqrProductScan352(uint32_t *out, uint32_t *op)
^
:5068:1: warning: control reaches end of non-void function
}
^
:6687:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                  ^~~~~
:3715:53: note: passing argument to parameter 'op1' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6687:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                         ^
:3715:68: note: passing argument to parameter 'op2' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6689:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                   ^~~~~
:3881:54: note: passing argument to parameter 'op1' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6689:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to128(result, limbs, q);
                                          ^
:3881:69: note: passing argument to parameter 'op2' here
void mulProductScan352to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6691:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                   ^~~~~
:4076:54: note: passing argument to parameter 'op1' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6691:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to192(result, limbs, q);
                                          ^
:4076:69: note: passing argument to parameter 'op2' here
void mulProductScan352to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6708:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6747:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                ^~~~~
:2025:26: note: passing argument to parameter 'op' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6747:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr352(redcl, limbs, inverted);
                       ^~~~~
:2025:40: note: passing argument to parameter 'mod' here
void monSqr352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6749:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify352(index, q, limbs, m, windowSize);
                                ^
:6674:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6750:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
              ^~~~~
:2669:26: note: passing argument to parameter 'op1' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6750:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                     ^
:2669:41: note: passing argument to parameter 'op2' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6750:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul352(redcl, m, limbs, inverted);
                        ^~~~~
:2669:56: note: passing argument to parameter 'mod' here
void monMul352(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6755:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
              ^~~~~
:3313:28: note: passing argument to parameter 'op' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6755:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf352(redcl, limbs, inverted);
                     ^~~~~
:3313:42: note: passing argument to parameter 'mod' here
void redcHalf352(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6776:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                  ^~~~~
:1458:53: note: passing argument to parameter 'op1' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                    ^
:6776:42: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to96(result, limbs, q);
                                         ^
:1458:68: note: passing argument to parameter 'op2' here
void mulProductScan320to96(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                   ^
:6778:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                   ^~~~~
:1611:54: note: passing argument to parameter 'op1' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6778:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to128(result, limbs, q);
                                          ^
:1611:69: note: passing argument to parameter 'op2' here
void mulProductScan320to128(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6780:36: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                   ^~~~~
:1791:54: note: passing argument to parameter 'op1' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:6780:43: warning: incompatible pointer types passing 'uint4 [2]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan320to192(result, limbs, q);
                                          ^
:1791:69: note: passing argument to parameter 'op2' here
void mulProductScan320to192(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:6795:16: error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};
               ^
:6834:17: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                ^~~~~
:20:26: note: passing argument to parameter 'op' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                         ^
:6834:24: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      monSqr320(redcl, limbs, inverted);
                       ^~~~~
:20:40: note: passing argument to parameter 'mod' here
void monSqr320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                       ^
:6835:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    redcify320(index, q, limbs, m, windowSize);
                                ^
:6762:27: note: passing argument to parameter 'result' here
                uint32_t *result,
                          ^
:6836:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
              ^~~~~
:566:26: note: passing argument to parameter 'op1' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                         ^
:6836:22: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                     ^
:566:41: note: passing argument to parameter 'op2' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                        ^
:6836:25: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    monMul320(redcl, m, limbs, inverted);
                        ^~~~~
:566:56: note: passing argument to parameter 'mod' here
void monMul320(uint32_t *op1, uint32_t *op2, uint32_t *mod, uint32_t invm)
                                                       ^
:6841:15: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
              ^~~~~
:1112:28: note: passing argument to parameter 'op' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                           ^
:6841:22: warning: incompatible pointer types passing 'uint4 *restrict' to parameter of type 'uint32_t *' (aka 'unsigned int *')
  redcHalf320(redcl, limbs, inverted);
                     ^~~~~
:1112:42: note: passing argument to parameter 'mod' here
void redcHalf320(uint32_t *op, uint32_t *mod, uint32_t invm)
                                         ^
:6846:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest352((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6700:36: note: passing argument to parameter 'limbs' here
void FermatTest352(uint4 *restrict limbs,
                                   ^
:6860:17: warning: passing 'uint4 const *' to parameter of type 'uint4 *' discards qualifiers
  FermatTest320((const uint4*)p, modpowl);
                ^~~~~~~~~~~~~~~
:6789:36: note: passing argument to parameter 'limbs' here
void FermatTest320(uint4 *restrict limbs, uint4 *redcl)
                                   ^
:7038:25: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
        result[id] = fermat352(p);
                               ^
:6844:28: note: passing argument to parameter 'p' here
bool fermat352(const uint* p) {
                           ^
:7052:26: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint const *' (aka 'unsigned int const *')
  result[id] = fermat320(p);
                         ^
:6858:28: note: passing argument to parameter 'p' here
bool fermat320(const uint* p) {
                           ^
:7109:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                        ^~~~~~
:4329:29: note: passing argument to parameter 'out' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                            ^
:7109:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan320(result, op1v);
                                ^~~~
:4329:44: note: passing argument to parameter 'op' here
sqrProductScan320(uint32_t *out, uint32_t *op)
                                           ^
:7144:25: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                        ^~~~~~
:4671:29: note: passing argument to parameter 'out' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                            ^
:7144:33: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      sqrProductScan352(result, op1v);
                                ^~~~
:4671:44: note: passing argument to parameter 'op' here
sqrProductScan352(uint32_t *out, uint32_t *op)
                                           ^
:7191:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                             ^~~~~~
:5069:39: note: passing argument to parameter 'out' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7191:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                     ^~~~
:5069:54: note: passing argument to parameter 'op1' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7191:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan320to320(result, op1v, op2v);
                                           ^~~~
:5069:69: note: passing argument to parameter 'op2' here
void mulProductScan320to320(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^
:7236:30: warning: incompatible pointer types passing 'uint4 [6]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                             ^~~~~~
:5411:39: note: passing argument to parameter 'out' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                      ^
:7236:38: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                     ^~~~
:5411:54: note: passing argument to parameter 'op1' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                     ^
:7236:44: warning: incompatible pointer types passing 'uint4 [3]' to parameter of type 'uint32_t *' (aka 'unsigned int *')
      mulProductScan352to352(result, op1v, op2v);
                                           ^~~~
:5411:69: note: passing argument to parameter 'op2' here
void mulProductScan352to352(uint32_t *out, uint32_t *op1, uint32_t *op2)
                                                                    ^


I did (using CUDA 6.5) getting following error

[2014-11-07 06:25:45] Server supports longpoll
[2014-11-07 06:25:45] Got new target: 13.0000000 @ 22.4909167
[2014-11-07 06:25:50] Found platform[0] name = NVIDIA CUDA
[2014-11-07 06:25:50] ERROR: AMD Accelerated Parallel Processing found
[2014-11-07 06:25:50] OpenCL error: -34 at ./src/GPUFermat.cpp:390
[2014-11-07 06:25:50] OpenCL error: -34 at ./src/GPUFermat.cpp:390
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:50] clEnqueueNDRangeKernel error!
[2014-11-07 06:25:50] OpenCL error: -36 at ./src/GPUFermat.cpp:405
[2014-11-07 06:25:51] OpenCL error: -36 at ./src/GPUFermat.cpp:396
[2014-11-07 06:25:51] OpenCL error: -36 at ./src/GPUFermat.cpp:396

You should edit file src/GPUFermat.cpp:
const char *platformId = "amd" replace with const char *platformId = "nvidia"

done, next "Source files not found or empty" error (I did copy *.cl from gpu folder to bin...) bin has: benchmarks.cl  fermat.cl  gapminer  procs.cl

I think I see it.. it has to be off bin folder :as in bin/gpu ... need to re-learn hacking

[2014-11-07 06:39:09] Server supports longpoll
[2014-11-07 06:39:09] Got new target: 13.0000000 @ 22.4847092
[2014-11-07 06:39:15] Found platform[0] name = NVIDIA CUDA
[2014-11-07 06:39:15] Found 3 device(s)
[2014-11-07 06:39:15] Compiling ...
[2014-11-07 06:39:15] Source: 0 bytes
[2014-11-07 06:39:15] Source files not found or empty

----------------------------------------------------------------


OK... same error as person reporting it.. no go on NVDIA... at the moment...

it really is only one OPENCL fatal error:

error: too few elements in vector initialization (expected 4 elements, have 2)
  uint4 q[2] = {0, 0};"

bin]$ ./run-gapminer
[2014-11-07 06:47:57] Server supports longpoll
[2014-11-07 06:47:57] Got new target: 13.0000000 @ 22.4895000
[2014-11-07 06:48:02] Found platform[0] name = NVIDIA CUDA
[2014-11-07 06:48:02] Found 3 device(s)
[2014-11-07 06:48:02] Compiling ...
[2014-11-07 06:48:02] Source: 205025 bytes
[2014-11-07 06:48:03] :4329:1: warning: type specifier missing, defaults to 'int'
sqrProductScan320(uint32_t *out, uint32_t *op)
^
:4670:1: warning: control reaches end of non-void function
}
^
:4671:1: warning: type specifier missing, defaults to 'int'
sqrProductScan352(uint32_t *out, uint32_t *op)
^
:5068:1: warning: control reaches end of non-void function
}
^
:6687:35: warning: incompatible pointer types passing 'uint4 *' to parameter of type 'uint32_t *' (aka 'unsigned int *')
    mulProductScan352to96(result, limbs, q);
                                  ^~~~~
:3715:53: note: passing argument to parameter 'op1' here
void mulProductScan352to96(uint32_t *out, uint32_t *op1, uint32_t *op2)

new upcoming awesome coin

the Gulden Coin: GKWHEPx3rQyPnbgQUSHu8gtgoRCgpqed1j
q327K091
Legendary
*
Offline Offline

Activity: 1162


View Profile
November 07, 2014, 12:07:35 PM
 #580

ok got passed OpenCL compiler error, now this

( replaced

// uint4 q[2] = {0, 0};
    uint4 q[2] = {0, 0, 0, 0};
)

[2014-11-07 07:05:28] Server supports longpoll
[2014-11-07 07:05:28] Got new target: 13.0000000 @ 22.4320864
[2014-11-07 07:05:33] Found platform[0] name = NVIDIA CUDA
[2014-11-07 07:05:33] Found 3 device(s)
[2014-11-07 07:05:33] Compiling ...
[2014-11-07 07:05:33] Source: 205100 bytes
[2014-11-07 07:05:36] pps: -2147483648 / -2147483648  10g/h -2147483648 / -2147483648  15g/h -2147483648 / -2147483648
[2014-11-07 07:05:42] Compiled kernel binary size = 969615 bytes
[2014-11-07 07:05:42] Loaded kernel binary size = 969615 bytes
[2014-11-07 07:05:42] Using GPU 0 [GeForce GTX 750 Ti]: which has 5 CUs
[2014-11-07 07:05:42] clWaitForEvents error -9999!
[2014-11-07 07:05:42] OpenCL error: -5 at ./src/GPUFermat.cpp:406
[2014-11-07 07:05:42] OpenCL error: -5 at ./src/GPUFermat.cpp:397
[2014-11-07 07:05:42] OpenCL error: -5 at ./src/GPUFermat.cpp:397

new upcoming awesome coin

the Gulden Coin: GKWHEPx3rQyPnbgQUSHu8gtgoRCgpqed1j
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 ... 82 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!