Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

so slow hashrate at AMD RX580 4gb Ubuntu #20

Closed
khunpoum opened this issue Aug 14, 2018 · 32 comments
Closed

so slow hashrate at AMD RX580 4gb Ubuntu #20

khunpoum opened this issue Aug 14, 2018 · 32 comments

Comments

@khunpoum
Copy link

khunpoum commented Aug 14, 2018

~800 khs at RX570/580 4gb

so slow hashrate, what is wrong?

amdgpu-pro 17.40
sgminer compiled from commit 844f29b (current master branch)

export GPU_SINGLE_ALLOC_PERCENT=100
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1
export GPU_MAX_HEAP_SIZE=100

./sgminer -k phi2 -w 32 -I 20 -o stratum+tcp://eu.bsod.pw:11518 -u LVC5XVtxhm3awsaJBVgvE3SsEprHQTXy1D -p c=LUX

pasted_image_8_14_18__8_43_pm

@fancyIX
Copy link
Owner

fancyIX commented Aug 14, 2018

@khunpoum Sorry, that speed is the best it can do. There is a better one made by @zjazz https://github.com/zjazz/zjazz_amd_miner

@KL0nLutiy
Copy link

@fancyIX, there is one more pattern for lyra2 algo: https://github.com/KL0nLutiy/sgminer-kl/blob/master/kernel/lyra2REv2.mdz.cl, maybe it will be faster?

@fancyIX
Copy link
Owner

fancyIX commented Aug 15, 2018

@KL0nLutiy, nice, will try. Is "lyra2REv2.mdz.cl" faster than "lyra2rev2.cl" in that folder? If so, it will be great

@KL0nLutiy
Copy link

@fancyIX, yes it is faster, also you could use wolf-echo and wolf-skein from https://github.com/KL0nLutiy/sgminer-kl/blob/master/kernel/x16.cl, it's much faster.

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

screenshot from 2018-08-16 07-06-54
Now it's faster. @khunpoum

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

@KL0nLutiy now it's much faster, but still not good enough. Any idea how to push it further?

@KL0nLutiy
Copy link

What about the lycl pattern? Is it slower than mdz?

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

@KL0nLutiy It's a little bit slower.

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

@KL0nLutiy
Copy link

@fancyIX, compiled that branch, but could not start miner failed during building binary with no errors.
Use this bat:

setx GPU_FORCE_64BIT_PTR=0
setx GPU_USE_SYNC_OBJECTS=1
setx GPU_MAX_ALLOC_PERCENT=100
setx GPU_SINGLE_ALLOC_PERCENT=100
setx GPU_MAX_HEAP_SIZE=100

sgminer.exe -k phi2 -o stratum+tcp://yiimp.eu:8332 -u LfV448zDbNezd8EEVGgVcju2qJNtyfC1n8.worker2 -p donate -I 18 -w 64 -g 1 -d 1 --log-file log.txt
pause

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

@KL0nLutiy what does log.txt say?

@KL0nLutiy
Copy link

log.txt

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

@KL0nLutiy "Failed to ADL_Overdrive5_ODPerformanceLevels_Get". Maybe it's irrelevant but you can try disable ADL

@KL0nLutiy
Copy link

@fancyIX, no it is always like this

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

@KL0nLutiy I tried it and it can run on my vega 56 on ubuntu 18.04. Maybe you forgot to make clean or remove .bin file?

@fancyIX
Copy link
Owner

fancyIX commented Aug 16, 2018

@KL0nLutiy Or, maybe my sgminer cannot run with your env at all, not specific to that branch. Did you try master branch?

@KL0nLutiy
Copy link

Master branch is working I test it with rx 580 8gb on windows, no .bin files in the folder

@KL0nLutiy
Copy link

@fancyIX, could you please attech compiled miner with lycl pattern?

@fancyIX
Copy link
Owner

fancyIX commented Aug 17, 2018 via email

@fancyIX
Copy link
Owner

fancyIX commented Aug 17, 2018

@KL0nLutiy I tried windows build but it cannot run, exits during compiling. Linux build works for me. Strange.

@KL0nLutiy
Copy link

@fancyIX, same behavior

@fancyIX
Copy link
Owner

fancyIX commented Aug 17, 2018 via email

@fancyIX
Copy link
Owner

fancyIX commented Aug 18, 2018

@KL0nLutiy I just realized that branch is behind and cannot work with newest luxcore. Fixed. You can try newest code now.

@fancyIX
Copy link
Owner

fancyIX commented Aug 18, 2018

Vega performance now is much faster:

vega56

@KL0nLutiy
Copy link

Just an idea for speed improvment, maybe split mdz kernel into 3 part like lycl pattern

@KL0nLutiy
Copy link

Also midstate for cubehash can be added

@KL0nLutiy
Copy link

KL0nLutiy commented Aug 18, 2018

@fancyIX, did you see this pattern?
lyra2.zip

@fancyIX
Copy link
Owner

fancyIX commented Aug 19, 2018

@KL0nLutiy Thanks for the suggestion. That code is good for lyra2rev2, but seems not good for lyra2, since lyra2 requires 4x more memory of the matrix

@fancyIX
Copy link
Owner

fancyIX commented Aug 19, 2018

@KL0nLutiy about that new pattern, did you get chance to try it? It should be better than the original mdz pattern since more local memory is used to store matrix instead of global mem. But I don't know if it's better in lyra2 case. I will try it anyway. BTW, where did you find it?

@KL0nLutiy
Copy link

@fancyIX, no I did not try it, find compiled version on chinese forum.

@fancyIX
Copy link
Owner

fancyIX commented Aug 20, 2018

Now hashrate of RX 580 is about 1.3Mhs and Vega 64 is about 2.6Mhs

@fancyIX
Copy link
Owner

fancyIX commented Aug 20, 2018

No long "so slow"

@fancyIX fancyIX closed this as completed Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants