Bitcoin Forum
December 17, 2017, 10:55:32 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   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 80 ... 87 »
  Print  
Author Topic: Gateless Gate Sharp 1.1.5: zawawa's open-source dual ETH/XMR/PASC/LBC/FTC miner  (Read 164394 times)
zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 07, 2017, 09:27:55 PM
 #581

I finally tracked down the last bug and was able to confirm that LLVM/Clang can be used to generate binaries for AMD's proprietary OpenCL drivers. Since LLVM is only capable of generating ROCm binaries, I had to insert a thin ABI translation layer at the beginning of the kernel.

According to a source at AMD, the ROCm ABI is the same as the HSAIL/brig ABI.  When I used CodeXL to generate a kernel binary on a system with Crimson 16.10 drivers, the binary contained HSAIL as well as brig symbols.  Since AMDs drivers can handle HSA/brig kernels, I would think they should also handle ROCm binaries.


What I found out was that AMD's drivers add extra hidden arguments to kernels, which completely messes up the order of arguments. Therefore, modifications to LLVM are necessary in order to use it for AMD's proprietary drivers.

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
1513508132
Hero Member
*
Offline Offline

Posts: 1513508132

View Profile Personal Message (Offline)

Ignore
1513508132
Reply with quote  #2

1513508132
Report to moderator
1513508132
Hero Member
*
Offline Offline

Posts: 1513508132

View Profile Personal Message (Offline)

Ignore
1513508132
Reply with quote  #2

1513508132
Report to moderator
1513508132
Hero Member
*
Offline Offline

Posts: 1513508132

View Profile Personal Message (Offline)

Ignore
1513508132
Reply with quote  #2

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

Posts: 1513508132

View Profile Personal Message (Offline)

Ignore
1513508132
Reply with quote  #2

1513508132
Report to moderator
1513508132
Hero Member
*
Offline Offline

Posts: 1513508132

View Profile Personal Message (Offline)

Ignore
1513508132
Reply with quote  #2

1513508132
Report to moderator
1513508132
Hero Member
*
Offline Offline

Posts: 1513508132

View Profile Personal Message (Offline)

Ignore
1513508132
Reply with quote  #2

1513508132
Report to moderator
zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 08, 2017, 08:13:50 AM
 #582

Now my custom LLVM/Clang is capable of generating assembly source codes compatible with AMD's proprietary OpenCL drivers. The only remaining work is to add CLRX-specific stuff to LLVM. I really want to get this done by tomorrow so that I can go back to miner programming.

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
h311m4n
Sr. Member
****
Offline Offline

Activity: 340


View Profile
February 08, 2017, 12:04:51 PM
 #583

Hi Zawawa,

First off, thanks for this program, works well.

I'm using version 0.1.3-pre1 and on a 6 GPU rig with Sapphire RX470 8GB, the fans seem to go crazy after some time. Like RPM goes to 0 then goes full speed, then back to 0 and so on. I don't think all the GPUs are affected. Also it seems GG seems to hang at some point. The computer is still available and closing re-opening GG get's it going again.

I do not have this issue with a 4 GPU RX470 rig though.

Anyone else having a similar issue?

Thanks
VaynardW
Newbie
*
Offline Offline

Activity: 12


View Profile
February 08, 2017, 12:47:04 PM
 #584

I had the same exact issue at first, it also happens to one of my rig,
It turns out that rig still using Catalyst 16.9, after a DDU uninstall and upgrading to 16.11, the problem seems to disappear
fr4nkthetank
Legendary
*
Offline Offline

Activity: 1218


cryptominingtalk.com


View Profile WWW
February 08, 2017, 02:04:27 PM
 #585

I had the same exact issue at first, it also happens to one of my rig,
It turns out that rig still using Catalyst 16.9, after a DDU uninstall and upgrading to 16.11, the problem seems to disappear
Yeah get the 16.11 drivers and I would recommend a custom fan profile with MSI afterburner.  Unless you are on linux I guess.  It gets the job done well.

                                 
           ░▓█████████████████▓░
          ▒▓██▓▓▓▓▓▓▓▓▓▓▒▓▒▒▒██▓▒░
      ░▒▓███▓                 ▒██▓▓▒░░    ░
▓▒███████▓▒        ░▒▒▒▒▒▒▒░    ░▓▓▓██▓▓▓▒▓
▒░██▒░░         ▒▓▓▓▓▒▒▒▒▓▓██▓▒     ░ ▒▓▓░▓
░▒▓█▒         ▒█▓▓▒▒▒▒▒▒▒▓▓▓████▓▓▒   ▒█▓▒▒
 ▒░██        ██▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒░██▒   ██▒▒
 ▓░▓█▒      ██▒▒▒▒▒▒░▒░░▒▒▒░░▒▓██▓   ▒██░▒
 ░▓░█▓     ▓█▓▒░▒▒▒▒▒▒▒░░░▒▒▓▓▓▓▓▒   ██░▓░
  ▓▒▒█▓  ▓▒█▓▒▒▓▓▒░▒░░░▒▒▒▒▒▒▒▒ █▒  ██▓░▓
   █░▒█▓ ▓███▓▒▒░░▒▒▒▒▒▒▒▒▒▒▒░ ▓█  ██▓ ▓
    █░▓█▓ ░██▓███▓▓▒▒▒▒▒▒▒░▒▒▓██  ██▓░▓
    ░█░▒██  ░ ░▓███████▓██████▒  ██▒░▓
      █▒░██▓      ░▒▒▓▓▓▓▒▒░   ▓██░▒▓
       ▓▓░▒██▒               ▒██▓░▓▓
        ░█▓░▓██▒           ▒██▓░▓█░
          ▒█▓░▓██▓       ▓██▓▒▓█▒
            ▒█▓▒▒███░ ▒███▒▒▓█▒
              ▒██▓▒▓███▓▒▒██▒
                ░▓██▒▒▒███░
                   ▒███▒














zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 08, 2017, 02:59:28 PM
 #586

Building LLVM is taking forever, so I have to entertain myself with something else...
So I have been thinking for quite some time about adding a nice graphical user interface/remote monitor to Gateless Gate, and I think I want to go with MultiMiner as somebody suggested here a while ago:

https://github.com/nwoolls/MultiMiner


It's open-source, compatible with sgminer, and seems to be feature-complete with automatic currency-switching.
What do you guys think?

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 08, 2017, 03:28:04 PM
 #587

Oh, I forgot to add that MultiMiner is cross-platform as well.
Actually, it seems to be working quite well with GG...

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
nerdralph
Sr. Member
****
Offline Offline

Activity: 406


View Profile
February 08, 2017, 04:27:27 PM
 #588

I finally tracked down the last bug and was able to confirm that LLVM/Clang can be used to generate binaries for AMD's proprietary OpenCL drivers. Since LLVM is only capable of generating ROCm binaries, I had to insert a thin ABI translation layer at the beginning of the kernel.

According to a source at AMD, the ROCm ABI is the same as the HSAIL/brig ABI.  When I used CodeXL to generate a kernel binary on a system with Crimson 16.10 drivers, the binary contained HSAIL as well as brig symbols.  Since AMDs drivers can handle HSA/brig kernels, I would think they should also handle ROCm binaries.


What I found out was that AMD's drivers add extra hidden arguments to kernels, which completely messes up the order of arguments. Therefore, modifications to LLVM are necessary in order to use it for AMD's proprietary drivers.

Interesting.  I started to reverse-engineer the fglrx drivers but only got part-way through it.  It appears most of the clang/llvm mods by AMD are open source, but it's rather difficult to figure out which branch with which patches are used in which driver release.  Here's an example of how AMD has been reasonably transparent about what they've been doing with llvm:
http://llvm.org/devmtg/2013-11/slides/Stellard-R600.pdf
YIz
Hero Member
*****
Offline Offline

Activity: 532



View Profile
February 08, 2017, 04:51:24 PM
 #589

Thanks for the good work zawawa and nerdalph, seems to be very close to Claymore's on my hardware and without the fee, but I'm unsuccessful in trying to make it start with Windows.

zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 08, 2017, 05:18:30 PM
 #590

Thanks for the good work zawawa and nerdalph, seems to be very close to Claymore's on my hardware and without the fee, but I'm unsuccessful in trying to make it start with Windows.

My crystal ball has been abused with assembly programming, so I need to know the following:

(1) your OS,
(2) the coin you tried to mine, and
(3) the display driver you are using.

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 08, 2017, 05:40:11 PM
 #591

I finally tracked down the last bug and was able to confirm that LLVM/Clang can be used to generate binaries for AMD's proprietary OpenCL drivers. Since LLVM is only capable of generating ROCm binaries, I had to insert a thin ABI translation layer at the beginning of the kernel.

According to a source at AMD, the ROCm ABI is the same as the HSAIL/brig ABI.  When I used CodeXL to generate a kernel binary on a system with Crimson 16.10 drivers, the binary contained HSAIL as well as brig symbols.  Since AMDs drivers can handle HSA/brig kernels, I would think they should also handle ROCm binaries.


What I found out was that AMD's drivers add extra hidden arguments to kernels, which completely messes up the order of arguments. Therefore, modifications to LLVM are necessary in order to use it for AMD's proprietary drivers.

Interesting.  I started to reverse-engineer the fglrx drivers but only got part-way through it.  It appears most of the clang/llvm mods by AMD are open source, but it's rather difficult to figure out which branch with which patches are used in which driver release.  Here's an example of how AMD has been reasonably transparent about what they've been doing with llvm:
http://llvm.org/devmtg/2013-11/slides/Stellard-R600.pdf


I don't know... They just moved implicit arguments at the end of the argument list to to the beginning. This does not make any sense to me, and I did not find any traces or mentions of this seemingly arbitrary change. Things like this make me believe that open-source tools are crucial for GPGPU and AMD is not doing enough.

In any case, it doesn't matter to me because I'm almost done with my custom LLVM. Can't wait to actually use it...

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
hannusolo
Sr. Member
****
Offline Offline

Activity: 336


View Profile
February 08, 2017, 06:14:43 PM
 #592

Building LLVM is taking forever, so I have to entertain myself with something else...
So I have been thinking for quite some time about adding a nice graphical user interface/remote monitor to Gateless Gate, and I think I want to go with MultiMiner as somebody suggested here a while ago:

https://github.com/nwoolls/MultiMiner


It's open-source, compatible with sgminer, and seems to be feature-complete with automatic currency-switching.
What do you guys think?

This is a good idea, it would make it more user friendly, which would help the average people who might have a good gpu but is using it only for gaming and doesn't want to mess with command windows.

But I think you shouldn't bother with comfort functions like this only if you really have notjhng to do Cheesy
h311m4n
Sr. Member
****
Offline Offline

Activity: 340


View Profile
February 08, 2017, 06:53:00 PM
 #593

I had the same exact issue at first, it also happens to one of my rig,
It turns out that rig still using Catalyst 16.9, after a DDU uninstall and upgrading to 16.11, the problem seems to disappear

Alright thanks for the tip!
zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 09, 2017, 04:59:07 PM
 #594

But I think you shouldn't bother with comfort functions like this only if you really have notjhng to do Cheesy

I know, I know... I'm still debugging my custom LLVM, but it is coming along.
I stripped away most of the unnecessary targets and tools to make it relatively lightweight.
I am taking my time here because it is crucial for miner development to have inline GCN assembly and a set target as opposed to ever-changing AMD drivers.
This may seem like a detour, but it is actually a necessary step for me to continue miner development without losing sanity.

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
jstefanop
Hero Member
*****
Offline Offline

Activity: 857


View Profile
February 09, 2017, 09:40:20 PM
 #595

Seems like claymore is in the same spot...wouldnt be surprised if his recent "eureka" moment is from the discussion happening in this thread.

www.AriseChickun.com 0% fee segwit signaling Litecoin Pool!
FutureBit Moonlander 2 USB Scrypt Stick Miner: https://bitcointalk.org/index.php?topic=2125643.0
LTC:LX5vpxrQE4eLRLPobKwZhw2comkKFCh3p4 - BTC:14w9Lea6kdVzspJk8TQRe7qSYu9LhzJJsh
zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 09, 2017, 10:53:34 PM
 #596

Seems like claymore is in the same spot...wouldnt be surprised if his recent "eureka" moment is from the discussion happening in this thread.

Oh, I'm now pretty sure he reads this thread. It's really funny in an ironic sense, but it does make things a bit more challenging for me. It's like playing poker with you being the only player with open hands. Oh well.

I am not entirely sure if I would take his current approach, though. I'm not going to feed my competition this time around, so he has to figure things out himself...

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
zawawa
Sr. Member
****
Online Online

Activity: 420


Miner Developer


View Profile
February 09, 2017, 11:26:35 PM
 #597

Hallelujah! My GCN compiler is finally working!
Well, it is a Frankenstein of LLVM/Clang and CLRadeonExtender, but as long as it works...

Gateless Gate Sharp, an open-source ETH/XMR miner: http://bit.ly/2rJ2x4V
BTC: 1BHwDWVerUTiKxhHPf2ubqKKiBMiKQGomZ
m1n1ngP4d4w4n
Full Member
***
Offline Offline

Activity: 154

CryptoLearner


View Profile
February 09, 2017, 11:30:32 PM
 #598

Hallelujah! My GCN compiler is finally working!
Well, it is a Frankenstein of LLVM/Clang and CLRadeonExtender, but as long as it works...

Good work man, now dazzle us  Wink  Grin

BTC - 1B1RBYkzxiTmrbnFe2vj8EaNPSYftW8186 for tips Wink
fr4nkthetank
Legendary
*
Offline Offline

Activity: 1218


cryptominingtalk.com


View Profile WWW
February 09, 2017, 11:55:53 PM
 #599

Hallelujah! My GCN compiler is finally working!
Well, it is a Frankenstein of LLVM/Clang and CLRadeonExtender, but as long as it works...

Cant wait to test out your next update !!!  I just can't get enough of em flashy colors

                                 
           ░▓█████████████████▓░
          ▒▓██▓▓▓▓▓▓▓▓▓▓▒▓▒▒▒██▓▒░
      ░▒▓███▓                 ▒██▓▓▒░░    ░
▓▒███████▓▒        ░▒▒▒▒▒▒▒░    ░▓▓▓██▓▓▓▒▓
▒░██▒░░         ▒▓▓▓▓▒▒▒▒▓▓██▓▒     ░ ▒▓▓░▓
░▒▓█▒         ▒█▓▓▒▒▒▒▒▒▒▓▓▓████▓▓▒   ▒█▓▒▒
 ▒░██        ██▒▒▒▒▒▒▒▒▒▒▒▒▒░▒▒░██▒   ██▒▒
 ▓░▓█▒      ██▒▒▒▒▒▒░▒░░▒▒▒░░▒▓██▓   ▒██░▒
 ░▓░█▓     ▓█▓▒░▒▒▒▒▒▒▒░░░▒▒▓▓▓▓▓▒   ██░▓░
  ▓▒▒█▓  ▓▒█▓▒▒▓▓▒░▒░░░▒▒▒▒▒▒▒▒ █▒  ██▓░▓
   █░▒█▓ ▓███▓▒▒░░▒▒▒▒▒▒▒▒▒▒▒░ ▓█  ██▓ ▓
    █░▓█▓ ░██▓███▓▓▒▒▒▒▒▒▒░▒▒▓██  ██▓░▓
    ░█░▒██  ░ ░▓███████▓██████▒  ██▒░▓
      █▒░██▓      ░▒▒▓▓▓▓▒▒░   ▓██░▒▓
       ▓▓░▒██▒               ▒██▓░▓▓
        ░█▓░▓██▒           ▒██▓░▓█░
          ▒█▓░▓██▓       ▓██▓▒▓█▒
            ▒█▓▒▒███░ ▒███▒▒▓█▒
              ▒██▓▒▓███▓▒▒██▒
                ░▓██▒▒▒███░
                   ▒███▒














xeridea
Sr. Member
****
Offline Offline

Activity: 375


View Profile WWW
February 09, 2017, 11:58:34 PM
 #600

Seems like claymore is in the same spot...wouldnt be surprised if his recent "eureka" moment is from the discussion happening in this thread.

Oh, I'm now pretty sure he reads this thread. It's really funny in an ironic sense, but it does make things a bit more challenging for me. It's like playing poker with you being the only player with open hands. Oh well.

I am not entirely sure if I would take his current approach, though. I'm not going to feed my competition this time around, so he has to figure things out himself...
I find these assumptions a bit odd, he has been fastest 95% of the time since launch, and people assume he uses methods from slower miners.  I think recent improvements are just to keep up with Optiminer, and timing is a coincidence.  He already had ASM working well many weeks ago for all cards.  I can't know for sure, I just find it odd that every time there is a CM speedup, some assume automatically it is from others.

Keep up the good work, just posting my thoughts.

Profitability over time charts for many GPUs - http://xeridea.us/charts

BTC:  16wzGLYLh1ximotu3Ln7htKnbUUcwWvQUv   LTC:  LdPvSJoAwgH87TXSMBuxDefBvp2bweXApY   Eth:  0xb508131ca5d983ebe72f8af61ecfb7d1b61f6d18
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 80 ... 87 »
  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!