fancyIX / sgminer-phi2-branch

A branch of sgminer optimized with GCN cross lane instructions on AMD (ethash, phi2, lyra2Z[z], allium, x25x, lyra2REv2/v3, argon2d, yescrypt, neoscrypt, 0x10)
GNU General Public License v3.0
54 stars 27 forks source link

Optimization for FURY(fiji) on allium/phi2/x22i #127

Closed Stargazer77 closed 5 years ago

Stargazer77 commented 5 years ago

Please optimize allium/phi2/x22i for FURY(fiji)(HBM) ! There are a lot of them in mining(we have a lot of too) and they are better than RX580 in many algorithms, but only after working as developers. They have HBM memory and very like on Vega! We waiting this update from you! Thank you!

fancyIX commented 5 years ago

@Stargazer77 fiji should be supported, but not tested. In "bin-kernel", can you try to rename the prebuilt bin file with name alliumEllesmereXXXX.bin to alliumFijiXXX.bin and put them in the "bin-kernel" folder and run it again? I think that should work, because the Ellesmer binary is compatible with gfx803 cards. But be prepared to hard reboot your computer if it freezes. If it works, it should be at lease 2x faster than what you get now. If it doesn't work, please tell me so I can add support for fiji cards later. Be sure your card is fiji. You can check this in your sgminer folder. After you run sgminer, a bin file will be generated in that folder. Say the name is alliumYYYXXX.bin, you can rename the prebuilt bin file (that can be found in bin-kernel folder) with name alliumEllesmereXXXX.bin to alliumYYYXXX.bin and put them in the "bin-kernel" folder and run it again. P.S. for x22i there is no prebuilt bin files to speed it up. So what you see now is the best it can do.

Stargazer77 commented 5 years ago

Yes, I know what they supported, I told about optimization work for this GPU, because 2.2Mh/s on allium(less on 45% then RX580, and on other algo with this miner results the same) its just funny! FIJI faster on all algo then RX580 and must be faster on this algos too! And I am test rename the prebuilt a two bin files: "alliumBaffingw256l4" and "alliumEllesmeregw256l4", and with "alliumBaffingw256l4" this works a little faster then "alliumEllesmeregw256l4"! FURY have a hbm memory and should work something like VEGA!! What you think about this?

ср, 21 нояб. 2018 г. в 04:26, fancyIX notifications@github.com:

@Stargazer77 https://github.com/Stargazer77 fiji should be supported, but not tested. In "bin-kernel", can you try to rename the prebuilt bin file with name alliumEllesmereXXXX.bin to alliumFijiXXX.bin and put them in the "bin-kernel" folder and run it again? I think that should work, because the Ellesmer binary is compatible with gfx803 cards. But be prepared to hard reboot your computer if it freezes. If it works, it should be at lease 2x faster than what you get now. If it doesn't work, please tell me so I can add support for fiji cards later. Be sure your card is fiji. You can check this in your sgminer folder. After you run sgminer, a bin file will be generated in that folder. Say the name is alliumYYYXXX.bin, you can rename the prebuilt bin file (that can be found in bin-kernel folder) with name alliumEllesmereXXXX.bin to alliumYYYXXX.bin and put them in the "bin-kernel" folder and run it again

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fancyIX/sgminer-phi2-branch/issues/127#issuecomment-440505474, or mute the thread https://github.com/notifications/unsubscribe-auth/ArH5yvAGmeziUE0RAe27ObjunIPXlyoEks5uxLnrgaJpZM4YsOTn .

fancyIX commented 5 years ago

@Stargazer77 What is the speed with your renamed file? only 2.2mhs? If so, there should be some problem. Fury seems like Vega with lower clock frequency. Interesting to see why its slower than expected. HBM should not help much since the current implementation is not memory bound. If you have time, can you rename the files for phi2 or lyra2z to see how the speed goes?

Stargazer77 commented 5 years ago

Because I do not think this result is an optimization. Binary files I changed (from 1mh/s it became 2.2mh/s), read my message carefully again. I think you need to work with this model(FURY/NANO) and see what the problem is. Can we expect improvements to this GPU from you?

ср, 21 нояб. 2018 г. в 05:09, fancyIX notifications@github.com:

@Stargazer77 https://github.com/Stargazer77 What is the speed with your renamed file? only 2.2mhs? If so, there should be some problem. Fury seems like Vega with lower clock frequency. Interesting to see why its slower than expected. HBM should not help much since the current implementation is not memory bound.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fancyIX/sgminer-phi2-branch/issues/127#issuecomment-440512789, or mute the thread https://github.com/notifications/unsubscribe-auth/ArH5yhxB99dAzD7CQQ3oRwBTgEHfaMeuks5uxMPtgaJpZM4YsOTn .

fancyIX commented 5 years ago

@Stargazer77 I can spend sometime studying why it's slow on fury cards. I don't have one such card on hand so it's hard for me to test my ideas.

Stargazer77 commented 5 years ago

Maybe someone lives next to you and will be able to gives this GPU for tests for a while? I would love to, but I live far away. And Postal services are more expensive than the Nano / Fury video card.

ср, 21 нояб. 2018 г. в 05:26, fancyIX notifications@github.com:

@Stargazer77 https://github.com/Stargazer77 I can spend sometime studying why it's slow on fury cards. I don't have one such card on hand so it's hard for me to test my ideas.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fancyIX/sgminer-phi2-branch/issues/127#issuecomment-440515645, or mute the thread https://github.com/notifications/unsubscribe-auth/ArH5ynkCsQY4oFqv9ZzAk233w7jyqA5Eks5uxMfhgaJpZM4YsOTn .

fancyIX commented 5 years ago

@Stargazer77 It's still expensive even for second hand. If someone can lend it to me I will spend some time to do some testing on it.

fancyIX commented 5 years ago

Won't fix because IP theft is happening (not to this miner though) in some closed source miner. It’s a huge effort to write GCN asm code and build optimized bin kernels including GCN code. If someone can just use your bin files in closed source miner without giving you any credit, what is the point of those effect building those bin kernels...