Author Topic: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected  (Read 18151 times)

0 Members and 1 Guest are viewing this topic.

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
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!
« Last Edit: January 26, 2014, 05:59:31 pm by girino »

Offline dwrjones87

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #1 on: January 20, 2014, 08:10:34 am »
Link for the linux x64 binary isn't working

Offline earntodie

  • Full Member
  • ***
  • Posts: 88
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #2 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
1GH CLUB!! PTS mining club - PTS.1GH.COM, MEMORY coin mining club - MMC.1GH.COM, MAX coin mining club - MAX.1GH.COM

Offline bey

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #3 on: January 20, 2014, 10:35:39 am »
no .exe   ? ^^

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #4 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...

Offline FredZ

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #5 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

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #6 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.

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #7 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.

Offline FredZ

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #8 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

Offline earntodie

  • Full Member
  • ***
  • Posts: 88
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #9 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 ?
1GH CLUB!! PTS mining club - PTS.1GH.COM, MEMORY coin mining club - MMC.1GH.COM, MAX coin mining club - MAX.1GH.COM

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #10 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

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #11 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.

Offline bey

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #12 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 :)

Offline reorder

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #13 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 :)

Offline earntodie

  • Full Member
  • ***
  • Posts: 88
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net
« Reply #14 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!
1GH CLUB!! PTS mining club - PTS.1GH.COM, MEMORY coin mining club - MMC.1GH.COM, MAX coin mining club - MAX.1GH.COM

Offline FredZ

  • Newbie
  • *
  • Posts: 10
    • View Profile
I try windows version, but :



Thanks !

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
I try windows version, but :



Thanks !

There were some missing DLLs from cygwin runtime. Please redownload (now its a zip file). New version includes the missing files.

Offline FredZ

  • Newbie
  • *
  • Posts: 10
    • View Profile
Great, it works!

Congratulations for the work already done!

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


Offline FredZ

  • Newbie
  • *
  • Posts: 10
    • View Profile
with HD7970


Offline Aber

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
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)

Offline duckproto

  • Newbie
  • *
  • Posts: 19
    • View Profile
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
« Last Edit: January 20, 2014, 06:37:29 pm by duckproto »

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
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.

Offline duckproto

  • Newbie
  • *
  • Posts: 19
    • View Profile
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

Offline duckproto

  • Newbie
  • *
  • Posts: 19
    • View Profile
v4 is 1200-1369 - still getting 300 more with v3.

Offline earthbound

  • Full Member
  • ***
  • Posts: 120
    • View Profile
    • earthbound.io
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?)
« Last Edit: January 21, 2014, 02:58:52 am by earthbound »
I think I'm not alone when I say I'd like to see more and more planets fall under the ruthless dominion of our solar system. -Jack Handey

Offline earthbound

  • Full Member
  • ***
  • Posts: 120
    • View Profile
    • earthbound.io
I assume that address:

Pqsrrzqj3uLxLfQmUsNzRqG1NaYotMRey1

--in run.bat is yours?

I'm also sending a donation to iruu; his code started this, after all.
I think I'm not alone when I say I'd like to see more and more planets fall under the ruthless dominion of our solar system. -Jack Handey

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
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...

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
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?

Offline Bigboppa

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
1700 cpm at 2x R9280!
Great work!  :)
« Last Edit: January 21, 2014, 02:42:51 pm by Bigboppa »

Offline bey

  • Newbie
  • *
  • Posts: 19
    • View Profile
1700 cpm at 2x R9280!
Great work!  :)

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


Offline reorder

  • Sr. Member
  • ****
  • Posts: 400
    • View Profile
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 :)

Offline FredZ

  • Newbie
  • *
  • Posts: 10
    • View Profile
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

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #32 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.

Offline bey

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #33 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  :))

Offline FredZ

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #34 on: January 23, 2014, 10:09:23 am »
tested : 2x R9 290x  with -m512 / -m1024 or -m2048
The result is the same :


Offline bey

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #35 on: January 23, 2014, 10:15:36 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...


Offline qiufeng

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #36 on: January 23, 2014, 11:15:17 am »
great my 6x280x got 6100CPM !!!

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #37 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") .


Offline Bigboppa

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #38 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...

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: Mac OSX version available
« Reply #39 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!

Offline Bigboppa

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: new Release, 10% faster
« Reply #40 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

Offline qiufeng

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: Mac OSX version available
« Reply #41 on: January 24, 2014, 12:23:51 pm »
SHARES ARE NOT STABLE!!

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
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.

Offline plane501

  • Newbie
  • *
  • Posts: 11
    • View Profile
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.

Offline renesoft

  • Newbie
  • *
  • Posts: 15
    • View Profile
girino, can you implement gpuv7 to beeeer miner? thanks

Offline krpetrov

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
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.

Offline Bigboppa

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
Same error here...  :(
win7_x64, 2x R9280
Hope you can fix this!  :-*

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
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.

Offline slacking

  • Jr. Member
  • **
  • Posts: 47
    • View Profile
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

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
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.

Offline slacking

  • Jr. Member
  • **
  • Posts: 47
    • View Profile

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.
« Last Edit: January 26, 2014, 11:23:19 pm by slacking »

Offline Bigboppa

  • Jr. Member
  • **
  • Posts: 30
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #51 on: January 26, 2014, 07:26:03 pm »
new v6 works like a charm! 2300 cpm with 2x 9280x (-a gpuv7 -m1024) !   :)

Offline krpetrov

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #52 on: January 26, 2014, 08:53:02 pm »
Someone with Nvidia - how much collisions per minutes do you get?

Offline NaN

  • Full Member
  • ***
  • Posts: 162
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #53 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

Offline rots

  • Newbie
  • *
  • Posts: 12
    • View Profile
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.

Offline jwiz168

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #55 on: January 29, 2014, 10:42:53 pm »
share invalid : data time overflow  <--- this is the error . using 7970 win 7  64 bit

Offline krpetrov

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #56 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 ?

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #57 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)

Offline feelgood2

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #58 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!
« Last Edit: February 23, 2014, 09:28:07 am by feelgood2 »

Offline krpetrov

  • Jr. Member
  • **
  • Posts: 43
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #59 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.

Offline feelgood2

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #60 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>

Offline girino

  • Full Member
  • ***
  • Posts: 73
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #61 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.

Offline megadeth92

Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #62 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
Account: jdroa92

Offline feelgood2

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: OpenCL GPU miner by girino for ypool.net - edit: bug on AMD corrected
« Reply #63 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.