-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 algo equihash #31
Open
gerardo76
wants to merge
271
commits into
lucasjones:master
Choose a base branch
from
tpruvot:linux
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
+50,056
−4,044
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
Added to compare results with ccminer tool (cuda variant) Signed-off-by: Tanguy Pruvot <[email protected]>
should be set to 14 for NEOS-blake and pentablake
also ensure blake context was initialised...
based on https://github.com/ghostlander/cpuminer-neoscrypt with reduced changes in cpu-miner.c Signed-off-by: Tanguy Pruvot <[email protected]>
Fix some existing bugs : cryptonight hashrate log and lock when missing stratum diff colors: enable colored output by default and also trap signals on windows (Ctrl+C) Current state: much slower than linux (and x64 almost twice the x86 speed) Signed-off-by: Tanguy Pruvot <[email protected]>
tested ok with curl-7.38.0 openssl 1.0.1j was really not easy to setup, ssl config: CROSS_COMPILE="x86_64-w64-mingw32-" ./Configure mingw64 no-asm no-shared make && make install curl config: extraopts=--enable-ipv6 extraflags="-DOPENSSL_NO_ASM -D_THREAD_SAFE" openssl=/usr/local/ssl CROSS_COMPILE="x86_64-w64-mingw32-" ./configure --enable-shared=no \ --disable-manual --without-libssh2 --disable-rtsp --disable-ldap \ --disable-dict --disable-pop3 --disable-ftp --disable-telnet --disable-tftp \ --disable-smtp --disable-imap --disable-ldaps --disable-gopher --with-zlib \ --with-ssl=$openssl --with-libssl-prefix=$openssl CPPFLAGS="$extraflags" ${extraopts} Signed-off-by: Tanguy Pruvot
fix also some remaining aligned attributes for VC++ TODO: support ASM linkage in VC2013 (USE_ASM define)
and update icon branch in README
add also a linux build scrypt
also reduce x11 intensity to output a bit more while benchmarking
and fix qubit difficulty
Signed-off-by: Tanguy Pruvot <[email protected]>
ARM boards don't build when enabling ASM, and some of them benefit from using -march=native. Let's have a dedicated build file for this. Also it takes care of cleaning old autoconf/automake remains that can make the build fail after pulling updates.
it's only needed on platforms who don't have a CRC32 instruction.
it is counter productive to avoid writing 50% of the times, it adds conditional jumps which are mispredicted half of the times. Better use conditional moves and always write. This increase performance by 6% on ARMv8.
By moving some fields in the structure, we can increase the performance by an extra 6% on Cortex-A53 at least.
Drop all hashes which will have one of their highest 16 bits set since they will not match. This saves 4 calls to rf256_one_round() via rf256_final() and almost doubles the performance.
It's really expensive to use memcpy() to copy 16 kB of data on some small processors like ARM Cortex A53 which only have 64-bit data paths from the L1 cache. This roughly consumes 2k cycles just for the copy. "Perf top" shows that half of the time is spent in memcpy(), and given that this exhausts the L1 cache, the rest of the operations must cause a lot of thrashing. Since there are few modifications applied to the rambox between two consecutive calls, better keep a history of recent changes inside the context itself. This doesn't cost much because the write bus between the CPU and the L1 cache is 128 bit on A53 so we can afford a few writes. Also, the typical amount of updates apparently is between 16 and 32 so it makes sense to put an upper bound on 32 and remain the memory footprint low.. The performance is roughly multiplied by 5 on A53 just by doing this, the hash rate reaches about 14.4k/s on NanoPI-Neo4, or almost 10 times the performance of the original code.
and fix modifier for arm64
properly...
Based on JayDDee/cpuminer-opt@3c5e892 Co-authored-by: Jay D Dee <[email protected]>
Those are slight variations of the yescrypt algorithm, used notably by bitzeny (yescryptr8), yenten (yescryptr16), and wavi (yescryptr32).
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.
Can add suport to mining zcash (equihash)?
Thx..