-
Notifications
You must be signed in to change notification settings - Fork 825
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
Add Scrypt-Adaptive-Nfactor algorithm for mining vertcoin #92
Comments
I've actually been thinking more and more lately of a complete rewrite (most probably in Python for easier cross-platform support) that would allow extending the core functionality with pluggable modules (plug-ins). This would allow handling not-necessarily-compatible work units, user interfaces, peering protocols, devices, and whatever else the various communities come up with. (EDIT: The "core" referred to here would essentially be plumbing.) The work done from That said, I do not see myself starting a rewrite right now, taking all the other projects (besides |
I have had the same ideas, It would also be kind of neat if the pools could signal/hint the type of algorithm used in the pool. That way we could have multipools mining different algorithms (scrypt-jane/scrypt/adaptive-scrypt/etc..), using one single miner... |
Too bad it's not as simple as dropping the .cl kernel from vertminer into sgminer and renaming it... |
Check this https://github.com/troky/sgminer/tree/nscrypt it works fine with --nscrypt --kernel="nscrypt" |
@troky haven't tested, just a quick review - looks good. Perhaps it would be better to have an arged option |
It was just quick port from https://github.com/Bufius/vertminer-gpu . I was thinking to remove use of |
error fixed in https://github.com/troky/sgminer/tree/nscrypt |
Does not seem to be fixed troky :( Error persists and make errors out with: scrypt.c:430:65: error: macro "scrypt_1024_1_1_256_sp" passed 4 arguments, but takes just 3 Anyway: Greatly appreciate your effort! |
My bad. Still warming up ;) |
:) |
Hm, line 434 in scrypt.c is the next one to error out |
Fixed in troky@850f514 |
Edit: compiles and runs OK but is rather slow. Compared to vertminer I loose about 120 Kh/s on my 280x with adjusted settings. |
@troky, I was proposing a "generic" option like |
@dlueth I have the same hashrate as I had in vertminer with the same configuration. Don't use xIntensity nor raw intensity yet since something is wrong with that code. |
No problem, here you go: "intensity" : "13,12", It might look funny but the rig is running a R9 280x and an older 5850.My main reason for running sgminer over cgminer is the possibility to have different gpu-threads. The 280x prefers 2 while the 5850 will only run with 1. For vertminer I set gpu-threads to 1 which leads to approx. 300/165 Kh/s. TC for the vertminer for the 5850 can be set to 5760. When using your fork and I switch to gpu-threads 2,1 the 280x goes down to approx. 230Kh/s. With a TC of 5760 for the 5850 it will not start at all. Have to go down to something like 4096 for the 5850 which will lead to 95Kh/s anyway. So, depending on which options I choose I loose between 70Kh/s and 140Kh/s compared to vertminer. |
I am using this config for both vertminer, and sgminer-nscrypt fork:
2x XFX R9 290 ... and I am getting the same results in both miners (415-445 KH/s). Try not to use "shaders" config parameter and always test with SAME config. |
Silly me, I was syncing the main git tree so it was not grabbing the nscrypt branch when I was first trying to compile. All works very well now, good job :) |
@troky i would love to test with identical configs but sgminer will not even start mining on gpu1 if i do not lower its tc. Vertminer does start and run with 300/165 with the exact same config. |
@dlueth I'll go through all ported code again to check for possible problems. It is strange that the same config from vertminer doesn't work in sgminer-nscrypt since nscrypt code ported from vertminer is not modified. |
@troky hang on a second, just arrived at work where my rig is hosted and had an idea on the way which seems to proove right at first glance: In vertminer (either official or TheKev, both give identical results) there seems to be some kind of logic that limits TC. Even though I put "5760" for the 5850 in the config the bin file states it is "4032" and "8912" for the 280x instead of "8913". So far so good, but in the end results stay more or less identical: "intensity" : "13,12", Gives 300/165 in vertminer (official and TheKev) and 295/100 in the modified sgminer. |
@troky Just for the reference: I tested it on TheKev Vertminer 0.5.2 and official Vertminer 0.5.4 current beta. My Rig is running on a custom minimal mining install of Debian Squeeze with Catalyst 13.12, ADL SDK 6.0 and APP SDK 2.9 |
@dlueth Please try the same config but without |
@troky same result (might even be slightly worse at 296/95), deleted the *.bin files just to make sure nothing gets mixed up... |
I did some updates (mostly about TC calculation). Pull fresh tree, recompile, test and report back. |
@dlueth Can you build and test https://github.com/Bufius/vertminer-gpu ? I ported code from master. Maybe you used some older code/miner with better results? |
@troky deleted my previous answer, forgot to quit the running vertminer process... Pulled your changes, compiled a fresh version, deleted bin files but results stay the same :( |
Nice test. |
@p4fg I can't see |
Ah, crap. I removed that ~ a week ago, because someone complained about how spammy it is. :( |
The compiled kernels are different, but that is no surprise as the CL-code differs (have not checked how much though) |
@p4fg Why should compiled kernel be different if they are compiled using the same params on the same machine with the same hardware? Anyway, please test again with troky@e82f938 applied and proper |
Because the kernel source-file differs between my Vertminer 0.5.3 and sgminer.... :-) Will do another test tonight! |
So use the same file. |
@troky modified sgminer: 300/129 Kh/s, vertminer 300/165 - so it is an improvement but there still hast to be some kind of difference regarding older GPUs |
Alrighty.. more testing going on... and more weirdness found (using same parameters for both) Vertminer 0.5.3
Sgminer troky/sgminer@e82f938
Same .cl-file.. different compiled binary-kernels... @troky using shaders 1440 gives a threadcount of 11?
Problem seems to be this:
A TC of 11 (or 5 for that matter) seems a bit low.. (and also produces tons of HW errors) |
How about this: troky@c8e4ec3 |
@troky In my case the change did not do a thing, still at approx. 300/125 compared to 300/165 |
still waiting for @p4fg test to see if TC is fixed or not. |
I'm having very good results on my HD7970, after playing around with different configs and builds. Finally down to 0 HW errors! Yay! :) What I had to do was use the .cl kernel file from vertminer 5.2 and drop it into your latest build (renaming it nscrypt.cl, of course), compile without ADL, and setup my config as follows: Getting a solid 380Kh/s, again with ZERO HW errors. These are results I could not achieve with any of the vertminer versions. |
Which cl file should I be using with this? I got it to build and run, but based on the speeds it seems to still be hashing regular Scrypt. Does it come with the file I need or do I pull it out of the vertminer source? |
@kylecronan rename |
@troky Oh oops, I just forgot 'git checkout origin/nscrypt', but now I get ohash undeclared on line 482 of scrypt.c. Is there a particular commit I should try out? edit: okay, c8e4ec3 compiles fine, but I can't use different gpu-threads per device. That's what I'm really hoping to do. Is it possible? |
Oops. Typo fixed in troky@3212502 |
Cool. And with ADL in there I can do the different gpu-threads. This is great, thank you! |
Hi Guys, pls help out a lamen. Anybody want to give a step by step dummy guide on how to get mining vertcoins here?. K |
This is bug reporting mechanism for sgminer, please seek help elsewhere. |
Branch nfactor has been merged into master. I'll add the |
I guess we can close this now, since Scrypt-N has been in sgminer for quite a while now. |
Vertcoin uses a adaptive nfactor version of scrypt. The current vertcoin-miner is lagging behind in functionality and everyone would benefit of a single miner.
http://vertcoin.org/
https://github.com/Bufius/vertminer-gpu
The text was updated successfully, but these errors were encountered: