-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Ethash #48
Open
ghost
wants to merge
505
commits into
cbuchner1:master
Choose a base branch
from
tpruvot:ethash
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Ethash #48
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Allow to directly get api data in HTML5 Tested on Chrome... IE>=10 required, not tested IE11 seems buggy on connection close... todo Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Tested on x11 which find sometimes 3 nonces in one call, actually they are ignored because only the biggest was kept... This commit doesnt fix that, but will allow to enhance shares rate later...
Added to most algos, checkhash function scans a big range and can find multiple nonces at once if the difficulty is low. Stop ignoring them, submit second one if found... Clean the draft code for rc=2 implemented for blake and pentablake btw... fix the reduced displayed hashrate when a nonce is found... Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
But use a define in AES to use or not device initial memcpy I already tried to use everywhere direct device constants and its not faster for big arrays (difference is small) also change launch bounds to reduce spills (72 regs) to check on windows too, could improve the perf... or not
Seems to be djm34 work, i recognize the code style ;) Code was cleaned/indented and adapted to my fork... Only usable on the test pool until 16 december 2014!
Use djm34 new uint2 method to get a +40% boost (115 to 153MH/s)
seems to resolve solo mining lock on share. export also computed solo work diff in api (not perfect) In high rate algos, throughput should be unsigned... This fixes keccak, blake and doom problems And change terminal color of debug lines, to be selectable in putty, color code is not supported in windows but selection is ok there.
and disable multiple nonce on wallets, a bloc cant be resolved twice ;) Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
before, only -b <ip:port>, <port> or 0 (disable) was allowed easier to set -b 0.0.0.0 with default port
rejects in solo mode often means "generated block is stale" (see Debug.log) Most of current wallets only reports "rejected" reason without explanations. So prevent this common error, you can turn off this gbt feature (height check) with --no-gbt option.
based on djm34 keccak 256-bit changes, and keep SM3.0 compat affect most other algos too (quark, nist5, x13...)
Thanks to sp and djm34 for this fast uint64 storage alternative
hmm... this is weird, should be 256 but make bad shares on pool diff 2
Only enabled on first duplicate share
Not sure its the fastest way, but it works for offsets 0-63 + 64 Also note than asm SM 3.5+ doesn't support ROR with offset 64
5% improvement by the vshl asm swap functions, mixed shl+add inst., Add also xchg(x, y) func and XCHG(x, y) define in cuda_helper for later use... other jh changes are mainly for the beauty of the code... Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
i had to clean it... lot of unused defines...
This allow to get 69 regs used (tested on linux) 69 or 72 make the compiler to use 64 regs which is not enough on the 750Ti for optimal performance...
ccminer.cpp begins to be too big...
shavite is faster, echo doesn't really change due to the reg. overload This changes allow custom lauchbounds without other code changes and improve the portability against different devices. also set a minimum throughput to 1024 for these algos (shared mem req. size)
made for linux and require libpci-dev (optional) if libpci is not installed, card's vendor names are not handled... Note: only a few vendor names were added, common GeForce vendors. Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Fedora libpci devel package is named pciutils-devel Debian/Ubuntu is libpci-dev Slackware lib requires libz... i added the dependency in configure.ac
_WIN32 is also defined on x64 builds... + fix compat/getopt dos2unix (there was mixed CRLF)
make a lot of cpu validation errors on windows, to be double checked in the next version... This reverts commit 1187a6e.
for the day nvidia will fix their nvmlDeviceGetPciInfo api..
so... pciutils branch is no more required on windows :p
fallbacks on v2 nvml exports and check api implementation on call
--pstate 0 is an alternative to clocks values to set the device in P0 mode, 1 will set appl. clocks to default P1 clocks, 2 to default P2.. --plimit 150W really works on the 9xx and allow to limit/reduce the gpu usage Note: nvml interface is only available on linux and windows x64 Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
and show log on start if set/changed without --debug
--keep-clocks option prevent reset clocks on exit...
Supcoin seems.... dead and the algo was not supported on all devices
Used by Chaincoin and Flaxscript
remains the mixHash thing to compute, and to check the submitted nonce64 endian/value Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.