BitShares Forum

Other => Graveyard => BitShares PTS => Topic started by: girino on January 20, 2014, 05:56:33 am

Title: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: girino on January 20, 2014, 05:56:33 am
I had no intention of releasing my miner for ypool in the begining (the 70% harming the network, etc, etc), but since too many people asked, i am now releasing it. As always, the code is Open sourced and free. As I used jh00 jhProtominer as a base, and the minar and the pool support donation fees, i included a 2.5% developer fee in the code, that will only apply for those mining on ypool.net. If you mine on any other pool, please remember to donate.

Code is available at: https://github.com/girino/jhProtominer

BINARY FILES ARE AVAILABLE HERE: https://www.dropbox.com/sh/y3zsy1xe6sibusl/KtCKHkxpwR
(windows, Linux and OSX available).

EDIT: Windows compile now available. (Not tested, i still don't have my windows machine, cross-compiled on linux using mingw64). Link: https://www.dropbox.com/sh/y3zsy1xe6sibusl/KtCKHkxpwR

Edit again: The opencl files included in the previous zip file were outdated. please redownload for way better performance.

Edit 3: New optimizations in the sha512 code. Now 10% faster.

Edit 4: Per request, i made a Mac OSX version available.

Edit 5: Further optimized and customized sha512 code. At least 15% faster on NVidia. Binaries for Windows, Linux and OSX available.

Edit 6: Corrected bug in opencl that prevented it to work on AMD GPUs. Now works on every platform. Binaries for Windows, Linux and OSX available.

Hope you enjoy!
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: dwrjones87 on January 20, 2014, 08:10:34 am
Link for the linux x64 binary isn't working
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: earntodie on January 20, 2014, 09:34:42 am
I had no intention of releasing my miner for ypool in the begining (the 70% harming the network, etc, etc), but since too many people asked, i am now releasing it. As always, the code is Open sourced and free. As I used jh00 jhProtominer as a base, and the minar and the pool support donation fees, i included a 2.5% developer fee in the code, that will only apply for those mining on ypool.net. If you mine on any other pool, please remember to donate.

Code is available at: https://github.com/girino/jhProtominer

A linux 64bit compiled binary is available at: https://mega.co.nz/#F!oVBUmDjR!atcpQhUQ7C123F-XFiub0w

Hope you enjoy!
2.5% developer fee + 5% pool fee = 7,5% ?  :o
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: bey on January 20, 2014, 10:35:39 am
no .exe   ? ^^
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: girino on January 20, 2014, 11:39:59 am
I had no intention of releasing my miner for ypool in the begining (the 70% harming the network, etc, etc), but since too many people asked, i am now releasing it. As always, the code is Open sourced and free. As I used jh00 jhProtominer as a base, and the minar and the pool support donation fees, i included a 2.5% developer fee in the code, that will only apply for those mining on ypool.net. If you mine on any other pool, please remember to donate.

Code is available at: https://github.com/girino/jhProtominer

A linux 64bit compiled binary is available at: https://mega.co.nz/#F!oVBUmDjR!atcpQhUQ7C123F-XFiub0w

Hope you enjoy!
2.5% developer fee + 5% pool fee = 7,5% ?  :o

Yup. I have no intention of driving more people to ypool. But you can still use it on other pools with no fee. Call it an incentive...
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: FredZ on January 20, 2014, 11:44:34 am
i'm try.... but...;

Quote
$ make
g++  -O3 -march=native -c -o jhlib.o jhlib.cpp
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:52:0: attention : « FIONBIO » redéfini [enabled by default]
 #define FIONBIO 0
 ^
In file included from /usr/include/cygwin/socket.h:51:0,
                 from /usr/include/cygwin/in.h:21,
                 from /usr/include/netinet/in.h:14,
                 from /usr/include/arpa/inet.h:14,
                 from win.h:12,
                 from global.h:9,
                 from jhlib.cpp:1:
/usr/include/asm/socket.h:27:0: note: ceci est la localisation d'une précédente définition
 #define FIONBIO 0x8004667e /* To be compatible with termiost version */
 ^
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:77:0: attention : « __declspec » redéfini [enabled by default]
 #define __declspec(x) __##x
 ^
jhlib.cpp:1:0: note: ceci est la localisation d'une précédente définition
 #include"global.h"
 ^
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:83:6: erreur: #elif with no expression
 #elif
      ^
jhlib.cpp: In function ‘uint32 streamEx_substream_writeData(void*, void*, uint32)’:
jhlib.cpp:599:15: erreur: ‘__debugbreak’ was not declared in this scope
  __debugbreak(); // no write access for substreams?
               ^
jhlib.cpp: In function ‘void streamEx_substream_setSize(void*, uint32)’:
jhlib.cpp:611:15: erreur: ‘__debugbreak’ was not declared in this scope
  __debugbreak(); // not implemented
               ^
Makefile:25: recipe for target 'jhlib.o' failed
make: *** [jhlib.o] Error 1
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: girino on January 20, 2014, 11:45:48 am
no .exe   ? ^^

You shouldn't use windows for your crypto coin operations, it's not safe ;). Said that, I will provide a windows version this afternoon, when I get my hands to an windows box. Then I can produce an exe for you.
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: girino on January 20, 2014, 11:47:08 am
i'm try.... but...;

Quote
$ make
g++  -O3 -march=native -c -o jhlib.o jhlib.cpp
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:52:0: attention : « FIONBIO » redéfini [enabled by default]
 #define FIONBIO 0
 ^
In file included from /usr/include/cygwin/socket.h:51:0,
                 from /usr/include/cygwin/in.h:21,
                 from /usr/include/netinet/in.h:14,
                 from /usr/include/arpa/inet.h:14,
                 from win.h:12,
                 from global.h:9,
                 from jhlib.cpp:1:
/usr/include/asm/socket.h:27:0: note: ceci est la localisation d'une précédente définition
 #define FIONBIO 0x8004667e /* To be compatible with termiost version */
 ^
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:77:0: attention : « __declspec » redéfini [enabled by default]
 #define __declspec(x) __##x
 ^
jhlib.cpp:1:0: note: ceci est la localisation d'une précédente définition
 #include"global.h"
 ^
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:83:6: erreur: #elif with no expression
 #elif
      ^
jhlib.cpp: In function ‘uint32 streamEx_substream_writeData(void*, void*, uint32)’:
jhlib.cpp:599:15: erreur: ‘__debugbreak’ was not declared in this scope
  __debugbreak(); // no write access for substreams?
               ^
jhlib.cpp: In function ‘void streamEx_substream_setSize(void*, uint32)’:
jhlib.cpp:611:15: erreur: ‘__debugbreak’ was not declared in this scope
  __debugbreak(); // not implemented
               ^
Makefile:25: recipe for target 'jhlib.o' failed
make: *** [jhlib.o] Error 1

I'll get this working in a few hours. Just need to grab my windows box.
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: FredZ on January 20, 2014, 11:50:00 am
i'm try.... but...;

Quote
$ make
g++  -O3 -march=native -c -o jhlib.o jhlib.cpp
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:52:0: attention : « FIONBIO » redéfini [enabled by default]
 #define FIONBIO 0
 ^
In file included from /usr/include/cygwin/socket.h:51:0,
                 from /usr/include/cygwin/in.h:21,
                 from /usr/include/netinet/in.h:14,
                 from /usr/include/arpa/inet.h:14,
                 from win.h:12,
                 from global.h:9,
                 from jhlib.cpp:1:
/usr/include/asm/socket.h:27:0: note: ceci est la localisation d'une précédente définition
 #define FIONBIO 0x8004667e /* To be compatible with termiost version */
 ^
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:77:0: attention : « __declspec » redéfini [enabled by default]
 #define __declspec(x) __##x
 ^
jhlib.cpp:1:0: note: ceci est la localisation d'une précédente définition
 #include"global.h"
 ^
In file included from global.h:9:0,
                 from jhlib.cpp:1:
win.h:83:6: erreur: #elif with no expression
 #elif
      ^
jhlib.cpp: In function ‘uint32 streamEx_substream_writeData(void*, void*, uint32)’:
jhlib.cpp:599:15: erreur: ‘__debugbreak’ was not declared in this scope
  __debugbreak(); // no write access for substreams?
               ^
jhlib.cpp: In function ‘void streamEx_substream_setSize(void*, uint32)’:
jhlib.cpp:611:15: erreur: ‘__debugbreak’ was not declared in this scope
  __debugbreak(); // not implemented
               ^
Makefile:25: recipe for target 'jhlib.o' failed
make: *** [jhlib.o] Error 1

I'll get this working in a few hours. Just need to grab my windows box.
THANKS !

/Kiss  :D
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: earntodie on January 20, 2014, 11:54:32 am
I had no intention of releasing my miner for ypool in the begining (the 70% harming the network, etc, etc), but since too many people asked, i am now releasing it. As always, the code is Open sourced and free. As I used jh00 jhProtominer as a base, and the minar and the pool support donation fees, i included a 2.5% developer fee in the code, that will only apply for those mining on ypool.net. If you mine on any other pool, please remember to donate.

Code is available at: https://github.com/girino/jhProtominer

A linux 64bit compiled binary is available at: https://mega.co.nz/#F!oVBUmDjR!atcpQhUQ7C123F-XFiub0w

Hope you enjoy!
2.5% developer fee + 5% pool fee = 7,5% ?  :o

Yup. I have no intention of driving more people to ypool. But you can still use it on other pools with no fee. Call it an incentive...
Thanks for answer.
Miner dosn't support http://pts.1gh.com ?
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: girino on January 20, 2014, 12:35:46 pm
Thanks for answer.
Miner dosn't support http://pts.1gh.com ?

I think they use yet another different protocol (getwork), that is not supported by this client. You can try my other miner (same mining algorithms, but based in a different network protocol), that works on  beeeeer.org: https://bitsharestalk.org/index.php?topic=2374.0
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: girino on January 20, 2014, 02:09:42 pm
WINDOWS BINARIES NOW AVAILABLE. See first post for links.

I just compiled using mingw, but did not test. Please report any errors.

Thanks.
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: bey on January 20, 2014, 02:13:32 pm

I'll get this working in a few hours. Just need to grab my windows box.

thx :)
your 2,5% ll be welcome :)
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: reorder on January 20, 2014, 02:13:50 pm
I had no intention of releasing my miner for ypool in the begining (the 70% harming the network, etc, etc), but since too many people asked, i am now releasing it. As always, the code is Open sourced and free. As I used jh00 jhProtominer as a base, and the minar and the pool support donation fees, i included a 2.5% developer fee in the code, that will only apply for those mining on ypool.net. If you mine on any other pool, please remember to donate.

Code is available at: https://github.com/girino/jhProtominer

A linux 64bit compiled binary is available at: https://mega.co.nz/#F!oVBUmDjR!atcpQhUQ7C123F-XFiub0w

Hope you enjoy!
2.5% developer fee + 5% pool fee = 7,5% ?  :o

Yup. I have no intention of driving more people to ypool. But you can still use it on other pools with no fee. Call it an incentive...
Thanks for answer.
Miner dosn't support http://pts.1gh.com ?
Why would you need that? Ours is generally faster :)
Title: Re: OpenCL GPU miner by girino for ypool.net
Post by: earntodie on January 20, 2014, 02:54:36 pm
I had no intention of releasing my miner for ypool in the begining (the 70% harming the network, etc, etc), but since too many people asked, i am now releasing it. As always, the code is Open sourced and free. As I used jh00 jhProtominer as a base, and the minar and the pool support donation fees, i included a 2.5% developer fee in the code, that will only apply for those mining on ypool.net. If you mine on any other pool, please remember to donate.

Code is available at: https://github.com/girino/jhProtominer

A linux 64bit compiled binary is available at: https://mega.co.nz/#F!oVBUmDjR!atcpQhUQ7C123F-XFiub0w

Hope you enjoy!
2.5% developer fee + 5% pool fee = 7,5% ?  :o

Yup. I have no intention of driving more people to ypool. But you can still use it on other pools with no fee. Call it an incentive...
Thanks for answer.
Miner dosn't support http://pts.1gh.com ?
Why would you need that? Ours is generally faster :)
Yeap!
Your miner is much faster! Thx!
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: FredZ on January 20, 2014, 04:21:05 pm
I try windows version, but :

(http://finjalrac.free.fr/pts/pts.png)

Thanks !
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: girino on January 20, 2014, 04:26:01 pm
I try windows version, but :

(http://finjalrac.free.fr/pts/pts.png)

Thanks !

There were some missing DLLs from cygwin runtime. Please redownload (now its a zip file). New version includes the missing files.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: FredZ on January 20, 2014, 05:42:13 pm
Great, it works!

Congratulations for the work already done!

However, I am disappointed by the 1480 cpm obtained with a double "R9 290x."  :'(  :'(  :'( 

(http://finjalrac.free.fr/pts/pts2.png)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: FredZ on January 20, 2014, 05:57:22 pm
with HD7970

(http://finjalrac.free.fr/pts/GPU.jpg)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: Aber on January 20, 2014, 06:23:48 pm
Yeah speed is a problem... With 2x280x i am getting speed of 1x280x with 1gh.

To pass 1000 cpm i needed to run it with -m1024 (witm m2048 i got lower cpm)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: duckproto on January 20, 2014, 06:35:47 pm
Gigabyte 270X (4GB)
GPUAV4 = 200cpm

Gigabyte 290X (4GB)
GPUAV4 = 622cpm

1GH client is about 650+/1300+

Pulling 1k combined cards using GPUAV3 - at least 200-300cpm more on that setting.

-

Launching miner...
Using 2048 megabytes of memory per thread
Using 1 threads
Available devices:
Platform 00: AMD Accelerated Parallel Processing
  Device 00: Hawaii
  Device 01: Pitcairn
  Device 02: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Adjusting num threads to match device list: 2
Initializing GPU...
Initing device 0.
Starting OpenCLMomentum V2
Device 00: Hawaii
Max work group size: 256
Device 0 Inited.
Initing device 1.
Starting OpenCLMomentum V2
Device 01: Pitcairn
Max work group size: 256
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: girino on January 20, 2014, 11:49:10 pm
Yeah speed is a problem... With 2x280x i am getting speed of 1x280x with 1gh.

To pass 1000 cpm i needed to run it with -m1024 (witm m2048 i got lower cpm)

oops, i had a bad optimization leal into production code. Just reverted it. Please re-download and retest it. Should be way faster now.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: duckproto on January 21, 2014, 02:06:14 am
270X with 290X

Launching miner...
Using 2048 megabytes of memory per thread
Using 1 threads
Available devices:
Platform 00: AMD Accelerated Parallel Processing
  Device 00: Hawaii
  Device 01: Pitcairn
  Device 02: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Adjusting num threads to match device list: 2
Initializing GPU...
Initing device 0.
Starting OpenCLMomentum V3
Device 00: Hawaii
Max work group size: 256
Device 0 Inited.
Initing device 1.
Starting OpenCLMomentum V3
Device 01: Pitcairn
Max work group size: 256
Device 1 Inited.
All GPUs Initialized...
Connected to server using x.pushthrough(xpt) protocol
xpt: xxxx
New block data - height: 43845 tx count: 1
collisions/min: 1290.0000 Shares total: 0
collisions/min: 1455.0000 Shares total: 0
Share found! (BlockHeight: 43845)
collisions/min: 1460.0000 Shares total: 1
collisions/min: 1625.0000 Shares total: 2
collisions/min: 1633.0000 Shares total: 3
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: duckproto on January 21, 2014, 02:08:16 am
v4 is 1200-1369 - still getting 300 more with v3.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: earthbound on January 21, 2014, 02:43:54 am
THANK YOU for compiling this for Windows. I've been banging my head against the wall trying to get cygwin to like it :) and I'm sure I'd have succeeded eventually, but now I can forsake that sad battle :)

Also, I'm glad to finally see open source code enabling GPU mining for ProtoShares using all modern GPUs on all platforms.

[Edit: I'm sending you a PTS donation.]

Stats:
~400c/p on Radeon HD 78 (using 512 mem. Crashes with 1024 mem).
Crashes on Radeon HD 580, not sure why.

I think I'll break down and migrate my rig to linux, as I suspect I'll get much better speeds via that platform . . .

Questions: does this include the hidden options for different algorithms, and if so how are they invoked? Also, what ocl binary file is it wanting to read (when run on Windows), and would it load faster with that, and if so, where can I get said file?

(And if so, do you use your powers for good or for awesome?)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: earthbound on January 21, 2014, 02:51:34 am
I assume that address:

Pqsrrzqj3uLxLfQmUsNzRqG1NaYotMRey1

--in run.bat is yours?

I'm also sending a donation to iruu; his code started this, after all.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: girino on January 21, 2014, 04:34:07 am
I assume that address:

Pqsrrzqj3uLxLfQmUsNzRqG1NaYotMRey1

--in run.bat is yours?

I'm also sending a donation to iruu; his code started this, after all.

What run.bat are you talking about? This is not my address. You are probably mixing up the threads...
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: girino on January 21, 2014, 04:40:10 am
THANK YOU for compiling this for Windows. I've been banging my head against the wall trying to get cygwin to like it :) and I'm sure I'd have succeeded eventually, but now I can forsake that sad battle :)

Also, I'm glad to finally see open source code enabling GPU mining for ProtoShares using all modern GPUs on all platforms.

[Edit: I'm sending you a PTS donation.]

Stats:
~400c/p on Radeon HD 78 (using 512 mem. Crashes with 1024 mem).
Crashes on Radeon HD 580, not sure why.

I think I'll break down and migrate my rig to linux, as I suspect I'll get much better speeds via that platform . . .

Questions: does this include the hidden options for different algorithms, and if so how are they invoked? Also, what ocl binary file is it wanting to read (when run on Windows), and would it load faster with that, and if so, where can I get said file?

(And if so, do you use your powers for good or for awesome?)

It does have the hidden options. "-a gpuvN" where N can be 2, 3 or 4.

But i suspect we are talking about different things here. There is no ocl binary or anything like that on my miner. You probably downloaded another miner thinking it was mine?
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: Bigboppa on January 21, 2014, 01:55:29 pm
1700 cpm at 2x R9280!
Great work!  :)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: bey on January 21, 2014, 06:26:04 pm
1700 cpm at 2x R9280!
Great work!  :)

i think we can do more than 2000 with 2x R9280  :((

Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: reorder on January 21, 2014, 07:32:50 pm
1700 cpm at 2x R9280!
Great work!  :)

i think we can do more than 2000 with 2x R9280  :((
Why of course you can. Welcome to pts.1gh.com :)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Windows and linux binaries
Post by: FredZ on January 21, 2014, 09:28:52 pm
1700 cpm at 2x R9280!
Great work!  :)

i think we can do more than 2000 with 2x R9280  :((
Why of course you can. Welcome to pts.1gh.com :)

With R9 290x = 1272 cpm on pts.1gh.com
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: girino on January 23, 2014, 06:22:34 am
I just released another windows binary with new optimizations in the hashing code. This version is about 10% faster than the previous one.

Links on the first post of this thread. (new file is jhProtominer-win64-mingw-build4.zip).

Please update and test.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: bey on January 23, 2014, 10:09:06 am
I just released another windows binary with new optimizations in the hashing code. This version is about 10% faster than the previous one.

Links on the first post of this thread. (new file is jhProtominer-win64-mingw-build4.zip).

Please update and test.

Woot with R9 280 --> 980 cpm  :))
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: FredZ on January 23, 2014, 10:09:23 am
tested : 2x R9 290x  with -m512 / -m1024 or -m2048
The result is the same :
(http://finjalrac.free.fr/pts/jhpts.png)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: bey on January 23, 2014, 10:15:36 am
tested : 2x R9 290x  with -m512 / -m1024 or -m2048
The result is the same :
(http://finjalrac.free.fr/pts/jhpts.png)

I had same bug than you fredz, it is enough to Launch it two time, and it works correctly...

Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: qiufeng on January 23, 2014, 11:15:17 am
great my 6x280x got 6100CPM !!!
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: girino on January 23, 2014, 11:52:00 am
tested : 2x R9 290x  with -m512 / -m1024 or -m2048
The result is the same :


I had same bug than you fredz, it is enough to Launch it two time, and it works correctly...

how strange. Does it happen also with the other algorithms? (command line options: "-a gpuv3" and "-a gpuv4") .

Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: Bigboppa on January 23, 2014, 12:02:46 pm
With old jhProtominer-win64-mingw-build2 i had the problem, that after running smooth for 1-2 hours, monitor goes black and computer freezes. No chance but to reset whole machine. (One of the mining-gpu is also for monitor). This happened 3 times. Hopefully jhProtominer-win64-mingw-build4 has fixed this, i will report later...
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Mac OSX version available
Post by: renesoft on January 23, 2014, 02:07:30 pm
Realy great work! ~1000 cpm on 7970 with gpuv6 and 1024 mb of memory ( with 2048 work slow ~300 cpm)
thanks!
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
Post by: Bigboppa on January 24, 2014, 11:09:58 am
With old jhProtominer-win64-mingw-build2 i had the problem, that after running smooth for 1-2 hours, monitor goes black and computer freezes. No chance but to reset whole machine. (One of the mining-gpu is also for monitor). This happened 3 times. Hopefully jhProtominer-win64-mingw-build4 has fixed this, i will report later...
Problem seems to be fixed! No more crashes for >6h.
2070 cpm with 2x 9280x @1080/1500MHz, -m1028  :D
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: Mac OSX version available
Post by: qiufeng on January 24, 2014, 12:23:51 pm
SHARES ARE NOT STABLE!!
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: girino on January 26, 2014, 04:41:07 am
Helo all,

I just released new binaries (ending with build5) in the same old place (see first post). Those binaries use a new sha512 code, tuned and optimized by my during the last few days. It is at least 15% faster than the old code.

Short Version: faster! gpuv7 is default, gpuv9 is the low memory mode.

TLDR version: The new "-a" options "gpuv7", "gpuv8" and "gpuv9" all use the new code. "gpuv9" is the low memory version, same as "gpuv3", using the new sha512 code. "gpuv8" is the same as "gpuv4" with the new code, and "gpuv7" is based on "gpuv6", but uses a linear collision avoidance hashtable instead of the plain hashtable used before. It is bound to find slightly more hashes at the cost of being a little bit slower. since in all my tests it produces better CPM, i made "gpuv7" the default mode. The old modes are still kept for compatibility (maybe my optimizations are not compatible with all GPUs, then you can always fall back to the old modes).

Please download and enjoy.

Thanks,
girino.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: plane501 on January 26, 2014, 05:55:51 am
error when run build5

windows 7 64bit HD7950 and build 4 runs normally




                                                  ^

"C:\Users\John\AppData\Local\Temp\OCL469B.tmp.cl", line 255: error: expression
          must have pointer-to-struct-or-union type
        step0to15(0); step0to15(1); step0to15(2); step0to15(3);
                                                  ^

Error limit reached.
100 errors detected in the compilation of "C:\Users\John\AppData\Local\Temp\OCL4
69B.tmp.cl".
Compilation terminated.

Frontend phase failed compilation.

---  End log  ---
Assertion failed!

Program: H:\jhProtominer-win64-mingw-build5\jhProtominer\jhProtominer.exe
File: OpenCLObjects.cpp, Line 310

Expression: !error

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: renesoft on January 26, 2014, 07:18:26 am
girino, can you implement gpuv7 to beeeer miner? thanks
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: krpetrov on January 26, 2014, 08:20:50 am
error when run build5

windows 7 64bit HD7950 and build 4 runs normally




                                                  ^

"C:\Users\John\AppData\Local\Temp\OCL469B.tmp.cl", line 255: error: expression
          must have pointer-to-struct-or-union type
        step0to15(0); step0to15(1); step0to15(2); step0to15(3);
                                                  ^

Error limit reached.
100 errors detected in the compilation of "C:\Users\John\AppData\Local\Temp\OCL4
69B.tmp.cl".
Compilation terminated.

Frontend phase failed compilation.

---  End log  ---
Assertion failed!

Program: H:\jhProtominer-win64-mingw-build5\jhProtominer\jhProtominer.exe
File: OpenCLObjects.cpp, Line 310

Expression: !error

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Got same error too.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: Bigboppa on January 26, 2014, 10:48:28 am
Same error here...  :(
win7_x64, 2x R9280
Hope you can fix this!  :-*
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: girino on January 26, 2014, 01:29:21 pm
error when run build5

windows 7 64bit HD7950 and build 4 runs normally




                                                  ^

"C:\Users\John\AppData\Local\Temp\OCL469B.tmp.cl", line 255: error: expression
          must have pointer-to-struct-or-union type
        step0to15(0); step0to15(1); step0to15(2); step0to15(3);
                                                  ^

Error limit reached.
100 errors detected in the compilation of "C:\Users\John\AppData\Local\Temp\OCL4
69B.tmp.cl".
Compilation terminated.

Frontend phase failed compilation.

---  End log  ---
Assertion failed!

Program: H:\jhProtominer-win64-mingw-build5\jhProtominer\jhProtominer.exe
File: OpenCLObjects.cpp, Line 310

Expression: !error

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

probably used some dialect that AMD does not recognize. (tested on NVidia only). I will test with AMD later today and correct the errors. Thanks for the report.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: slacking on January 26, 2014, 05:59:40 pm
error when run build5

windows 7 64bit HD7950 and build 4 runs normally


I have Windows 8.1 64 bit, overclocked Radeon 7950, -a gpuv6 -m512 (1024 crashes)...getting in the 930 cpm range.

http://i.imgur.com/LrIeoBq.jpg
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: girino on January 26, 2014, 06:02:14 pm
Same error here...  :(
win7_x64, 2x R9280
Hope you can fix this!  :-*

Fixed the new implementation so it works on AMD. All that had " error: expression must have pointer-to-struct-or-union type" type errors, please download the new version (build6), or simply update the sha512vectorized.cl file in your already downloaded build5.

Thanks to all for the bug reports and for the patience.
girino.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: slacking on January 26, 2014, 06:23:59 pm

Fixed the new implementation so it works on AMD. All that had " error: expression must have pointer-to-struct-or-union type" type errors, please download the new version (build6), or simply update the sha512vectorized.cl file in your already downloaded build5.

Thanks to all for the bug reports and for the patience.
girino.

Updated to V6 of the miner. Windows 8.1 64 bit, overclocked Radeon 7950, -a gpuv7 (used to crash on this before) -m512 (1024 still crashes)...now getting in the 1030 cpm range.

http://i.imgur.com/0jc0v5y.jpg

Update: After running for half a hour or so, cpm's rose and stabilized at around 1048....not too darn bad for a Radeon 7950.

Update: After running for a few hours, cpm's are at a stable 1056.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: Bigboppa on January 26, 2014, 07:26:03 pm
new v6 works like a charm! 2300 cpm with 2x 9280x (-a gpuv7 -m1024) !   :)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: krpetrov on January 26, 2014, 08:53:02 pm
Someone with Nvidia - how much collisions per minutes do you get?
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: NaN on January 26, 2014, 08:56:15 pm
here is a new, fast miner for AMD gpus: https://bitsharestalk.org/index.php?topic=2598.0
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: SHA512 Optimized 15%+ faster.
Post by: rots on January 28, 2014, 07:07:41 am
quite astonished that
6850 800cpm !!!
270x 650cpm
280x 1100cpm

6850 seems drugged!

Same error here...  :(
win7_x64, 2x R9280
Hope you can fix this!  :-*

Fixed the new implementation so it works on AMD. All that had " error: expression must have pointer-to-struct-or-union type" type errors, please download the new version (build6), or simply update the sha512vectorized.cl file in your already downloaded build5.

Thanks to all for the bug reports and for the patience.
girino.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: jwiz168 on January 29, 2014, 10:42:53 pm
share invalid : data time overflow  <--- this is the error . using 7970 win 7  64 bit
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: krpetrov on February 22, 2014, 07:39:36 am
Need help running miner on Ubuntu 13.10.

5850 1GB wont run. I get the following error -
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_INVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE value specified in the table of allowed values for param_name for clGetDeviceInfo for all devices in context.
ptsminer: OpenCLObjects.cpp:373: OpenCLBuffer* OpenCLContext::createBuffer(size_t, cl_mem_flags, void*): Assertion `_MY_ERR_X == 0' failed.
Aborted (core dumped)

Any advice? What should I do ?
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: girino on February 22, 2014, 03:11:09 pm
Need help running miner on Ubuntu 13.10.

5850 1GB wont run. I get the following error -
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_INVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE value specified in the table of allowed values for param_name for clGetDeviceInfo for all devices in context.
ptsminer: OpenCLObjects.cpp:373: OpenCLBuffer* OpenCLContext::createBuffer(size_t, cl_mem_flags, void*): Assertion `_MY_ERR_X == 0' failed.
Aborted (core dumped)

Any advice? What should I do ?

try running with "-a gpuv9" and different values for -m (-m128 is sure to work, -m256 probably works, -m512 if it works will be the best)
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: feelgood2 on February 22, 2014, 03:17:50 pm
Something weird happen with your miner. When I first tried it, I received over 600 coll/min.
Then I tried to play with memory setting by using -m. When I try -m1024, it crashes. For others I get very low coll/min. Now, when I remove -m I get 250 colls/min.
Downloaded ver6 again but without change. Can't get more than 250 colls/min. Currently using Nan's version and getting 450 colls/min.

Card is 6870 1GB

Edit: tried this -a gpuv9 and is working for half an hour over 850. Great work!
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: krpetrov on February 22, 2014, 06:05:19 pm
Need help running miner on Ubuntu 13.10.

5850 1GB wont run. I get the following error -
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_INVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE value specified in the table of allowed values for param_name for clGetDeviceInfo for all devices in context.
ptsminer: OpenCLObjects.cpp:373: OpenCLBuffer* OpenCLContext::createBuffer(size_t, cl_mem_flags, void*): Assertion `_MY_ERR_X == 0' failed.
Aborted (core dumped)

Any advice? What should I do ?

try running with "-a gpuv9" and different values for -m (-m128 is sure to work, -m256 probably works, -m512 if it works will be the best)

Tried all gpuv options but none works with 5850. With other 1GB card - 560ti -  is works with gpuv9.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: feelgood2 on February 27, 2014, 08:15:33 am
I got this error on 6870 1GB. There are some settings in which it uses 1024 MB of memory:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Mile>cd C:\Users\Mile\Desktop\jhProtominer

C:\Users\Mile\Desktop\jhProtominer>proba2

C:\Users\Mile\Desktop\jhProtominer>jhProtominer.exe -o ypool.net -u x.x
 -p x -a gpuv9 -m1024
╔══════════════════════════════════════════════════╗
║  jhProtominer (v0.2a) + OpenCL GPU Support       ║
║  author: girino, based on code by jh             ║
║                                                  ║
║  If you like it, please donate:                  ║
║  PTS: PkyeQNn1yGV5psGeZ4sDu6nz2vWHTujf4h         ║
║  BTC: 1GiRiNoKznfGbt8bkU1Ley85TgVV7ZTXce         ║
║                                                  ║
║  Please note  that on  pools that support  it    ║
║  (currently only ypool.net), there is an 2.5║
║  mining fee to support further development of    ║
║  this software.                                  ║
╚══════════════════════════════════════════════════╝
Launching miner...
Using 1024 megabytes of memory per thread
Using 1 threads
Available devices:
Platform 00: AMD Accelerated Parallel Processing
  Device 00: Barts
  Device 01: AMD Phenom(tm) II X4 925 Processor
Adjusting num threads to match device list: 1
Initializing GPU...
Initing device 0.
Starting OpenCLMomentum V9
Device 00: Barts
Max work group size: 256
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_I
NVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE valu
e specified in the table of allowed values for param_name for clGetDeviceInfo fo
r all devices in context.
Assertion failed!

Program: C:\Users\Mile\Desktop\jhProtominer\jhProtominer.exe
File: OpenCLObjects.cpp, Line 373

Expression: _MY_ERR_X == CL_SUCCESS

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Users\Mile\Desktop\jhProtominer>
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: girino on February 27, 2014, 04:51:59 pm
I got this error on 6870 1GB. There are some settings in which it uses 1024 MB of memory:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Mile>cd C:\Users\Mile\Desktop\jhProtominer

C:\Users\Mile\Desktop\jhProtominer>proba2

C:\Users\Mile\Desktop\jhProtominer>jhProtominer.exe -o ypool.net -u x.x
 -p x -a gpuv9 -m1024
╔══════════════════════════════════════════════════╗
║  jhProtominer (v0.2a) + OpenCL GPU Support       ║
║  author: girino, based on code by jh             ║
║                                                  ║
║  If you like it, please donate:                  ║
║  PTS: PkyeQNn1yGV5psGeZ4sDu6nz2vWHTujf4h         ║
║  BTC: 1GiRiNoKznfGbt8bkU1Ley85TgVV7ZTXce         ║
║                                                  ║
║  Please note  that on  pools that support  it    ║
║  (currently only ypool.net), there is an 2.5║
║  mining fee to support further development of    ║
║  this software.                                  ║
╚══════════════════════════════════════════════════╝
Launching miner...
Using 1024 megabytes of memory per thread
Using 1 threads
Available devices:
Platform 00: AMD Accelerated Parallel Processing
  Device 00: Barts
  Device 01: AMD Phenom(tm) II X4 925 Processor
Adjusting num threads to match device list: 1
Initializing GPU...
Initing device 0.
Starting OpenCLMomentum V9
Device 00: Barts
Max work group size: 256
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_I
NVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE valu
e specified in the table of allowed values for param_name for clGetDeviceInfo fo
r all devices in context.
Assertion failed!

Program: C:\Users\Mile\Desktop\jhProtominer\jhProtominer.exe
File: OpenCLObjects.cpp, Line 373

Expression: _MY_ERR_X == CL_SUCCESS

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

C:\Users\Mile\Desktop\jhProtominer>

You wont be able to use the full 1Gb for the miner since some parts of the memory is used for other purposes by the card. You should check the amount of free memory, not the total memory to see what you can run.
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: megadeth92 on March 02, 2014, 12:52:25 pm
Runs at 550 coll/min for with an Asus 7850
Integrated GPU of 4770K makes crash the miner :S
Title: Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
Post by: feelgood2 on April 17, 2014, 05:55:39 am
On my 290x I got the following error:

C:\Users\Mile\Desktop\jhProtominer>jhProtominer.exe -o ypool.net -u XXXXXX.PTS -p x -d 0 -a gpuv4 -m2048
╔══════════════════════════════════════════════════╗
║  jhProtominer (v0.2a) + OpenCL GPU Support       ║
║  author: girino, based on code by jh             ║
║                                                  ║
║  If you like it, please donate:                  ║
║  PTS: PkyeQNn1yGV5psGeZ4sDu6nz2vWHTujf4h         ║
║  BTC: 1GiRiNoKznfGbt8bkU1Ley85TgVV7ZTXce         ║
║                                                  ║
║  Please note  that on  pools that support  it    ║
║  (currently only ypool.net), there is an 2.5║
║  mining fee to support further development of    ║
║  this software.                                  ║
╚══════════════════════════════════════════════════╝
Launching miner...
Using 2560 megabytes of memory per thread
Using 1 threads
Available devices:
Platform 00: AMD Accelerated Parallel Processing
  Device 00: Hawaii
  Device 01: AMD Phenom(tm) II X4 925 Processor
Adjusting num threads to match device list: 2
Initializing GPU...
Initing device 0.
Starting OpenCLMomentum V4
Device 00: Hawaii
Max work group size: 256
ERROR: -61, CL_INVALID_BUFFER_SIZE, if size is 0.Implementations may return CL_I
NVALID_BUFFER_SIZE if size is greater than the CL_DEVICE_MAX_MEM_ALLOC_SIZE valu
e specified in the table of allowed values for param_name for clGetDeviceInfo fo
r all devices in context.
Assertion failed!

Program: C:\Users\Mile\Desktop\jhProtominer\jhProtominer.exe
File: OpenCLObjects.cpp, Line 373

Expression: _MY_ERR_X == CL_SUCCESS

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.