Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: JayDDee on February 18, 2020, 05:20:55 PM



Title: [ANN] cpuminer-opt v24.1, Optimized multi-algo CPU miner for x86_64 and AArch64
Post by: JayDDee on February 18, 2020, 05:20:55 PM
This is the home of cpuminer-opt, the optimized CPU miner.
         Now supporting AArch64


Supporting over 90 agorithms with many optimized for CPUs with the latest technologies:

Intel Haswell: AVX2
AMD Zen1: AVX2 and SHA
AMD Zen3, Intel Alderlake*: AVX2, SHA and VAES
Intel Skylake X: AVX512
AMD Zen4, Intel Rocketlake: AVX512, SHA, and VAES
Orange Pi-5: NEON, AES, SHA2
Raspberry Pi-4B, Apple M2*: NEON

Older 64 bit CPUs with SSE2 are also supported, see below for requirements.
*Alderlake and subsequent Intel desktop architectures are hybrid architecture with AVX512 disabled.
*Apple M2 is supported using a Linux VM.

Downloads

Linux can be compiled from source for x86_64 and AArch64. Windows binaries are available for x86_64.
Windows binaries do not support CPU groups and are limited to 64 threads. Support for CPU groups requires
compiling from source with CPU groups enabled, see Wiki for details.
Download only from the official JayDDee git repository.
There may be malware masquerading as cpuminer-opt, stay alert.
I no longer post links in new mesages and I don't post direct links to files. Any such links should be treated
with suspicion. The only valid download link is below and directs to a landing page that can be examined
for legitimacy before any files are downloaded.

Latest release including Windows binaries
https://github.com/JayDDee/cpuminer-opt/releases

Documentation
https://github.com/JayDDee/cpuminer-opt/wiki

List of supported algoritms
https://github.com/JayDDee/cpuminer-opt/wiki/Supported--Algorithms

Source code
https://github.com/JayDDee/cpuminer-opt

New in v24.1
#414: fix bug in merkle error handling.
#416: change $nproc to $(nproc) in build scripts.
#420: change some inline function definitions to static inline.
#413: Fix formatting error for share result log when using no-color.
Faster 2 way interleaving.
Cleanup sha256 architecture targetting.

Full change log: https://github.com/JayDDee/cpuminer-opt/blob/master/RELEASE_NOTES

Requirements:

CPU:

- x86_64 architecture CPU with a minimum of SSE2 support. This includes Intel Core2 and newer and AMD equivalents.
- Arm CPU supporting AArch64 and NEON.

32 bit CPUs are not supported.

Older CPUs are supported by open source cpuminer-multi by TPruvot but at reduced performance.

Mining on mobile devices that may otherwise meet the requirements is not recommended due to the risk of overheating and damaging the battery.
Mining has unlimited demand, it will push any device to or beyond its limits. There is also a fire risk with overheated lithium batteries.
Beware of apps claiming "mobile only mining". There is no such thing, they aren't miners. If a mobile CPU can mine it any CPU can.

OS:

64 bit Linux OS. Debian and Fedora based distributions including Ubuntu, Mint, RHEL and clones are known to work and have all dependencies in their
repositories. Others may work but may require more effort.

Windows 7 or newer 64 bits is supported using the pre-compiled binaries x86_64 package or may be compiled from source using MinGW & MSys2.
There is no support for Windows on ARM at this time

FreeBSD is not actively tested but should work, YMMV.

Apple MacOS is supported using a Linux VM, native support is not yet available.

Alt OSs like Haiku & ReactOS are not supported.

Security warning

Cryptocurrency miners are often flagged as malware by antivirus programs. This is usually a false positive, they are flagged simply
because of what they are. However, some malware has been spread using the cover that miners are known to be subject to
false positives. Always be on alert. The source code of cpuminer-opt is open for anyone to inspect. If you don't trust the software
don't download it.

Some cryptographic code has been taken from trusted sources but has been modified for speed at the expense of accepted
security practices. This code should not be imported into applications where secure cryptography is required.

Errata:

Old algorithms that are rarely used or are too difficult to mine with a CPU will not get the latest optimizations.
Cryptonight and variants, Hodl & Argon2a  are no longer supported, use older version or other miners.

Donations

cpuminer-opt has no fees of any kind but donations are accepted.

BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: joblo on February 18, 2020, 05:30:28 PM
Just a quick note to reassure readers that although JayDDee is a newbie user here
we are the same person. The new userid now matches my github userid.


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: Iamtutut on February 18, 2020, 06:34:30 PM
Posting here to get the updates on the new thread.


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: Dabs on February 18, 2020, 07:53:36 PM
You could also change the signature on the older account to match the new thread.


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: JayDDee on February 18, 2020, 08:25:43 PM
You could also change the signature on the older account to match the new thread.

Thanks for the reminder. I intended to do that although I won't be posting much from that user anymore.

I'm more interested in adding a sig to this user once the newbie training wheels come off.


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: joblo on February 18, 2020, 08:32:30 PM
You could also change the signature on the older account to match the new thread.

Done.


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: Elder III on February 19, 2020, 04:58:39 AM
Even if CPU mining isn't always profitable, it's still excellent to have a miner that works with so many algos, even if just for testing purposes. I appreciate all the work you have done over the years on this miner. :)


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: impynick on February 19, 2020, 10:11:03 AM
Thank you for your contributions to CPU mining. As an avid cpu miner I appreciate the options your miner brings to the table


Title: Re: [ANN] cpuminer-opt v3.12.3.1, open source optimized multi-algo CPU miner
Post by: JayDDee on February 20, 2020, 07:23:18 AM
I've created a wiki page for cpuminer-opt. It's all one page with no index, sorry but I don't know how to make it more structured
other that breaking it up into seperate files.

Users may want to scroll past the first half, it's just copied from README files. The interesting part is the log report descriptions
that start about half way down.

A lot of changes have been made to the miner's displayed output and a lot of new info is provided. I attempted to make it as intuitive as
possible while prioritizing and highlighting the most important points. I also tried to limit redundancy by not displaying the same data
in different forms or statistics that can be easilly derived from other displayed data. The data can be used with data obtained from other
sources to provide even more advanced info. For example, block reward and coin exchange rates are not known to the miner but
when combined with pool and exchange data can build a full profitability profile.

The new log reports were the result of 2 minds: the geeky user who wanted all the data available, and the developper who wanted to provide
the data in the most efficient manner, as raw as possible while still being understandable to a moderately experienced user.

It's all here...

https://github.com/JayDDee/cpuminer-opt/wiki

It's still rough around the edges, lots of typos and missing topics, buit it's a start.


Title: Re: [ANN] cpuminer-opt v3.12.4.1, open source optimized multi-algo CPU miner
Post by: chrysophylax on February 23, 2020, 01:45:12 PM
Still at it mate ...

You are still sitting in my 'highest respect' list. Always looking forward to what you may be doing next.

Massive updates to the codebase I see also.

This profile will be a legend in no time ;)

#crysx


Title: Re: [ANN] cpuminer-opt v3.12.4.1, open source optimized multi-algo CPU miner
Post by: JayDDee on February 23, 2020, 08:14:58 PM
Nice to hear from you Chrys.

Mining isn't what it used to be but writing SW keeps me out of trouble.

I've kinda lost touch with you and chainworks, how's that going? It seems like you're always
exploring new ventures.


Title: Re: [ANN] cpuminer-opt v3.12.4.2, open source optimized multi-algo CPU miner
Post by: JayDDee on February 23, 2020, 08:39:41 PM
cpuminer-opt-3.12.4.3

https://github.com/JayDDee/cpuminer-opt/releases

Solo mining with getwork is now working again with improved log reporting.
Edit: fixed segfault in getwork from v3.12.4.2.

See RELEASE_NOTES for detailed changelog.




Title: Re: [ANN] cpuminer-opt v3.12.5, open source optimized multi-algo CPU miner
Post by: JayDDee on March 01, 2020, 07:06:01 PM
cpumminer-opt-3.12.5

This release should bring an end to the flurry of releases recently to address problems with share statistics
for both getwork and stratum mining. Stats should now be correct and robust with the ability to verify many
mining performance parameters.

A list of variants of yespower algorithms and parameters has been added to README.md. These algos can
be mined by cpuminer-opt simply by specifying their parameters.

See OP for more info.


Title: Re: [ANN] cpuminer-opt v3.12.4.1, open source optimized multi-algo CPU miner
Post by: chrysophylax on March 04, 2020, 06:04:39 AM
Nice to hear from you Chrys.

Mining isn't what it used to be but writing SW keeps me out of trouble.

I've kinda lost touch with you and chainworks, how's that going? It seems like you're always
exploring new ventures.

Always nice to see all that is happening with you mate ...

Especially the positive, even though negative is always part of the equation.

CWI is doing a LOT. Mostly backend stuff and not stuff I really want to bring out here in public. You know what happens if even a small amount is leaked out, then taken considerably out of context. Two years have passed since the reset and continuation of theFARM, and that is going strong, renting some of the units through MiningRigRentals under the CWI-Rental banner, with a new Mine (Rebuild of Amethyst Mine) underway for all areas of mining. New codebase being built for the template of the coins we have to rebuild, and ultimately being integrated into one MasterCoin we have codenamed CoinX for the time being.

CPU mining is one of our goals for Amethyst Mine and I assure you, even though mining is not what it used to be, it is still as exciting as it was when it first started.

Never in any case has the memory of your help in the background when I was stumbling at the time of compilation and understanding, has left my mind. Your help THEN has always been a reminder that decent people exist in Crypto. Always that respect mate, no matter whether we see eye to eye or not (and I fail to remember when it was not - but there you have it).

What you have done with CPUMiner-Multi is amazing. CPUMiner-OPT is in a league of it's own now. The leaps and bounds is well worth the time and effort to reacquaint yourself with the coding world, and a huge success it seems to be. I do see at times you get frustrated, but that comes with the territory mate. We all do, especially with the trolls.

There is much to do and still a long road to tread, but as long as we tread and cut the road ourselves, we follow in no others footsteps, and that my friend, are steps worth taking.

As for CWI, a lot more has happened in the background and the plans are seemingly coming to fruition this year. All the puzzles' pieces shall fit some time soon in the big picture. One thing is for sure though, if there is anything that we can do together, my door is always open to you.

New Ventures for us are also backend mostly, and can discuss with you privately, but none of them are small. We have become a very precise instrument, nay a tool, to deal with all we have undertaken, and hone it all into an enterprise that is worth the long (almost 9Year) effort I have personally invested in Crypto thus far. We have 'good' people with us, and they are doing great things. That door is also open to you.

Keep doing good things JDD (JoBlo or whatever Pseudo you wish to use) - as you usually do mate.

#crysx


Title: Re: [ANN] cpuminer-opt v3.12.5, open source optimized multi-algo CPU miner
Post by: orlandoblim on March 04, 2020, 06:21:41 AM
Can we discuss about the price?


Title: Re: [ANN] cpuminer-opt v3.12.6, open source optimized multi-algo CPU miner
Post by: Saisher on March 07, 2020, 09:47:22 AM
I was redirected from my thread asking about my hardware for mining, is it still profitable mining with CPU I see a lot of algo that is compatible to this mining software but can it compete and what's the best coin to mine using this software, do you have a video tutorial for your software.


Title: Re: [ANN] cpuminer-opt v3.12.6, open source optimized multi-algo CPU miner
Post by: JayDDee on March 07, 2020, 05:00:33 PM
Benchmark is broken in cpuminer-opt-3.12.6. It will be fixed in the next release.
Mining is not affected. Use v3.12.5 for benchmarking until the fix is released.


Edit: v3.12.6.1 is released with benchmark fixed.


Title: Re: [ANN] cpuminer-opt v3.12.6, open source optimized multi-algo CPU miner
Post by: chrysophylax on March 08, 2020, 01:19:34 AM
I was redirected from my thread asking about my hardware for mining, is it still profitable mining with CPU I see a lot of algo that is compatible to this mining software but can it compete and what's the best coin to mine using this software, do you have a video tutorial for your software.

I think ...

I think that these questions really should be directed to a trading (read - gambling) thread about price and the trade systems.
I think that that you should know the differences between coins and what they do, or don't do in most cases, and what the benefit is of those coins distanced from 'money'.
I think that who ever creates applications, improves them and optimizes them (like this project), and continues to do so, is adding more value to Crypto itself, than to the 'price' that most of you out there are so obsessed with.

Who cares about price? Most of you that are out there fumbling their way trying to do the complete opposite of what Crypto was actually designed for, by trying to make more of the money that enslaved us all in the first place.

Who cares about the Technologies? The people that care about the optimization and improvement of such technologies and the development of such things for the betterment of Crypto. Like this project.

Who cares about value in Crypto? We should ALL care, but very little do. Price and FIAT (Governement OWNED cash) is all that most care about, meaning not many have a good grasp of what Crypto really is about.

So when you ask about 'price', 'profitability', and whether sofwtare 'competes' in this arena, you are asking the wrong questions in the wrong place. This thread is about the optimization, development, and GROWTH of the code and application, than the 'price' something is, which is a moot subject here.

It saddens me to see Crypto over the 9Years I have been around in this 'scene', to watch the idea of 'freedom' get turned into 'slavery' because all you want is to turn Crypto into Cash.

Crypto = Freedom/People.
Cash = Government/Slavery.
CPUMiner-OPT = development.

Who gives a damn about the money other than those that lust for it? I sure as hell don't, and I can gurantee ANYONE that knows what Crypto is about and respects the core values of Crypto, is the same. So please don't smear this thread and the 'clean' talk of development and functionality with the filth that 'price' and 'cash' and 'profit' always end up doing.

JDD = keep hammering away at the code mate. You are doing an AWESOME job!

#crysx


Title: Re: [ANN] cpuminer-opt v3.12.6, open source optimized multi-algo CPU miner
Post by: JayDDee on March 08, 2020, 02:22:53 AM
I was redirected from my thread asking about my hardware for mining, is it still profitable mining with CPU I see a lot of algo that is compatible to this mining software but can it compete and what's the best coin to mine using this software, do you have a video tutorial for your software.
So when you ask about 'price', 'profitability', and whether sofwtare 'competes' in this arena, you are asking the wrong questions in the wrong place. This thread is about the optimization, development, and GROWTH of the code and application, than the 'price' something is, which is a moot subject here.

Hear! Hear!

I've made it clear in the past I don't give advice on mining, only technical information.
And I don't compete.


Title: Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
Post by: p2501 on March 08, 2020, 09:22:14 AM
Any chance you could help with the following error during compilation?
This is under centos 6 and gcc 8.3.1

util.c: In function ‘send_line’:
util.c:1136:15: error: ‘sock’ undeclared (first use in this function); did you mean ‘work’?
      n = send(sock, s + sent, len, 0);
               ^~~~
               work
util.c:1136:15: note: each undeclared identifier is reported only once for each function it appears in


Title: Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
Post by: JayDDee on March 08, 2020, 03:56:09 PM
Any chance you could help with the following error during compilation?
This is under centos 6 and gcc 8.3.1

util.c: In function ‘send_line’:
util.c:1136:15: error: ‘sock’ undeclared (first use in this function); did you mean ‘work’?
      n = send(sock, s + sent, len, 0);
               ^~~~
               work
util.c:1136:15: note: each undeclared identifier is reported only once for each function it appears in


Centos 6 isn't supported, it's just too old. That error is because libcurl is too old. If you fix that you
get an error because gmp is too old ...

It's a lot simpler to upgrade the entire OS.


Title: Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
Post by: cpu-pool on March 11, 2020, 12:21:26 PM
We wrote an article on how to install AOCC (AMD Optimizing C / C ++ Compiler) and tested CPUminer it on a ryzen 2600 CPU.

Read full article: http://cpu-mining.info/post.php?post=2

https://i.imgur.com/7gQXwft.png

AOCC Docs - https://developer.amd.com/wp-content/resources/AOCC-2.1-Install-Guide.pdf

Install depends

Code:
sudo apt-get install -y git
sudo apt-get install -y automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++
sudo apt-get install -y lib32z1-dev

download aocc-compiler-2.1.0_1_amd64.deb from https://developer.amd.com/amd-aocc/

install AOCC in Ubuntu

Code:
sudo dpkg -i aocc-compiler-2.1.0_1_amd64.deb
source /opt/AMD/aocc-compiler-2.1.0/setenv_AOCC.sh

check the installed AOCC compiler

Code:
clang -v

Tested cpuminer-opt on yespower algos.
you need to remove all algorithms from the miner, except yespower

Code:
git clone your cpuminer-opt
if error in coinfigure - use olds version cpuminer-opt

Code:
chmod +x autogen.sh
./autogen.sh || echo done

configure with AOCC

Code:
./configure --with-curl CC=clang CFLAGS="-O3 -march=native -funroll-loops -fomit-frame-pointer"

Code:
make

benchmark

Code:
./cpuminer --benchmark -a yespower -t 1

You can check this compiler on your favorite algorithm.


Title: Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
Post by: JayDDee on March 11, 2020, 01:11:36 PM
This was an interesting test but I don't see the point. It's conclusion was Clang/AOCC didn't improve performance
when compared against GCC.

The testing was also incomplete. There was no live test to confirm shares are valid and no control test of
Clang without AOCC.

Clang, with or without AOCC, is not recommended and not supported for cpuminer-opt.



Title: Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
Post by: JayDDee on March 16, 2020, 06:09:51 AM
I'm soliciting user input for improving the API in cpuminer-opt in light of the enhanced statistics reporting.
Suggestions can be discussed here or  at:

https://github.com/JayDDee/cpuminer-opt/issues/256


Title: Re: [ANN] cpuminer-opt v3.12.7, open source optimized multi-algo CPU miner
Post by: dingdongtobias on March 24, 2020, 06:27:03 AM
Hello,
This pool is distribute your miner without source code.
Maybe virus.

https://github.com/rplant8/cpuminer-opt-rplant/releases (https://github.com/rplant8/cpuminer-opt-rplant/releases)

Maybe you want take some action.


Title: Re: [ANN] cpuminer-opt v3.12.7, open source optimized multi-algo CPU miner
Post by: JayDDee on March 24, 2020, 07:22:48 AM
Hello,
This pool is distribute your miner without source code.
Maybe virus.

https://github.com/rplant8/cpuminer-opt-rplant/releases (https://github.com/rplant8/cpuminer-opt-rplant/releases)

Maybe you want take some action.

Thanks for the warning. I know rplant8, he has contributed some improvements to cpuminer-opt. He doesn't publish
his source code, he should, but I have no reason to believe he includes any malware.


Title: Re: [ANN] cpuminer-opt v3.12.8.1, open source optimized multi-algo CPU miner
Post by: malafaya on April 22, 2020, 03:09:18 PM
Hi.

I was just wondering: in the current periodic share/speed report, is there the raw hash rate, the one the machine can actually compute? Not sure if the value in parenthesis is this number as it seems quite smaller than the value I got from older versions. Does --benchmark still output this value reliably?
Thanks.


Title: Re: [ANN] cpuminer-opt v3.12.8.1, open source optimized multi-algo CPU miner
Post by: JayDDee on April 22, 2020, 03:56:33 PM
Hi.

I was just wondering: in the current periodic share/speed report, is there the raw hash rate, the one the machine can actually compute? Not sure if the value in parenthesis is this number as it seems quite smaller than the value I got from older versions. Does --benchmark still output this value reliably?
Thanks.

Yes, the number in parentheses is calculated by counting hashes. This calculation is also used in the new block report to calculate TTF,
thread hash meter, and benchmark total. This is called the "reference hash rate". Anything related to actual shares
is called the "effective hash rate".

You can find details in the Wiki...

https://github.com/JayDDee/cpuminer-opt/wiki/Console-Logs

As far as interpreting the values, the reference hashrate is simply the sum of the last sample from each thread.
It can be volatile if there is other activity on the CPU. Some miners average it but I prefer discrete samples.

Newer miner versions should not have a slower ref hash rate. If anything they should be faster if not equal.
If you find otherwise please post the details so I can investigate.


Title: Re: [ANN] cpuminer-opt v3.12.8.1, open source optimized multi-algo CPU miner
Post by: JayDDee on April 22, 2020, 04:08:31 PM
X12 for  AVX2 is broken again, or should I say, still. I thought I fixed it in v3.11.3 but now I can't find a working version for AVX2.

I'm investigating.


Title: Re: [ANN] cpuminer-opt v3.12.8.1, open source optimized multi-algo CPU miner
Post by: malafaya on April 22, 2020, 05:03:23 PM
X12 for  AVX2 is broken again, or should I say, still. I thought I fixed it in v3.11.3 but now I can't find a working version for AVX2.

I'm investigating.

Thanks.
Please also add to your list that phi is crashing in AVX2 immediately upon start.


Title: Re: [ANN] cpuminer-opt v3.12.8.1, open source optimized multi-algo CPU miner
Post by: JayDDee on April 25, 2020, 01:25:38 AM
X12 for  AVX2 is broken again, or should I say, still. I thought I fixed it in v3.11.3 but now I can't find a working version for AVX2.

I'm investigating.

Thanks.
Please also add to your list that phi is crashing in AVX2 immediately upon start.

Both are fixed in v3.12.8.2.

https://github.com/JayDDee/cpuminer-opt/releases


Title: Re: [ANN] cpuminer-opt v3.12.8.2, open source optimized multi-algo CPU miner
Post by: big_daddy on April 27, 2020, 01:06:03 PM
What CPU coin are you mining now?


Title: Re: [ANN] cpuminer-opt v3.12.8.2, open source optimized multi-algo CPU miner
Post by: malafaya on April 29, 2020, 02:23:02 PM
This may be nonsense but please bear with me:

Blake2b seems to be optimized for AVX2. Power2b just supports SSE2.
Assuming that power2b uses blake2b internally, and the latter is/may be optimized with AVX2, my question is couldn't power2b use blake2b's already existing AVX2 optimizations, and not fall back as a whole to SSE2?


Title: Re: [ANN] cpuminer-opt v3.12.8.2, open source optimized multi-algo CPU miner
Post by: JayDDee on April 29, 2020, 03:25:19 PM
It isn't nonsense at all, actually a very good question.

Vectorization can be implemented 2 ways, linear and parallel.

Linear can be used when a single data stream has repeated instructions on contiguous data.

Parallel is multiple data streams, similar to a GPU but with some strict limitations. First the data
streams must be interleaved. There must not be any data dependencies that would cause code
divergence between lanes. All lanes must execute the exact same code in the same order.
Also the interleaved data must be contiguous to get any performance benefit. When possible,
parallel is easier to implement because it's basically SIMD versions of the same scalar instructions.

Some code segments can do linear only, some parallel only, some both and some neither.

Blake2b can do parallel but only represents a small portion of the entire algo. The rest of Yespower
has data dependencies that prevent parallel vectorization but has some segments that can benefit
from linear vectorization.

One other barrier is memory throughput. If an algo is already I/O bound (mempory hard) linear vectors
still have to access the same amount of memory but with fewer instructions. That won't help (example lyra2z330).
Parallel vectorization increases memory usage by 4x or 8x depending on the number of lanes making
the bottleneck worse.

It's an unfortunate reality that CPU vectorization is a losing battle in crypto mining. Any vectorization
a CPU can do, a GPU can do better. Algos that favour CPUs typically have limited vectorization potential.
Many new algos are specifically designed to exploit the advantages of CPUs over GPUs and ASICs.




Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: SpceGhst on May 16, 2020, 10:45:07 PM
Hey JayDDee,

Does solo mining work in Minotaur release?  I keep getting rpc errors from miner.  I know rplant said solo is broken in his version, but he’s not going to fix it because he wants people using his pool.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 16, 2020, 11:12:14 PM
Hey JayDDee,

Does solo mining work in Minotaur release?  I keep getting rpc errors from miner.  I know rplant said solo is broken in his version, but he’s not going to fix it because he wants people using his pool.

I assume not if rplant doesn't work, but you could give it a try and post your results. If it doesn't work I can take
a look at the debug output to see if there's something obvious.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 17, 2020, 04:23:42 AM
This miner only works if I use 1 (one) thread to do pool mining, if I use more than one thread then the miner stops just after connecting to the pool.

https://i30.servimg.com/u/f30/17/76/10/38/jaydde10.png

And this is the error that I get when do solo mining.

https://i30.servimg.com/u/f30/17/76/10/38/jaydde11.png


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 17, 2020, 05:15:27 AM
The stratum problem at rplant pool is weird. There is no reason the miner would fail based on thread count.
There is also no reason it would exit silently unless it crashed. I'm not familiar with Windows crash debugging
so I don't know how to determine if it crashed or how it crashed.

I can only suggest trying different things to see if there's a pattern.

- try default thread count
- try stratum+tcps port, if available
- try different algo same pool
- try different pool same algo

I'll try to find more info about the RPC error solo mining.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 17, 2020, 07:33:58 AM
The stratum problem at rplant pool is weird. There is no reason the miner would fail based on thread count.
There is also no reason it would exit silently unless it crashed. I'm not familiar with Windows crash debugging
so I don't know how to determine if it crashed or how it crashed.

I can only suggest trying different things to see if there's a pattern.

- try default thread count
- try stratum+tcps port, if available
- try different algo same pool
- try different pool same algo

I'll try to find more info about the RPC error solo mining.

First time when I ran the miner with two threads, a dialog box of error appeared, atm I can't remember what the error was.
After that the dialog box doesn't appear, just the miner exits silently. I'm sure the miner is crashing when I use more than 1 thread.
I think there is something wrong in coding.

- try default thread count  -  doesn't work with more than 1 thread
Edit: When I tried this option, I removed the flag --threads=

- try stratum+tcps port, if available  -  doesn't work with more than 1 thread

- try different algo same pool  -  it works with different algo same pool

- try different pool same algo  -  doesn't work with more than 1 thread


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: chrysophylax on May 17, 2020, 07:51:24 AM
The stratum problem at rplant pool is weird. There is no reason the miner would fail based on thread count.
There is also no reason it would exit silently unless it crashed. I'm not familiar with Windows crash debugging
so I don't know how to determine if it crashed or how it crashed.

I can only suggest trying different things to see if there's a pattern.

- try default thread count
- try stratum+tcps port, if available
- try different algo same pool
- try different pool same algo

I'll try to find more info about the RPC error solo mining.

First time when I ran the miner with two threads, a dialog box of error appeared, atm I can't remember what the error was.
After that the dialog box doesn't appear, just the miner exits silently. I'm sure the miner is crashing when I use more than 1 thread.
I think there is something wrong in coding.

- try default thread count  -  doesn't work with more than 1 thread

- try stratum+tcps port, if available  -  doesn't work with more than 1 thread

- try different algo same pool  -  it works with different algo same pool

- try different pool same algo  -  doesn't work with more than 1 thread

Try a different pool ...

See if the same situation exists.

#crysx


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 17, 2020, 02:52:37 PM
The stratum problem at rplant pool is weird. There is no reason the miner would fail based on thread count.
There is also no reason it would exit silently unless it crashed. I'm not familiar with Windows crash debugging
so I don't know how to determine if it crashed or how it crashed.

I can only suggest trying different things to see if there's a pattern.

- try default thread count
- try stratum+tcps port, if available
- try different algo same pool
- try different pool same algo

I'll try to find more info about the RPC error solo mining.

First time when I ran the miner with two threads, a dialog box of error appeared, atm I can't remember what the error was.
After that the dialog box doesn't appear, just the miner exits silently. I'm sure the miner is crashing when I use more than 1 thread.
I think there is something wrong in coding.

- try default thread count  -  doesn't work with more than 1 thread

- try stratum+tcps port, if available  -  doesn't work with more than 1 thread

- try different algo same pool  -  it works with different algo same pool

- try different pool same algo  -  doesn't work with more than 1 thread

Try a different pool ...

See if the same situation exists.

#crysx

I think you missed this point in my previous post.
Quote
- try different pool same algo  -  doesn't work with more than 1 thread

I tried in two other pools, PoolMine and my2coins, same result.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 17, 2020, 04:44:41 PM
I've reproduced it using benchmark so I don't need a live pool to test it.

- It's a crash
- Windows only
- Minotaur algo only
- AVX build and above only (sse2 & aes-sse42 work)
- More than one thread only

Windows only crashes have typically been due to data misalingment in the past.
AVX introduces 256 bit vectors which require stricter alignment, Windows defaults to 128 bit alignment.

Minotaur uses the _ALIGN macro to specify alignment, which is defined in compat.h but isn't included in
minotaur.c. The missing macro defnition apparently doesn't break the compile but leaves the data at the
default alignment.

I have no idea why the number of threads makes a difference.

It should be fixed by including compat.h in minotaur.c.

That's the analysis, now I have to test it. Testing on Windows will take some time, it's a lot more work,
my Windows test machine is on a differnt floor.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: OBTfx on May 17, 2020, 08:00:02 PM
- Windows only
- Minotaur algo only
- AVX build and above only (sse2 & aes-sse42 work)
- More than one thread only

In my case, I have tested it on Linux and I have problems, even with one of the two you mention that works (AES-SSE42). I wanted to leave you an attachment with the screen outputs, but I see can't; You tell me what options you need me to put in to help you improve the problem.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 17, 2020, 08:43:52 PM
- Windows only
- Minotaur algo only
- AVX build and above only (sse2 & aes-sse42 work)
- More than one thread only

In my case, I have tested it on Linux and I have problems, even with one of the two you mention that works (AES-SSE42). I wanted to leave you an attachment with the screen outputs, but I see can't; You tell me what options you need me to put in to help you improve the problem.

My testing confirmed it was more than a data alignment issue. It was a thread corruption issue which explains why
it works with 1 thread. I don't understand why it worked when I initialy tested it on Linux.

I've found the bug and testing the fix now.

Unfortunately I don't know of a way to copy text from a DOS window.



Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: OBTfx on May 17, 2020, 11:13:02 PM
Unfortunately I don't know of a way to copy text from a DOS window.

Copying text from a command window in Windows is:
- In the command window, right-click
- Use the 'mark' option
- (Optional) Scroll in the window with the right sidebar, from where you want to copy
- Press the left mouse button (the marker is shown here) and drag/slide the score for everything you want to copy
- Once everything is marked, press the right mouse button; and the selection remains on the clipboard to be copied where needed (Ctrl + V)

Cheers  ;D


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 17, 2020, 11:29:29 PM
cpuminer-opt-3.13.1.1 fixes minotaur crash & GCC 10 compile failure.

https://github.com/JayDDee/cpuminer-opt/releases


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 12:32:16 AM
cpuminer-opt-3.13.1.1 fixes minotaur crash & GCC 10 compile failure.

https://github.com/JayDDee/cpuminer-opt/releases

Yes, Minotaur is working with any thread I choose. Thanks.   ;D


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 02:01:42 AM
And this is the error that I get when do solo mining.

https://i30.servimg.com/u/f30/17/76/10/38/jaydde11.png

This is because minotaur is enforcing segwit (bip141). I don't know how to implement segwit in the miner.
This will likely affect other coins that enforce segwit.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: chrysophylax on May 18, 2020, 03:23:01 AM
The stratum problem at rplant pool is weird. There is no reason the miner would fail based on thread count.
There is also no reason it would exit silently unless it crashed. I'm not familiar with Windows crash debugging
so I don't know how to determine if it crashed or how it crashed.

I can only suggest trying different things to see if there's a pattern.

- try default thread count
- try stratum+tcps port, if available
- try different algo same pool
- try different pool same algo

I'll try to find more info about the RPC error solo mining.

First time when I ran the miner with two threads, a dialog box of error appeared, atm I can't remember what the error was.
After that the dialog box doesn't appear, just the miner exits silently. I'm sure the miner is crashing when I use more than 1 thread.
I think there is something wrong in coding.

- try default thread count  -  doesn't work with more than 1 thread

- try stratum+tcps port, if available  -  doesn't work with more than 1 thread

- try different algo same pool  -  it works with different algo same pool

- try different pool same algo  -  doesn't work with more than 1 thread

Try a different pool ...

See if the same situation exists.

#crysx

I think you missed this point in my previous post.
Quote
- try different pool same algo  -  doesn't work with more than 1 thread

I tried in two other pools, PoolMine and my2coins, same result.


I did miss it mate ...

Apologies!

I really should leave these comments to JayDee ;)

#crysx


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 03:36:36 AM

I did miss it mate ...

Apologies!

I really should leave these comments to JayDee ;)

#crysx

It never hurts to have more eyes on a problem, that's why I like open discussion.


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: chrysophylax on May 18, 2020, 03:39:17 AM

I did miss it mate ...

Apologies!

I really should leave these comments to JayDee ;)

#crysx

It never hurts to have more eyes on a problem, that's why I like open discussion.

Thanks mate ...

Though it does help when i READ the entire posts too ;) hehehe!

I hope it's all doing well your end of the world mate.

#crysx


Title: Re: [ANN] cpuminer-opt v3.13.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 03:59:54 AM
This is because minotaur is enforcing segwit (bip141). I don't know how to implement segwit in the miner.
This will likely affect other coins that enforce segwit.

hmm.
There is a miner available to do solo mining of Ring (Minotaur algo). But, it generates very low hash rate compare to other miners.
https://github.com/litecoincash-project/cpuminer-multi
Your miner is better than many other miners, e.g. rplant miner, it is only lacking solo mining of Minotaur.
If you able to add this, I think then it will be best CPU miner.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: SpceGhst on May 18, 2020, 11:25:36 AM
Don’t know if this helps or not, but Ring is built on BTC core 18 which changed getblocktemplate.  This is from core website.

Notable changes

Mining

Calls to getblocktemplate will fail if the segwit rule is not specified. Calling getblocktemplate without segwit specified is almost certainly a misconfiguration since doing so results in lower rewards for the miner. Failed calls will produce an error message describing how to enable the segwit rule.

I found this for Litecoin:
You need to explictly declare the segwit rule:

litecoin-cli getblocktemplate '{"rules":["segwit"]}'


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 03:33:58 PM
Adding segwit support would be a significant improvement and I'm willing to give it a shot.
However, I will need a lot of help with testing and progress will be slow with a lot of back and forth.

The changes will affect all solo mining with any algo. The good news is that if segwit works for
ring it should work for any coin/algo. The bad news is that it could break solo mining for others.

If you can use Linux (Ubuntu preferably) it would save a lot of time by compiling it yourself.
You wouldn't need a seperate PC, a Virtualbox VM would work. With that you could make small code
changes and test them quicker instead of waiting for me to build Windows binaries.

You would also be able to do a control test with the litecoin-cash fork as there are no binaries available
for it.

The code changes would be made by me and you would test them and report your results.

The basic plan is as follows:

1. Me: analyze the code changes and merge the segwit code.
    You: Perform a control test solo mining with the litecoin-cash fork (if using Linux)

2.  Me: provide source (if using linux) or Windows binaries with new code.
     You: test and report

3. Me: fix bugs and return to step 2 until it's working correctly.

4. You: once minotaur is working with GBT/segwit do some regression testing by solo mining other coins to make sure
nothing broke.

Let me know if this plan works for you. Other volunteers would also be welcome to help with testing, particularly regression
testing if they are already solo mining their favorite coin.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: OBTfx on May 18, 2020, 03:56:02 PM
Other volunteers would also be welcome to help with testing, particularly regression
testing if they are already solo mining their favorite coin.

I can help you with testing and compiling on Linux computers.  ;D


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 04:11:20 PM
Other volunteers would also be welcome to help with testing, particularly regression
testing if they are already solo mining their favorite coin.

I can help you with testing and compiling on Linux computers.  ;D


That's great. Are you volunteering to test Ring or another coin? Do you know if it uses getwork or GBT?
I think I can avoid breaking getwork, but the segwit changes are interleaved with GBT code so there is
a bigger risk of breakage.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: OBTfx on May 18, 2020, 05:13:59 PM
Other volunteers would also be welcome to help with testing, particularly regression
testing if they are already solo mining their favorite coin.

I can help you with testing and compiling on Linux computers.  ;D


That's great. Are you volunteering to test Ring or another coin? Do you know if it uses getwork or GBT?
I think I can avoid breaking getwork, but the segwit changes are interleaved with GBT code so there is
a bigger risk of breakage.

I can try Ring (because it's what I've already installed on my computers) and the one I'm most familiar with (also the one that knocks on the door); but I guess the other currencies (CPU only, which is what I can help with) shouldn't be much different;
- put the wallet down
- sync (which is the heaviest, but a pruning = 100 MB)
- request a legacy address
- put a mine against your node

I don't understand very well about 'getwork'; if i use it myself or if the blockchain responds to that command? if it is the latter, I don't see that command between rpc commands; maybe my other colleagues know more about it

Let's say I'm new, among the RPC commands, mining ... but I dock quickly, if you tell me what to do exactly or where to read I can keep up with you.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 06:00:14 PM
Adding segwit support would be a significant improvement and I'm willing to give it a shot.
However, I will need a lot of help with testing and progress will be slow with a lot of back and forth.

The changes will affect all solo mining with any algo. The good news is that if segwit works for
ring it should work for any coin/algo. The bad news is that it could break solo mining for others.

If you can use Linux (Ubuntu preferably) it would save a lot of time by compiling it yourself.
You wouldn't need a seperate PC, a Virtualbox VM would work. With that you could make small code
changes and test them quicker instead of waiting for me to build Windows binaries.

You would also be able to do a control test with the litecoin-cash fork as there are no binaries available
for it.

The code changes would be made by me and you would test them and report your results.

The basic plan is as follows:

1. Me: analyze the code changes and merge the segwit code.
    You: Perform a control test solo mining with the litecoin-cash fork (if using Linux)

2.  Me: provide source (if using linux) or Windows binaries with new code.
     You: test and report

3. Me: fix bugs and return to step 2 until it's working correctly.

4. You: once minotaur is working with GBT/segwit do some regression testing by solo mining other coins to make sure
nothing broke.

Let me know if this plan works for you. Other volunteers would also be welcome to help with testing, particularly regression
testing if they are already solo mining their favorite coin.

I can help you in testing Windows binaries. But, I don't know much about mining, I'm newbie in this field.
Your miner supports more than 90 algorithm. I can test some coins that can be mine via CPU.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 06:17:30 PM
Let's say I'm new, among the RPC commands, mining ... but I dock quickly, if you tell me what to do exactly or where to read I can keep up with you.

Well I don't know if I'm the best to give instructins, I've never actually solo mined.

Getwork is the old protocol still used by many coins.

Getblocktemplate (GBT) is the new protocol used by Bitcoin and many clones. I'm adding segwit support to GBT.

The command line syntax is slightly different between them but there is some auto-detection in the code.
Generally GBT will be tried first then fallback to getwork. The messages at startup should be clear on which is being used.

It would be good if you could do a control test mining ring with the litecoincash fork of cpuminer-multi (step 1 of the plan):

https://github.com/litecoincash-project/cpuminer-multi

The main goals are 1:  to confirm it can connect, get work from the server, and start hashing; 2: confirm it can find a block
which could take some time.

It would be good to know if the code I'm copying actually works.

I recommend adding -D -P the command line to gather more data in case of problems. You can also add --hash-meter to confim
it's hashing if things are too quiet.

I've started analyzing the code and so far it looks like the segwit code is mostly protected when segwit is not enabled
so adding segwit should break anything (fingers crossed).


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 06:20:06 PM
I can help you in testing Windows binaries. But, I don't know much about mining, I'm newbie in this field.
Your miner supports more than 90 algorithm. I can test some coins that can be mine via CPU.

Thanks, I'll produce binaries when I have something to test.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: OBTfx on May 18, 2020, 06:26:19 PM
https://github.com/litecoincash-project/cpuminer-multi

The main goals are 1:  to confirm it can connect, get work from the server, and start hashing; 2: confirm it can find a block
which could take some time.

It would be good to know if the code I'm copying actually works.

I recommend adding -D -P the command line to gather more data in case of problems. You can also add --hash-meter to confim
it's hashing if things are too quiet.

I've started analyzing the code and so far it looks like the segwit code is mostly protected when segwit is not enabled
so adding segwit should break anything (fingers crossed).

Ok, we have this controlled, yes I confirm in advance that we have mined it in the past with the LitecoinCash cpuminer-multi alone;
Anyway, I execute an iteration with the flags that you indicate me;
I save the result to you in a plain text file and send it to you.

Thanks for the explanation of the Getwork and GBT, it makes everything very clear


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 06:37:21 PM
Well I don't know if I'm the best to give instructions, I've never actually solo mined.
I will not mind to get instructions from you.  ;)


It would be good if you could do a control test mining ring with the litecoincash fork of cpuminer-multi (step 1 of the plan):

https://github.com/litecoincash-project/cpuminer-multi

The main goals are 1:  to confirm it can connect, get work from the server, and start hashing; 2: confirm it can find a block
which could take some time.

It would be good to know if the code I'm copying actually works.

I recommend adding -D -P the command line to gather more data in case of problems. You can also add --hash-meter to confim
it's hashing if things are too quiet.
I have windows binaries of this miner.
https://drive.google.com/open?id=1RiK5nzi-M6NlemiUsb0BC9yCoQ-GBUtJ
I did a lot of solo mining with this miner in testnet of Ring and found hundreds of blocks without any issue.
I also did solo mining with this in mainnet without any issue, but didn't able to find any block.
Cause my PC is old and this miner generates low hash rate compare to others.
And with this hash rate it will take 2-3 days to find a block if I leave the miner running 24 hours a day.

Edit: I also did pool mining of Ring with this miner without any issue.


I can help you in testing Windows binaries. But, I don't know much about mining, I'm newbie in this field.
Your miner supports more than 90 algorithm. I can test some coins that can be mine via CPU.

Thanks, I'll produce binaries when I have something to test.
Okay.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: OBTfx on May 18, 2020, 06:49:46 PM
https://github.com/litecoincash-project/cpuminer-multi

The main goals are
1: to confirm it can connect, get work from the server, and start hashing;
2: confirm it can find a block (which could take some time).

Both things confirmed, I have the output here I will try to send it to you by direct message.
The tests were against the testnet, so I am not struggling with the current difficulty of the chain.



Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: OBTfx on May 18, 2020, 07:03:00 PM
https://github.com/litecoincash-project/cpuminer-multi

The main goals are
1: to confirm it can connect, get work from the server, and start hashing;
2: confirm it can find a block (which could take some time).

Both things confirmed, I have the output here I will try to send it to you by direct message.
The tests were against the testnet, so I am not struggling with the current difficulty of the chain.

Do not allow sending files (in the end it is good), I leave the file in the cloud here; I hope it serves what you want to look at.  ;D

https://drive.google.com/open?id=1hagUcLp4QxYphdB6YIFHC-9Sf9_D3dxY


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 08:24:23 PM
https://github.com/litecoincash-project/cpuminer-multi

The main goals are
1: to confirm it can connect, get work from the server, and start hashing;
2: confirm it can find a block (which could take some time).

Both things confirmed, I have the output here I will try to send it to you by direct message.
The tests were against the testnet, so I am not struggling with the current difficulty of the chain.

Do not allow sending files (in the end it is good), I leave the file in the cloud here; I hope it serves what you want to look at.  ;D

https://drive.google.com/open?id=1hagUcLp4QxYphdB6YIFHC-9Sf9_D3dxY


Today, when I did solo mining first time with this miner adding flag -D -P then I got those error too.
Then added `--no-longpoll` in my batch file and restarted my miner.
Then I didn't get any error.
https://drive.google.com/open?id=1xAhgO8r8UFTPyi33LiK5Cmb27hIwGzbI


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 08:32:04 PM
Do not allow sending files (in the end it is good), I leave the file in the cloud here; I hope it serves what you want to look at.  ;D

https://drive.google.com/open?id=1hagUcLp4QxYphdB6YIFHC-9Sf9_D3dxY


Excellent! In the future you can cut the repeated block emmisions to reduce the size. Always show everything up to the first block,
any errors and the result of any blocks accepted or rejected.

I have made the code changes and it compiles. I want to review it again just in case I missed something. I'll be posting a
test release on github when it's ready for testing.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 08:38:58 PM
Today, when I did solo mining first time with this miner adding flag -D -P then I got those error too.
Then added `--no-longpoll` in my batch file and restarted my miner.
Then I didn't get any error.
https://drive.google.com/open?id=1xAhgO8r8UFTPyi33LiK5Cmb27hIwGzbI

What errors?


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 08:48:12 PM
Today, when I did solo mining first time with this miner adding flag -D -P then I got those error too.
Then added `--no-longpoll` in my batch file and restarted my miner.
Then I didn't get any error.
https://drive.google.com/open?id=1xAhgO8r8UFTPyi33LiK5Cmb27hIwGzbI

What errors?

I got the following errors
Code:
User-Agent: cpuminer-multi/1.3.6
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 404 Not Found
< Content-Type: application/json
< Date: Mon, 18 May 2020 19:40:26 GMT
< Content-Length: 76
* HTTP error before end of send, stop sending
<
* Closing connection 22
[2020-05-19 00:40:26] JSON protocol response:
{
   "error": {
      "message": "Method not found",
      "code": -32601
   },
   "result": null,
   "id": 0
}
[2020-05-19 00:40:26] JSON-RPC call failed: Method not found
[2020-05-19 00:40:26] JSON protocol request:
{"method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "coinbasevalue", "longpoll", "workid"],
"rules": ["segwit"], "longpollid": "493d636d084df93ab304dc76790272078989678e20185d64f910f66e10cd33ae153"}], "id":0}

This is the same error that OBTfx received. You can see it in his shared files.
https://drive.google.com/file/d/1hagUcLp4QxYphdB6YIFHC-9Sf9_D3dxY


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 09:23:45 PM
Today, when I did solo mining first time with this miner adding flag -D -P then I got those error too.
Then added `--no-longpoll` in my batch file and restarted my miner.
Then I didn't get any error.
https://drive.google.com/open?id=1xAhgO8r8UFTPyi33LiK5Cmb27hIwGzbI

What errors?

I got the following errors
Code:
User-Agent: cpuminer-multi/1.3.6
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue

< HTTP/1.1 100 Continue
< HTTP/1.1 404 Not Found
< Content-Type: application/json
< Date: Mon, 18 May 2020 19:40:26 GMT
< Content-Length: 76
* HTTP error before end of send, stop sending
<
* Closing connection 22
[2020-05-19 00:40:26] JSON protocol response:
{
   "error": {
      "message": "Method not found",
      "code": -32601
   },
   "result": null,
   "id": 0
}
[2020-05-19 00:40:26] JSON-RPC call failed: Method not found
[2020-05-19 00:40:26] JSON protocol request:
{"method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "coinbasevalue", "longpoll", "workid"],
"rules": ["segwit"], "longpollid": "493d636d084df93ab304dc76790272078989678e20185d64f910f66e10cd33ae153"}], "id":0}

This is the same error that OBTfx received. You can see it in his shared files.
https://drive.google.com/file/d/1hagUcLp4QxYphdB6YIFHC-9Sf9_D3dxY

I don't think those are related to longpoll, it looks more like a networking issue. They didn't seem to cause any serious
problems, it reconnected and continued on and submitted valid blocks. If the're only displayed with -P it's likely because they
can be ignored.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 18, 2020, 10:27:08 PM
cpuminer-opt-3.13.2-segwit-test is released.

Adds support for Segregated Witness (segwit) to GetBlockTemplate.

https://github.com/JayDDee/cpuminer-opt/releases/tag/v3.13.2-segwit-test

This is a test release not intended for production use. Users mining solo are invited to test this release and
report their results. Other users may want to wait for the next general release before upgrading.

Test notes: Minotaur algo (Ring coin) should be tested against the litecoincash fork of cpuminer-multi. Other algos should
be tested against cpuminer-opt-3.13.1.1 for any regressions (things that worked in v3.13.1.1 but not in v3.13.2).
Testing the new segwit support for coins other than Ring should probably wait until it's known to work with Ring.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 11:40:56 PM
cpuminer-opt-3.13.2-segwit-test is released.

Adds support for Segregated Witness (segwit) to GetBlockTemplate.

https://github.com/JayDDee/cpuminer-opt/releases/tag/v3.13.2-segwit-test

This is a test release not intended for production use. Users mining solo are invited to test this release and
report their results. Other users may want to wait for the next general release before upgrading.

Test notes: Minotaur algo (Ring coin) should be tested against the litecoincash fork of cpuminer-multi. Other algos should
be tested against cpuminer-opt-3.13.1.1 for any regressions (things that worked in v3.13.1.1 but not in v3.13.2).
Testing the new segwit support for coins other than Ring should probably wait until it's known to work with Ring.

Congratulations dude, it's working.  ;D

I tested Minotaur algo with flag `-t 1` `-t 2` `-t 3` and without flag `--threads=n`.
It worked without any issue.

Here is the debug log file.
https://drive.google.com/open?id=1NWx7BHPhz9IlvIyV0j8eidXq6Yj81VvR


https://i30.servimg.com/u/f30/17/76/10/38/th/jaydde12.png (https://servimg.com/view/17761038/924)

I will check other algo one by one and will post the results here.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 18, 2020, 11:47:44 PM
JayDDee, it will be great if you join LitecoinCash (LCC) or/& Ring discord, then we can easily chat and discuss errors/bugs.

LCC discord:  https://discord.gg/3AnFpvy
Ring discord:  https://discord.gg/Qd2wGkP

If you don't want to join discord then please ignore this post.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 19, 2020, 01:00:25 AM

Congratulations dude, it's working.  ;D


That was unexpected. I guess if you prepare for the worst it doesn't happen. ;)

This is the first time anyone has confirmed to me that GBT works in cpuminer-opt.
I just kept my hands off it and waited for users to complain.

I see there's still some work to be done, GBT still uses the old "new block" log.
I also didn't see a 5 minute summary log, did you run long enough? Without the new
"new block" log that's the only way you'll see a hash rate. It would be nice to know
how the performance compares. The hash rate tends to vary so it might be difficult to compare.
Please include your CPU model.

I've been thinking about Discord but will wait, development has slowed considerably. The code has
been optimized for the latest x86_64 CPUs and many new algos are incompatible with cpuminer.
I don't see a lot of activity in the immediate future. If that changes I may reconsider.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 19, 2020, 01:56:19 AM
I see there's still some work to be done, GBT still uses the old "new block" log.
I also didn't see a 5 minute summary log, did you run long enough? Without the new
"new block" log that's the only way you'll see a hash rate. It would be nice to know
how the performance compares. The hash rate tends to vary so it might be difficult to compare.
Please include your CPU model.

I keep it running more than 20 mins, it didn't show 5 mins summary.
But, it shows 5 mins summary when I do pool mining.

I get around 50 kh/s with 1 thread using LitecoinCash cpuminer-multi, but your miner is generating 80-85 kh/s.
It is about 60% more hash rate than LitecoinCash cpuminer-multi.
You can easily compare the hash rate with these screenshots.

cpuminer-opt-3.13.2-segwit-test

https://i30.servimg.com/u/f30/17/76/10/38/jaydde13.png

LitecoinCash cpuminer-multi

https://i30.servimg.com/u/f30/17/76/10/38/lcc-mi10.png

And this is the summary of 3 hours and 20 mins using cpuminer-opt v3.13.1.1. Yesterday, I did pool mining with 1 thread to see the performance of your miner.

https://i30.servimg.com/u/f30/17/76/10/38/jaydde14.png

My CPU is i5 2400
Intel® Core™ i5-2400 Specifications (https://ark.intel.com/content/www/us/en/ark/products/52207/intel-core-i5-2400-processor-6m-cache-up-to-3-40-ghz.html)


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 19, 2020, 02:12:57 AM
That's great work, thanks.

I'll look into the log issues and wait for regression testing results. If nothing got broken the next build
will be a general release.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 19, 2020, 06:32:11 AM

There's an inconsistency in your testing. In the above the new block is reported the old way,
but in the first debug log file: https://drive.google.com/file/d/1NWx7BHPhz9IlvIyV0j8eidXq6Yj81VvR/view
it's reported the new way:

Code:
[2020-05-19 04:11:17]  New Block 103581, Net Diff 0.00086469, Target Diff 0, Ntime 5ec31614P

Did you do something different? Can you watch this closely in your testing?
-P is no longer necessary but still use -D for testing.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 19, 2020, 08:50:35 AM
Did you do something different? Can you watch this closely in your testing?
-P is no longer necessary but still use -D for testing.

No, I didn't do anything different. I will test again and will post the result.

I did solo mining of sha256d algo (LCC) with both version 3.13.1.1 and 3.13.2 and found a Bug.
I will test again with 3.13.1.1 and will post the result.

Now, I'm synchronizing LitecoinCash Gold (LTNCG) wallet.
When syncing will be completed then will do solo mining of yespowerLTNCG algo and will post the result.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 19, 2020, 10:15:07 AM
Found first block of Ring in about 5 hours using cpuminer-opt-3.13.2-segwit-test with 2 threads, while I was doing other stuffs too on my PC.
My CPU is Intel® Core™ i5-2400 (https://ark.intel.com/content/www/us/en/ark/products/52207/intel-core-i5-2400-processor-6m-cache-up-to-3-40-ghz.html)

https://i30.servimg.com/u/f30/17/76/10/38/jdd_3_10.png


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 19, 2020, 02:27:49 PM
Did you do something different? Can you watch this closely in your testing?
-P is no longer necessary but still use -D for testing.

No, I didn't do anything different. I will test again and will post the result.

I think you may find you get both formats if you let it run long enough. I have an idea why but
will wait for your data.


Edit: I did some analysis and I found there may be a conflict with longpoll. With stratum, getwork,
or GBT without longpoll the miner threads request new work by signalling the workio thread.
When longpoll is enabled the longpoll thread requests new work, however, the miner threads via workio
also continue to request new work.

This is why the new block reporting is inconsistent. When workio requests new work the new format is
used, longpoll still uses the old format.

You previously reported an HTTP error that went away when you disabled longpoll. The error may have been
due to the conflict of both workio & longpoll requesting work.

As a result I want to change the focus of testing. Contrary to my last recommendation you should continue
to use -P as well as -D so we can see any HTTP errors.

I would like 2 tests to run long enough for several new blocks to see if they are reported consistenly the same way
and if there are any HTTP errors. Then post the full log files.

1. test with default (longpoll enabled)

2. test with --no-longpoll (disabled)

This is a special test targetted at the log reporting. Regression testing with other algos is still needed.

Thanks for your outstanding help testing.



Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 19, 2020, 11:04:27 PM
I did solo mining of sha256d algo (LCC) with both version 3.13.1.1 and 3.13.2 and found a Bug.
I will test again with 3.13.1.1 and will post the result.

When I was doing solo mining of LCC (sha256d algo) I found this Bug report as marked in the screenshot.

https://i30.servimg.com/u/f30/17/76/10/38/jdd_3_11.png

Miner of both versions (v3.13.1.1 and 3.13.2) is showing this bug report.

Here is the log file: https://drive.google.com/open?id=1OGFmZKF9ejfFKQtNHwgmkjl5tof-c8ka

I left the miner running more than 20 minutes during solo mining, but it didn't show 5 mins summary.
So, now I can say the miner of both versions (v3.13.1.1 and 3.13.2) is not showing summary during solo mining with Minotaur and sha256d algo.
It only shows summary during pool mining.


Now, I'm synchronizing LitecoinCash Gold (LTNCG) wallet.
When syncing will be completed then will do solo mining of yespowerLTNCG algo and will post the result.

LTNCG wallet synchronization is complete, but I postponed it testing, cause I got busy with some other stuffs.
I will test it when Minotaur testing will complete.



Did you do something different? Can you watch this closely in your testing?
-P is no longer necessary but still use -D for testing.

No, I didn't do anything different. I will test again and will post the result.

I think you may find you get both formats if you let it run long enough. I have an idea why but
will wait for your data.

When I do solo mining first it shows "new block report" in new format, then it shows in old format and it continues showing in old format.

https://i30.servimg.com/u/f30/17/76/10/38/th/jdd_3_12.png (https://servimg.com/view/17761038/930)


Edit: I did some analysis and I found there may be a conflict with longpoll. With stratum, getwork,
or GBT without longpoll the miner threads request new work by signalling the workio thread.
When longpoll is enabled the longpoll thread requests new work, however, the miner threads via workio
also continue to request new work.

This is why the new block reporting is inconsistent. When workio requests new work the new format is
used, longpoll still uses the old format.

You previously reported an HTTP error that went away when you disabled longpoll. The error may have been
due to the conflict of both workio & longpoll requesting work.

As a result I want to change the focus of testing. Contrary to my last recommendation you should continue
to use -P as well as -D so we can see any HTTP errors.

I would like 2 tests to run long enough for several new blocks to see if they are reported consistenly the same way
and if there are any HTTP errors. Then post the full log files.

1. test with default (longpoll enabled)
2. test with --no-longpoll (disabled)

This is a special test targetted at the log reporting. Regression testing with other algos is still needed.

I think you're right. I'm going to test Ring solo mining again and will post the result after few hours.


Thanks for your outstanding help testing.

You're welcome dude.  ;D
I'm also learning with these testing.  ;)


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 20, 2020, 12:47:21 AM
I'm going to test Ring solo mining again and will post the result after few hours.

Don't bother with longpoll, use --no-longpoll from now on. I'll make it the default in the next release.

I undestand the missing summary log now as well as the "BUG".

That's now 3 issues unrelated to segwit.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 20, 2020, 10:58:48 AM
Sorry I'm late  :p

btw I did solo mining of Minotaur

1.  with --no-longpoll  -> miner ran smoothly
log file: https://drive.google.com/open?id=1IQNGI6kBr7TeuEjDJLQbW9kSIwFoh_G2

2.  with --no-longpoll --no-getwork  -> miner ran smoothly
log file: https://drive.google.com/open?id=1dHa8tnzW1fZI7zwceBP1Nl_2SWXTgOsh

3.  without --no-longpoll --no-getwork  -> received the Jason and HTTP error that we discussed earlier.





Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 20, 2020, 02:44:40 PM
Sorry I'm late  :p

btw I did solo mining of Minotaur

1.  with --no-longpoll  -> miner ran smoothly
log file: https://drive.google.com/open?id=1IQNGI6kBr7TeuEjDJLQbW9kSIwFoh_G2

2.  with --no-longpoll --no-getwork  -> miner ran smoothly
log file: https://drive.google.com/open?id=1dHa8tnzW1fZI7zwceBP1Nl_2SWXTgOsh

3.  without --no-longpoll --no-getwork  -> received the Jason and HTTP error that we discussed earlier.


That's great work. I noticed the TTF estimates were missing from the new block log, I can fix that as well.

A new general release should be available in a few hours. No formal testing will be necessary. Just let me know
if you find any problems, new or pre-existing.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 20, 2020, 03:30:50 PM
That's great work. I noticed the TTF estimates were missing from the new block log, I can fix that as well.

Thanks.
Oh dude, I was just going to report about TTF, I already prepared to post the results of yespower mining.
I will do it after a while.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 20, 2020, 03:45:10 PM
That's great work. I noticed the TTF estimates were missing from the new block log, I can fix that as well.

Thanks.
Oh dude, I was just going to report about TTF, I already prepared to post the results of yespower mining.
I will do it after a while.

I'll wait for your results just in case something comes up.


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 20, 2020, 04:21:17 PM
I did solo mining of yespower algo (LitecoinCash Gold, LTNCG) for around 2 hours and found 4 blocks too.

When I don't use `--no-longpoll`
1. The miner shows "new block report" in new format, then it shows in old format as it was doing with minotaur algo.
2. There was also Jason and HTTP error like minotaur.

https://i30.servimg.com/u/f30/17/76/10/38/th/jdd-3_10.png (https://servimg.com/view/17761038/931)
Log file: https://drive.google.com/open?id=183CIraMTIsTPI938NoWyL8EPCurF2yLI

When I use `--no-longpoll`
1. The miner shows "new block report" in new format.
2. No error and it was running smoothly.

https://i30.servimg.com/u/f30/17/76/10/38/th/jdd-3_11.png (https://servimg.com/view/17761038/932)
Log file: https://drive.google.com/open?id=1P1-C_Q9GAwJ6cU1oN-3K2kjF-YbIluOn

I did solo mining for a while with one thread and for a while with two threads.
And found that
1. It doesn't show 5 min summary.
2. Sometime it shows TTF and sometime it doesn't show TTF, no matter if I use 1 thread or 2 threads.

https://i30.servimg.com/u/f30/17/76/10/38/th/jdd-3_14.png (https://servimg.com/view/17761038/935)   https://i.servimg.com/u/f30/17/76/10/38/th/jdd-3_13.png (https://servimg.com/view/17761038/934)  https://i.servimg.com/u/f30/17/76/10/38/th/jdd-3_12.png (https://servimg.com/view/17761038/933)

I have a question, what is the meaning of TTF here?

Edit: Why you don't use your signature on the title of CPUminer? I think you can add your signature here like this ;)

**********  cpuminer-opt 3.13.2-segwit-test (JayDDee)  ***********

https://i30.servimg.com/u/f30/17/76/10/38/title10.png



Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 20, 2020, 05:09:28 PM

https://i30.servimg.com/u/f30/17/76/10/38/th/jdd-3_14.png (https://servimg.com/view/17761038/935)   https://i.servimg.com/u/f30/17/76/10/38/th/jdd-3_13.png (https://servimg.com/view/17761038/934)  https://i.servimg.com/u/f30/17/76/10/38/th/jdd-3_12.png (https://servimg.com/view/17761038/933)

I have a question, what is the meaning of TTF here?

Edit: Why you don't use your signature on the title of CPUminer? I think you can add your signature here like this ;)

**********  cpuminer-opt 3.13.2-segwit-test (JayDDee)  ***********

https://i30.servimg.com/u/f30/17/76/10/38/title10.png


If it was correct it would mean the time it takes the miner or network to find a block based on the miner's reference hashrate
and the network hash rate. It's also an indirect way to report the hash rates. But it's obviously not correct. it will be fixed as
will the other issues.

About your suggestion, cpuminer-opt is the signature for the product. But since other forks have begun using it I see your point.
I have an idea.

New release will be available soon.




Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 20, 2020, 05:19:27 PM
If it was correct it would mean the time it takes the miner or network to find a block based on the miner's reference hashrate
and the network hash rate. It's also an indirect way to report the hash rates. But it's obviously not correct. it will be fixed as
will the other issues.

About your suggestion, cpuminer-opt is the signature for the product. But since other forks have begun using it I see your point.
I have an idea.

New release will be available soon.

Thanks for your clarification. That (TTF) is a great addition. I didn't see it in any miner yet.
Maybe the reason is, I only used few miners for solo mining and they don't provide that info.

And waiting eagerly for your new release  :D


Title: Re: [ANN] cpuminer-opt v3.13.1.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 20, 2020, 05:44:32 PM
Thanks for your clarification. That (TTF) is a great addition. I didn't see it in any miner yet.

Agreed. I'm surprised no one has copied it yet.


Title: Re: [ANN] cpuminer-opt v3.14.0, open source optimized multi-algo CPU miner
Post by: JayDDee on May 20, 2020, 06:05:08 PM
cpuminer-opt-3.14.0 released

Changes to solo mining:
  - segwit is supported by getblocktemplate,
  - longpolling is not working and is disabled,
  - Periodic Report log is output,
  - New Block log includes TTF estimates,
  - Stratum thread no longer created when using getwork or GBT.

Fixed BUG log mining sha256d.



Title: Re: [ANN] cpuminer-opt v3.14.0, open source optimized multi-algo CPU miner
Post by: nak333 on May 20, 2020, 06:36:00 PM
cpuminer-opt-3.14.0 released

Changes to solo mining:
  - segwit is supported by getblocktemplate,
  - longpolling is not working and is disabled,
  - Periodic Report log is output,
  - New Block log includes TTF estimates,
  - Stratum thread no longer created when using getwork or GBT.

Fixed BUG log mining sha256d.



Great. I will check minotaur and yespower algorithms in solo and pool mining, sha256d algo in solo mining.
If I find any bug/error then I will report you. Thanks.


Title: Re: [ANN] cpuminer-opt v3.14.0, open source optimized multi-algo CPU miner
Post by: nak333 on May 20, 2020, 09:27:24 PM
I think time calculation is wrong during pool mining and solo mining.
When I do pool mining at rplant I get ping time 90-95ms and around 200ms at my2coins.
But, v3.14.0 is showing in thousands at rplant.
The ping time was okay with v3.13.2

https://i30.servimg.com/u/f30/17/76/10/38/jdd-3_15.png

And I think hash calculation in 5m summary is wrong during solo mining.

https://i30.servimg.com/u/f30/17/76/10/38/jdd-3_16.png

https://i30.servimg.com/u/f30/17/76/10/38/jdd-3_17.png


Title: Re: [ANN] cpuminer-opt v3.14.0, open source optimized multi-algo CPU miner
Post by: JayDDee on May 20, 2020, 10:23:31 PM
There's a lot of new stuff so I want keep things in perspective.

The high latency at rplant doesn't look like a miner problem. Take a look at the timestamp when share 238 was
submitted and when it was accepted. It looks correct to me.

That being said it is possible for stats to get out of sync and a high latency is one of the most obvious symptoms.
Stats synchronization problems occur when a submitted share doen't get acknowledged or there is an overflow
of pending acknowledgements. If you see a warning at any time that "share stats not available" it means that
corruption was detected and an attempt was made to handle it and recover.

You can also detect if there is corruption by auditting the data in the submit and accept logs. Do the share counts,
diff, block, job all match?

In any case if stats corruption is suspected all stats are unreliable but there is no other impact, shares still get submitted
and accepted. Restart the miner to reset the stats.

The low latency solo mining makes sense. The loopback interface doesn't use the eth card, it's just a memory copy.
The timer might not have resolution under 10ms.
Edit: on second though the interesting times might be related to the sheduler timeslice, which is 10 ms. The task submitting
the share suspends waiting for the response. The actual reponse time may be insignificant compared to the scheduling latency
which has 10 ms granularity. I had noticed a 10 ms granularity pattern in a previous log file but didn't think much more of it
at the time.

The zero effective hash rate in the summary is a problem, as is the still missing TTF in the new block log.
I thought I removed the "Curent block is..." log, oops.

Edit: I've got fixes for the 2 problems but I'll wait in case other issues are found with the release


Title: Re: [ANN] cpuminer-opt v3.14.0, open source optimized multi-algo CPU miner
Post by: nak333 on May 21, 2020, 11:37:33 AM
I think you are right. There was a difference in the sequence of submitted and accepted blocks. Normally we see
236 Submitted
236 Accepted
237 Submitted
237 Accepted
But, in the screenshot that I posted there was a delay between submitted and accepted.
And I think the reason can be from my side or pool side. But, not in the miner.
Now, I'm doing again pool mining at rplant with v3.14.0, it seems everything okay; latency, TTF, sequence of submitted and accepted, everything is okay.


Edit: I've got fixes for the 2 problems but I'll wait in case other issues are found with the release

Yes, good Idea.
I saw in the pool some users are using v3.14.0 and some v3.13.1.1.
Let us use it for few days, whenever I will see something questionable/error/bug I will ask/report you.
And maybe other users will report if they find any bug/error.

Edit: I like the way you put your name in the title of cpuminer. ;)


Title: Re: [ANN] cpuminer-opt v3.14.0, open source optimized multi-algo CPU miner
Post by: JayDDee on May 21, 2020, 04:02:05 PM
cpuminer-opt just got plugged at CMB:

https://cryptomining-blog.com/12386-cpu-mining-with-the-cpuminer-opt-free-and-open-source-miner/


Title: Re: [ANN] cpuminer-opt v3.14.0, open source optimized multi-algo CPU miner
Post by: nak333 on May 21, 2020, 05:14:57 PM
cpuminer-opt just got plugged at CMB:

https://cryptomining-blog.com/12386-cpu-mining-with-the-cpuminer-opt-free-and-open-source-miner/

https://i.servimg.com/u/f36/17/76/10/38/thumbs10.jpg


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 21, 2020, 05:38:43 PM
cpuminer-opt-3.14.1 is now released to address the solo mining log issues.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: xiaolin123 on May 22, 2020, 04:37:14 PM
Please add the "sha256csm" algorithm.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: BoozyTalking on May 24, 2020, 01:01:56 PM
v. 3.13.1 - yescrypt algo is broken - low diff share error from pool, maybe in latest version also, not tested.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 24, 2020, 02:59:43 PM
v. 3.13.1 - yescrypt algo is broken - low diff share error from pool, maybe in latest version also, not tested.

It works for me, check your parameters.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: BoozyTalking on May 25, 2020, 07:47:47 AM
v. 3.13.1 - yescrypt algo is broken - low diff share error from pool, maybe in latest version also, not tested.

It works for me, check your parameters.

What parameters? yescrypt - no parameters, miner share rejected by pool with message "low share difficulty", ver. 3.9.6 work fine.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 25, 2020, 04:39:23 PM
v. 3.13.1 - yescrypt algo is broken - low diff share error from pool, maybe in latest version also, not tested.

It works for me, check your parameters.

What parameters? yescrypt - no parameters, miner share rejected by pool with message "low share difficulty", ver. 3.9.6 work fine.

I don't support old versions.


Title: Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
Post by: tsmonero on May 25, 2020, 06:44:07 PM
I'm soliciting user input for improving the API in cpuminer-opt in light of the enhanced statistics reporting.
Suggestions can be discussed here or  at:

https://github.com/JayDDee/cpuminer-opt/issues/256

Is any of the API implemented? I have tried both -b and --api-bind and all calls to http://x.x.x.x:4048 result in a timeout.


Title: Re: [ANN] cpuminer-opt v3.12.6.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 25, 2020, 07:57:12 PM
I'm soliciting user input for improving the API in cpuminer-opt in light of the enhanced statistics reporting.
Suggestions can be discussed here or  at:

https://github.com/JayDDee/cpuminer-opt/issues/256

Is any of the API implemented? I have tried both -b and --api-bind and all calls to http://x.x.x.x:4048 result in a timeout.

It's nothing fancy, no http server. Try telnet.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 26, 2020, 03:38:46 PM
CPUminer is not showing TTF during solo mining.
And I think there is something wrong in the calculation of hash rate.

https://i30.servimg.com/u/f30/17/76/10/38/jdd-3_18.png


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 26, 2020, 04:48:25 PM
Effective hash rate can be volatile, espcecially when solo mining. Most of the time the 5 minute
hash rate will be zero because no blocks were solved, Then you solve a block and the 5 minute hash rate
is huge. It's the nature of statistics with very small samples size.

I don't know why the TTF isn't displayed. It gets displayed if the reference hash rate, network  difficulty
and network hash rate are all non-zero.

The ref hah rate and net diff are displayed elsewhere so I assume the problem is the net hash rate.
This is updated by calling the getmininginfo method using RPC just prior to displaying the New Block log.

Try with -D and look for a log saying getmininginfo isn't supported. Also try another coin if you can to
see if it's only minotaur with that problem.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: nak333 on May 26, 2020, 06:47:23 PM
Effective hash rate can be volatile, espcecially when solo mining. Most of the time the 5 minute
hash rate will be zero because no blocks were solved, Then you solve a block and the 5 minute hash rate
is huge. It's the nature of statistics with very small samples size.

I don't know why the TTF isn't displayed. It gets displayed if the reference hash rate, network  difficulty
and network hash rate are all non-zero.

The ref hah rate and net diff are displayed elsewhere so I assume the problem is the net hash rate.
This is updated by calling the getmininginfo method using RPC just prior to displaying the New Block log.

Try with -D and look for a log saying getmininginfo isn't supported. Also try another coin if you can to
see if it's only minotaur with that problem.


Okay, I will check it with other algos as well with minotaur and will submit the report here.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: SpceGhst on May 27, 2020, 02:40:10 AM
It looks like once you find 10-12 blocks in solo mining, the periodic hash rate starts to even out.  It’s hard with Minotaur because blocks don’t come that often, unlike pool mining where shares are 3-4 per minute.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 27, 2020, 04:00:00 AM
It looks like once you find 10-12 blocks in solo mining, the periodic hash rate starts to even out.  It’s hard with Minotaur because blocks don’t come that often, unlike pool mining where shares are 3-4 per minute.

Blocks don't come too often solo mining any coin. The 5 minute report doesn't really make sense solo mining.
I'm thinking about changing it, maybe 1 hour solo, and 5 min pool. 1 Hour is still too short to be meaningful
but it reduces the number of useless reports in the logs.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: SpceGhst on May 27, 2020, 12:01:05 PM
I kind of like the 5 minute report.  Not necessarily for the hash rate, but to see if I’ve found any blocks.  If you went to an hour for solo, I’d have to scroll up the window every time I wanted to check on miner.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 27, 2020, 03:47:41 PM
I kind of like the 5 minute report.  Not necessarily for the hash rate, but to see if I’ve found any blocks.  If you went to an hour for solo, I’d have to scroll up the window every time I wanted to check on miner.

Good point. I guess it's also a matter of users getting used to the inherent volatility of "effective" hash rate compared
to the more familiar and stable "reference" hash rate.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: JayDDee on May 27, 2020, 03:59:56 PM
Okay, I will check it with other algos as well with minotaur and will submit the report here.

Thanks.

I'm going to change the logic for displaying TTF solo mining. The template will always be displayed
but some of the data may be invalid, with either a value of zero (zero numerator) or "NA" (zero denominator).

Edit: make sure you also check the startup messages for any mention of getmininginfo.

I'l wait for your test results in case more debug logging needs to be added.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: Chef22 on June 04, 2020, 10:19:24 AM
Can roicoin (hodl algo) be solo mined with this miner? I'd so, is there a guide or anything special that needs to be added to the bat file? Thanks


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 04, 2020, 02:30:11 PM
Can roicoin (hodl algo) be solo mined with this miner? I'd so, is there a guide or anything special that needs to be added to the bat file? Thanks

I don't know. It didn't work for Hodl coin. Give it a try.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: borya2002 on June 06, 2020, 11:37:15 AM
Thank you for your contributions to CPU mining.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: mix29k on June 06, 2020, 08:44:08 PM
ima new to this miner,
just tried to use it instead of good ole cpuminer-multi, solo, win7-64, no changes in cmd line,
and all i get is this (any coin any algo):
  JSON-RPC call failed: Top-level object parse error
  json_rpc_call failed, retry after 10 seconds

i feel quite stupid already, please tell me exactly how far i'm gone lol


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 06, 2020, 10:11:23 PM
solo,

http://


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 06, 2020, 11:56:09 PM
Code:
[2020-06-07 01:19:54] CPU affinity [!!!!]
[2020-06-07 01:19:54] Creating stratum thread
[2020-06-07 01:19:54] Miner thread priority 0 (nice 19)
[2020-06-07 01:19:54] Binding thread 0 to cpu 0.
[2020-06-07 01:19:54] JSON protocol request:
{"method": "getblocktemplate", "params": [{"capabilities": ["coinbasetxn", "coin
basevalue", "longpoll", "workid"], "rules": ["segwit"]}], "id":0}


*   Trying 127.0.0.1:35697...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 35697 (#0)
* Server auth using Basic with user '****'
> POST / HTTP/1.1
Host: 127.0.0.1:35697
Authorization: Basic *********************************
Accept: */*
Accept-Encoding: identity
Transfer-Encoding: chunked
Content-Type: application/json
Content-Length: 147
User-Agent: cpuminer-opt/3.14.2
X-Mining-Extensions: longpoll reject-reason
Expect: 100-continue

[2020-06-07 01:19:54] 2 of 4 miner threads started using 'sha256d' algorithm
[2020-06-07 01:19:54] Binding thread 1 to cpu 1.
* Done waiting for 100-continue
* Signaling end of chunked upload via terminating chunk.
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Date: Sat, 06 Jun 2020 22:19:55 +0000
< Connection: close
< Content-Length: 91
< Content-Type: application/json
< Server: takeicoin-json-rpc/v0.9.1.3-beta
<
* Closing connection 0
[2020-06-07 01:19:55] JSON protocol response:
{
   "error": {
      "message": "Top-level object parse error",
      "code": -32700
   },
   "result": null,
   "id": null
}
[2020-06-07 01:19:55] JSON-RPC call failed: Top-level object parse error
[2020-06-07 01:19:55] json_rpc_call failed, retry after 10 seconds


What's your command line and what does cpuminer-multi do?


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 07, 2020, 01:45:25 AM
cpuminer-multi simply mines, no errors

Show me, I want to compare logs.

Also try older versions of cpuminer-opt in case it broke recently.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: mix29k on June 07, 2020, 03:50:54 AM
Also try older versions of cpuminer-opt in case it broke recently.

the first that doesn't work is 3.13.0.
after reading what it was about i copied all dll's from 3.12.8 over those in 3.14.2,
and.... it's working now


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 07, 2020, 04:36:19 AM
Also try older versions of cpuminer-opt in case it broke recently.

the first that doesn't work is 3.13.0.
after reading what it was about i copied all dll's from 3.12.8 over those in 3.14.2,
and.... it's working now

Good work. Can you try one DLL at a time and tell me which is the problem?


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: mix29k on June 07, 2020, 04:51:48 AM
Also try older versions of cpuminer-opt in case it broke recently.

the first that doesn't work is 3.13.0.
after reading what it was about i copied all dll's from 3.12.8 over those in 3.14.2,
and.... it's working now

Good work. Can you try one DLL at a time and tell me which is the problem?

well it works if and only if i replace zlib1.dll,
oops, not simple at all, i can't figure out which one,
it's not one or two, it's a sequence or a system setting which some of old dll's change
i can dance all night with that, so copying the whole bunch is simpler


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 07, 2020, 10:00:27 AM
Also try older versions of cpuminer-opt in case it broke recently.

the first that doesn't work is 3.13.0.
after reading what it was about i copied all dll's from 3.12.8 over those in 3.14.2,
and.... it's working now

Good work. Can you try one DLL at a time and tell me which is the problem?

well it works if and only if i replace zlib1.dll,
oops, not simple at all, i can't figure out which one,
it's not one or two, it's a sequence or a system setting which some of old dll's change
i can dance all night with that, so copying the whole bunch is simpler


That's unfortunate, it makes it more difficult to solve. The DLLs are newer versions compiled with a newer
compiler. Some were taken from the mingw packages available in Ubuntu, the others were compiled from
source using the same version as the host Ubuntu 20.04 package.

It's the exact same procedure as before, only the base system, DLL versions and compiler version have changed.
It's also notable that it works when the DLLs are compiled with a different version of GCC than the
cpuminer code.

This is not a simple problem. It could be a combination of factors including cpuminer, the compiler,
mingw, any of the DLL packages, or the wallet. It could be Windows only or also affect Linux.

Troubleshooting will be difficult. At this point I don't even have any clues as to what it might be or how to
fix it. And using Windows make troubleshooting more complicated.

You said previously it failed with any algo or any coin. Do you have examples?

Also note if any test cases result in a different failure mode or error messages. This applies to the DLL swapping as well.

Edit: did you test with only the old libcurl-4.dll? That package looks like the most likely to cause RPC errors, it's also one of
only 2 that were built from source, the other is libcrypto-1_1.dll. All the others were already avaiable in the mingw packages.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: mix29k on June 07, 2020, 03:52:38 PM

Edit: did you test with only the old libcurl-4.dll? That package looks like the most likely to cause RPC errors, it's also one of
only 2 that were built from source, the other is libcrypto-1_1.dll. All the others were already avaiable in the mingw packages.

was my thought exactly, firts i replaced libcurl - no dice, + libcrypto-1_1.dll - same,
+ zlib - error's gone, then reverted to all new dll's again - doesn't work,
changed only zlib - errors gone, then changed back to all new - error, copied zlib - error, copied 2 others - error,
copied all of them - working,
so you see it's smth i can't help with
error's always the same, algos i tried - sha256d, x11, m7m


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 07, 2020, 04:30:17 PM

was my thought exactly, firts i replaced libcurl - no dice, + libcrypto-1_1.dll - same,
+ zlib - error's gone, then reverted to all new dll's again - doesn't work,
changed only zlib - errors gone, then changed back to all new - error, copied zlib - error, copied 2 others - error,
copied all of them - working,
so you see it's smth i can't help with
error's always the same, algos i tried - sha256d, x11, m7m

I having trouble parsing this. It looks like you got it to work twice by changing zlib.
Is it possible you got versions mixed up after that?

Also it would be good to try to break v3.12.8 the same way, by using the newer DLLs from v3.13.0+.

Any change in error messages is significant.

I should also note this problem wasn't seen while tesing soloming mining minotaur with segwit.
The only problem was the lack of segwit support which was fixed.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: mix29k on June 07, 2020, 05:39:52 PM

was my thought exactly, firts i replaced libcurl - no dice, + libcrypto-1_1.dll - same,
+ zlib - error's gone, then reverted to all new dll's again - doesn't work,
changed only zlib - errors gone, then changed back to all new - error, copied zlib - error, copied 2 others - error,
copied all of them - working,
so you see it's smth i can't help with
error's always the same, algos i tried - sha256d, x11, m7m

I having trouble parsing this. It looks like you got it to work twice by changing zlib.
Is it possible you got versions mixed up after that?

Also it would be good to try to break v3.12.8 the same way, by using the newer DLLs from v3.13.0+.

Any change in error messages is significant.

I should also note this problem wasn't seen while tesing soloming mining minotaur with segwit.
The only problem was the lack of segwit support which was fixed.

no mixups
replacing all 3.12.8 dlls with 3.14.2's kills the thing for good (same error),
no change in messages

P.S.
ok it's my last, i've tried it 5 times and it works:
replacing both libcrypto-1_1-x64.dll and libcurl-4.dll simultaneously removes the error,
(replacing them one after the other either removes or not)
but i have a lot of rejects for block 2 in sha256d, like it's never gonna resolve,
less rejects after i replace all other dlls,
still this miner never gives me the same efficiency as cpuminer-multi on that sha256d coin,
so i'd stick to multi for "classic" algos



Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 07, 2020, 05:51:05 PM

was my thought exactly, firts i replaced libcurl - no dice, + libcrypto-1_1.dll - same,
+ zlib - error's gone, then reverted to all new dll's again - doesn't work,
changed only zlib - errors gone, then changed back to all new - error, copied zlib - error, copied 2 others - error,
copied all of them - working,
so you see it's smth i can't help with
error's always the same, algos i tried - sha256d, x11, m7m

I having trouble parsing this. It looks like you got it to work twice by changing zlib.
Is it possible you got versions mixed up after that?

Also it would be good to try to break v3.12.8 the same way, by using the newer DLLs from v3.13.0+.

Any change in error messages is significant.

I should also note this problem wasn't seen while tesing soloming mining minotaur with segwit.
The only problem was the lack of segwit support which was fixed.

no mixups
replacing all 3.12.8 dlls with 3.14.2's kills the thing for good (same error),
no change in messages



zlib only? You got it to work twice, you're on to something.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 07, 2020, 07:51:08 PM
error's always the same, algos i tried - sha256d, x11, m7m

sha256d (LCC)  was recently tested as was minotaur (RING):

https://bitcointalk.org/index.php?topic=5226770.msg54463714#msg54463714

It's not al algo issue but a coin issue.

Understanding why some coins work and other don't is critical to solving the problem
but that requires testing a large number of coins and looking for patterns.


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: osram64 on June 08, 2020, 05:41:53 AM
Is it possible use a proxy?

If you have a bunch of CPUs can you point the miners to a proxy and point the proxy to the mining pool.

Basically I would like to point clusters of PCs to a proxy (local in one of my machines) and point the proxy to the mining pool



Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: JayDDee on June 08, 2020, 04:23:30 PM
Is it possible use a proxy?

If you have a bunch of CPUs can you point the miners to a proxy and point the proxy to the mining pool.

Basically I would like to point clusters of PCs to a proxy (local in one of my machines) and point the proxy to the mining pool



-x, --proxy=[PROTOCOL://]HOST[:PORT] connect through a proxy


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: scryptr on June 08, 2020, 10:11:49 PM
Is it possible use a proxy?

If you have a bunch of CPUs can you point the miners to a proxy and point the proxy to the mining pool.

Basically I would like to point clusters of PCs to a proxy (local in one of my machines) and point the proxy to the mining pool



-x, --proxy=[PROTOCOL://]HOST[:PORT] connect through a proxy

A PROXY WILL WORK--

I used a proxy recently until the coin went PoS.  Try "GitHub.com/stratehm".  Getting it configured was the hard part.       --scryptr


Title: Re: [ANN] cpuminer-opt v3.14.2, open source optimized multi-algo CPU miner
Post by: osram64 on June 09, 2020, 11:13:38 PM

[/quote]

-x, --proxy=[PROTOCOL://]HOST[:PORT] connect through a proxy
[/quote]

A PROXY WILL WORK--

I used a proxy recently until the coin went PoS.  Try "GitHub.com/stratehm".  Getting it configured was the hard part.       --scryptr
[/quote]


Thanks guys!

scryptr.... if I get stuck I may send you a message  ;D 


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: osram64 on June 22, 2020, 11:09:07 PM
Hi JayDDee, I have few questions about optimization.
I run linux, ubuntu server 18.04 on my machines.
I compile locally on each machine using [./build.sh] followed by [make -j (cpu thread)]
Is this the right way to do it or I should use different build options depending on the cpu?
Also, is cpu-affinity a paramount value to set? I am struggling to find the right hex value to put.
Is huge page important?
Is cpu-priority important?
All my machines are only mining, no other tasks performed.
As example, two machines, exactly the same hardware, one with a i3-2130 and one with a i7-2600.
Performance difference is only 22%, I can't figure out what I am doing wrong.
Comparing different cpu, I achieve better performance with older core2 quad than gen2 i7 cpu.
I think I am not compiling it right?


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: JayDDee on June 22, 2020, 11:41:19 PM
The first thing you're doing wrong is overcomplicating things. Don't mess with options
until you know what you're doing. Next pay attention to the messages at startup to see
what optimizations are available and used, every algo is different. If you think there's a problem
post the console log.


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: osram64 on June 23, 2020, 03:27:24 AM
The first thing you're doing wrong is overcomplicating things. Don't mess with options
until you know what you're doing. Next pay attention to the messages at startup to see
what optimizations are available and used, every algo is different. If you think there's a problem
post the console log.

Sorry didn't explain myself well enough.
I am not messing with options (yet) that's why I asked.

When I compile I noticed that using ./build.sh gives me the best result. When miner start it shows the number of thread used and tells me SSE xxx which I assume it picks what the cpu is capable of... and set the best flags?

So question one was more like.... should you use native for better general performance or set flags to be more specific in relation to cpu used? if cpu handle SSE2 and SSE4, should you "force" the compiler to set SSE4....

Sorry, english is not my first language  :)

I am experimenting with uraniumX mining


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: JayDDee on June 23, 2020, 03:53:20 AM
Allways use the "native" build to ensure it matches the CPU's capabilities. The algo
will use whatever it can.



Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: franzkavka on July 05, 2020, 07:32:58 PM
Hi
I remember mining monero on cpuminer-opt back in 2017, cold winter past and I sold my coins for a good price :)
@JayDDee would you please consider supporting ARMv8 architetcure? I am asking you this because there are pretty powerful SBC's like Odroid N2 and VIM3 with Amlogic s922x, and there will be more of them when Rockchipp 3588 will find it's place in numerous chromebooks, tablets and SBC's.
Don't you think it's worth taking part in this growing mining business?



Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: JayDDee on July 05, 2020, 08:30:13 PM
Hi
I remember mining monero on cpuminer-opt back in 2017, cold winter past and I sold my coins for a good price :)
@JayDDee would you please consider supporting ARMv8 architetcure? I am asking you this because there are pretty powerful SBC's like Odroid N2 and VIM3 with Amlogic s922x, and there will be more of them when Rockchipp 3588 will find it's place in numerous chromebooks, tablets and SBC's.
Don't you think it's worth taking part in this growing mining business?

cpuminer-opt doesn't support Monero or any Cryptonight variants anymore.

Supporting ARM is easier said than done. cpuminer-multi already supports it but the optimization
potential is minimal.

SBC is not a growing mining business, it's focused on portability and low power. When big ARM CPUs
start getting built there may be more interest.


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: paperoga on July 07, 2020, 03:29:13 AM
what is the proper syntax for selecting proxy?
-x, --proxy=[PROTOCOL://]HOST[:PORT]

assuming you have a proxy server running on 192.168.55.10 with listening ports 8333 for stratum and 8335 for getwork

I tried different combinations but always receive:
./cpuminer: no URL supplied
Try `--help' for more information.

in the easiest form should work as -x --proxy=192.168.55.10

-x --proxy=stratum://192.168.55.10:8333
-x --proxy=stratum+tcp://192.168.55.10
-x --proxy=tcp://192.168.55.10:8335
-x --proxy=//192.168.55.10

all yield same result




Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: JayDDee on July 07, 2020, 04:45:23 AM
There's so much I'm not sure where to start.

First you should learn about Linux command line options. There are short and long form options.
-x and --proxy  are the short and long forms of the same option, therefore specifying both is an error.

Second you always need a mining URL, -o or --url, not both.

Most pools have specific instructions on how to set required options.

Don't try using a proxy until you learn the basics.


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: whotheff on July 09, 2020, 09:25:56 AM
I don't know if it is the Algo or the miner, but with Yescryptr32 AMD Ryzen CPUs can barely produce anything.


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: webhead on August 10, 2020, 05:34:14 PM
hello can you add xla panthera algo many thanks.


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: JayDDee on August 11, 2020, 02:52:41 AM
hello can you add xla panthera algo many thanks.

The algo is a modified randomx and the existing miner is a fork of xmrig. I can't do better.


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: BoozyTalking on August 13, 2020, 12:11:31 PM
Hi, JayDDee. What is this error mean:
Code:
[2020-08-13 15:08:46] JSON-RPC call failed: Block does not start with a coinbase
[2020-08-13 15:08:46] submit_upstream_work json_rpc_call failed
[2020-08-13 15:08:46] ...retry after 10 seconds


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: JayDDee on August 13, 2020, 02:31:01 PM
Hi, JayDDee. What is this error mean:
Code:
[2020-08-13 15:08:46] JSON-RPC call failed: Block does not start with a coinbase
[2020-08-13 15:08:46] submit_upstream_work json_rpc_call failed
[2020-08-13 15:08:46] ...retry after 10 seconds

That is an error reported by the stratum server, never seen it before. Need more context.


Title: Re: [ANN] cpuminer-opt v3.14.3, open source optimized multi-algo CPU miner
Post by: BoozyTalking on August 17, 2020, 09:15:40 AM
QAC coin solo mining with local wallet.
Happen after share is found.


Title: Re: [ANN] cpuminer-opt v3.15.0, open source optimized multi-algo CPU miner
Post by: JayDDee on October 02, 2020, 02:55:59 PM
cpuminer-opt-3.15.0

Fugue optimized with AES, improves many sha3 algos.
Minotaur algo optimized for all architectures.
Fixed neoscrypt BUG log.

https://github.com/JayDDee/cpuminer-opt/releases/tag/v3.15.0


Title: Re: [ANN] cpuminer-opt v3.15.0, open source optimized multi-algo CPU miner
Post by: JayDDee on November 06, 2020, 02:18:28 AM
Comment regarding AMD Zen3 (Ryzen 5000)

Zen 3 includes VAES for 256 bit (AVX2) vectors. This is a 2 way parallel operation backported
from Intel AVX512VL. All Intel CPUs require AVX512VL and VAES to implement 256 bit parallel AES.

A few bullet points:

AMD will require a different CPUID configuration to distinguish Intel VAES from AMD VAES-256.

A new compile architecture is required to generate the new 256 bit AES instructions.

There is no performance gain, with Zen AVX2 256 bit instructions are implemented internally as
2 128 bit instructions.

In cpuminer-opt all VAES is 4-way 512 bits and requires proper AVX512 support (AVX512F for 512 bit)
with expected performance gains.

There is nothing to be gained in cpuminer-opt by coding for 256 bit AES or recompiling the existing code for Zen3.


Title: Re: [ANN] cpuminer-opt v3.15.0, open source optimized multi-algo CPU miner
Post by: sech1 on November 06, 2020, 08:42:38 AM
AMD will require a different CPUID configuration to distinguish Intel VAES from AMD VAES-256.

A new compile architecture is required to generate the new 256 bit AES instructions.

There is no performance gain, with Zen AVX2 256 bit instructions are implemented internally as
2 128 bit instructions.

In cpuminer-opt all VAES is 4-way 512 bits and requires proper AVX512 support (AVX512F for 512 bit)
with expected performance gains.

There is nothing to be gained in cpuminer-opt by coding for 256 bit AES or recompiling the existing code for Zen3.

Same CPUID bit as far as I can see: "VAES CPUID Fn0000_0007_ECX[VAES]_x0 (bit 9)" from https://www.amd.com/system/files/TechDocs/26568.pdf
"Zen AVX2 256 bit instructions are implemented internally as 2 128 bit instructions" what? Zen2/Zen3 has full 256-bit FP unit and AES instructions run there. VAES also runs there at full 256 bit throughput.


Title: Re: [ANN] cpuminer-opt v3.15.0, open source optimized multi-algo CPU miner
Post by: JayDDee on November 06, 2020, 02:12:44 PM
AMD will require a different CPUID configuration to distinguish Intel VAES from AMD VAES-256.

A new compile architecture is required to generate the new 256 bit AES instructions.

There is no performance gain, with Zen AVX2 256 bit instructions are implemented internally as
2 128 bit instructions.

In cpuminer-opt all VAES is 4-way 512 bits and requires proper AVX512 support (AVX512F for 512 bit)
with expected performance gains.

There is nothing to be gained in cpuminer-opt by coding for 256 bit AES or recompiling the existing code for Zen3.

Same CPUID bit as far as I can see: "VAES CPUID Fn0000_0007_ECX[VAES]_x0 (bit 9)" from https://www.amd.com/system/files/TechDocs/26568.pdf
"Zen AVX2 256 bit instructions are implemented internally as 2 128 bit instructions" what? Zen2/Zen3 has full 256-bit FP unit and AES instructions run there. VAES also runs there at full 256 bit throughput.

Throughput of AVX2 is easy to test. Just run a cpuminer-opt benchmark of sha256t algo using cpuminer-avx vs cpuminer-avx2.
The initial Zen1 AVX2 is known to be a hack that uses 128 bits internally and there's no indication in any reviews that Zen3
is any better. But a test will confirm it.

I'd appreciate if you could provide the exact feature list and do some performance testing of AVX vs AVX2 when you get yours.
Regardless, there is currently no code in cpuminer-opt that does 2 way parallel hashing, with of without AES. 2 way hashing, even
on Intel, doesn't provide enough performance gain to overcome the extra overhead.


Edit: there may be some issues compiling for Zen3 with vaes.
There is some code that assumes AVX512 is included if VAES is present. This will require a new release of cpuminer-opt.
In addition, there is no compiler support for znver3 yet.
The workaround is to compile with -march=znver2 until both are fixed.
There are no performance implications because cpuminer-opt has no code that can take advantage of 256 bit VAES.
Prebuilt Windows binaries are not affected, znver1 is used for the zen build.



Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 09, 2020, 06:45:04 PM
cpuminer-opt-3.15.1

Fix compile on AMD Zen3 CPUs with VAES.
Force new work immediately after solving a block solo.

https://github.com/JayDDee/cpuminer-opt


Notes for Zen3:

Zen 3 adds VAES for 256 bit vectors. Although cpuminer-opt supports VAES with 512 bit vectors it does
not support 256 bit VAES. This will result in an algo's VAES optimizations not being used on Zen3.

Compilers don't yet support the new znver3 architecture flag. Using znver2 is recommended when compiling
from source code.

It is possible to compile Zen3 with VAES by using "-march=znver2 -mvaes", but it makes no difference to cpuminer-opt.

Windows users should use the cpuminer-zen build on Zen3 CPUs.

Once again the question of AVX2 performance on Ryzen has surfaced, this time with a new twist: VAES.
Although Zen 3 includes some significant architectural changes none of them seem to apply to the execution engine.
The ease it which 256 bit VAES was added without any additional instructions suggests VAES was implemented
using the existing 128 bit AES hardware. This would be consistent with the previous AVX2 implementation in Ryzen
which performs 128 bit instructions internally and results in no performance increase.

No actual testing was done on a Zen3 CPU, I don't have one.

 


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: sech1 on November 09, 2020, 09:43:27 PM
Once again the question of AVX2 performance on Ryzen has surfaced, this time with a new twist: VAES.
Although Zen 3 includes some significant architectural changes none of them seem to apply to the execution engine.
The ease it which 256 bit VAES was added without any additional instructions suggests VAES was implemented
using the existing 128 bit AES hardware. This would be consistent with the previous AVX2 implementation in Ryzen
which performs 128 bit instructions internally and results in no performance increase.

No actual testing was done on a Zen3 CPU, I don't have one.
VAES is full 256 bit in Zen3, I've tested it. VAES 256-bit instructions have the same latency/twice the throughput compared to 128-bit AES instructions. I've also tested two different VAES implementations for RandomX and they both didn't give any speedup. The AES part of RandomX is limited by AES instruction latency, not bandwidth.

Edit: the measured latency was 4 cycles for both AESENC and VAESENC. Throughput was 2 instructions/cycle for both.


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 09, 2020, 11:07:48 PM
Once again the question of AVX2 performance on Ryzen has surfaced, this time with a new twist: VAES.
Although Zen 3 includes some significant architectural changes none of them seem to apply to the execution engine.
The ease it which 256 bit VAES was added without any additional instructions suggests VAES was implemented
using the existing 128 bit AES hardware. This would be consistent with the previous AVX2 implementation in Ryzen
which performs 128 bit instructions internally and results in no performance increase.

No actual testing was done on a Zen3 CPU, I don't have one.
VAES is full 256 bit in Zen3, I've tested it. VAES 256-bit instructions have the same latency/twice the throughput compared to 128-bit AES instructions. I've also tested two different VAES implementations for RandomX and they both didn't give any speedup. The AES part of RandomX is limited by AES instruction latency, not bandwidth.

Edit: the measured latency was 4 cycles for both AESENC and VAESENC. Throughput was 2 instructions/cycle for both.

Can you test AVX2 performance vs AVX? If VAES gives full 256 bit throughput I would expect AVX2 to do so as well.
In previous generations of Ryzen it did not.

I have to admit I'm skeptical because adding 256 bit VAES would be very simple to add and would only require a change
to the instruction decoder to support the new opcode. Supporting 256 bit throughput is a more radical change and would
require a redesigned vector execution unit that would also benefit AVX2.

If AVX2 performance improved, it will convince me that Zen3 has an improved vector unit.

Edit: I ran a test to demonstrate the poor AVX2 performance:

CPU: R7-1700
OS: Ubuntu-20.04, cpuminer compiled using build-allarch.sh. Windows binaries can also be used.

Benchmark test sha256t and blake2s using cpuminer-avx2 & cpuminer-avx. These algos are 100% SIMD
and the AVX2 code is identical to AVX except for the vector size.

Code:
          sha256t        blake2s
AVX2      26.5 Mh/s    141.5 Mh/s
AVX       25.8 Mh/s    129.7 Mh/s

AVX2 should be close to double AVX. It would be nice if AMD fixed that for Zen3.


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: sech1 on November 10, 2020, 07:00:54 AM
Can you test AVX2 performance vs AVX? If VAES gives full 256 bit throughput I would expect AVX2 to do so as well.
In previous generations of Ryzen it did not.
Should be close to double AVX. It would be nice if AMD fixed that for Zen3.
It is full 256 bit since Zen2, no need to test it. Only Zen1/Zen+ had 128-bit FP ALU and splitted AVX instructions in 2.
Read: https://en.wikichip.org/wiki/amd/microarchitectures/zen_2#Key_changes_from_Zen.2B "2x wider datapath (256-bit, up from 128-bit)"


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 10, 2020, 01:22:49 PM
Can you test AVX2 performance vs AVX? If VAES gives full 256 bit throughput I would expect AVX2 to do so as well.
In previous generations of Ryzen it did not.
Should be close to double AVX. It would be nice if AMD fixed that for Zen3.
It is full 256 bit since Zen2, no need to test it. Only Zen1/Zen+ had 128-bit FP ALU and splitted AVX instructions in 2.
Read: https://en.wikichip.org/wiki/amd/microarchitectures/zen_2#Key_changes_from_Zen.2B "2x wider datapath (256-bit, up from 128-bit)"

If I've been wrong it's because I believed what someone told me. To quote Roger Daltrey, "I won't get fooled again". Please test.


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: sech1 on November 10, 2020, 03:15:27 PM
Can you test AVX2 performance vs AVX? If VAES gives full 256 bit throughput I would expect AVX2 to do so as well.
In previous generations of Ryzen it did not.
Should be close to double AVX. It would be nice if AMD fixed that for Zen3.
It is full 256 bit since Zen2, no need to test it. Only Zen1/Zen+ had 128-bit FP ALU and splitted AVX instructions in 2.
Read: https://en.wikichip.org/wiki/amd/microarchitectures/zen_2#Key_changes_from_Zen.2B "2x wider datapath (256-bit, up from 128-bit)"

If I've been wrong it's because I believed what someone told me. To quote Roger Daltrey, "I won't get fooled again". Please test.
Official slide from AMD: https://www.techpowerup.com/review/amd-ryzen-5-3600/images/arch1.jpg
"Now supports single-op AVX256"

Ryzen 7 4700U (Zen2) laptop (lots of stuff running in there, but the difference is obvious):
cpuminer-aes-sse42 --benchmark --algo=blake2s: 106 MH/s
cpuminer-avx.exe --benchmark --algo=blake2s: 113 MH/s
cpuminer-avx2.exe --benchmark --algo=blake2s: 195 MH/s


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 10, 2020, 05:10:47 PM
Official slide from AMD: https://www.techpowerup.com/review/amd-ryzen-5-3600/images/arch1.jpg
"Now supports single-op AVX256"

Ryzen 7 4700U (Zen2) laptop (lots of stuff running in there, but the difference is obvious):
cpuminer-aes-sse42 --benchmark --algo=blake2s: 106 MH/s
cpuminer-avx.exe --benchmark --algo=blake2s: 113 MH/s
cpuminer-avx2.exe --benchmark --algo=blake2s: 195 MH/s

Thanks very much, the numbers are convincing.

That means there would be some benefit from 256 bit VAES on Zen3. I'll look into it further.
It could improve the old X algos with faster groestl, shavite and echo.

RandomX is a little different. It can benefit proportionaly more with VAES512. Some of the AES sequences
alternate AESENC with AESDEC so they can't be paired. VAES512 can still provide a near 2x improvement
in the AES performance, whlile the pure AESENC or AESDEC sequences get near 4x. I don't know how much
AES factors in the performance of RandomX as a whole.


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: sech1 on November 10, 2020, 07:16:01 PM
RandomX is a little different. It can benefit proportionaly more with VAES512. Some of the AES sequences
alternate AESENC with AESDEC so they can't be paired. VAES512 can still provide a near 2x improvement
in the AES performance, whlile the pure AESENC or AESDEC sequences get near 4x. I don't know how much
AES factors in the performance of RandomX as a whole.
RandomX is limited by AES instruction latency. Main AES loop has 8 128-bit AES instructions and runs in 4 clock cycles per iteration on Ryzen. With VAES it's 4 256-bit AES instructions but still 4 clock cycles per iteration. It can't be parallelized because each iteration depends on the previous one. AESENC/AESDEC interleaving can be worked around with some clever use of _mm256_permute2x128_si256().


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: nsummy on November 10, 2020, 08:10:28 PM
I have a feature/documentation request.  I think it would be good to document which algos can take advantage of some of these newer CPU instruction sets.  I've been mostly a GPU miner but CPU mining really intrigues me and would like to do it as a side project.  I also think documenting which algos are no longer "supported" would be beneficial, or somehow segregating them from the rest.  Just looking at the algo list its apparent that most of the included algos will never be seriously mined by a CPU.  I definitely appreciate the work though, I have been using cpuminer-opt off and on for years now


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 10, 2020, 11:04:09 PM
RandomX is a little different. It can benefit proportionaly more with VAES512. Some of the AES sequences
alternate AESENC with AESDEC so they can't be paired. VAES512 can still provide a near 2x improvement
in the AES performance, whlile the pure AESENC or AESDEC sequences get near 4x. I don't know how much
AES factors in the performance of RandomX as a whole.
RandomX is limited by AES instruction latency. Main AES loop has 8 128-bit AES instructions and runs in 4 clock cycles per iteration on Ryzen. With VAES it's 4 256-bit AES instructions but still 4 clock cycles per iteration. It can't be parallelized because each iteration depends on the previous one. AESENC/AESDEC interleaving can be worked around with some clever use of _mm256_permute2x128_si256().

The extra permutes would kill the advantage of 2 way parallel AES, but yes it can be done,
4 way parallel (avx512) might overcome the penalty.

I looked at RandomX VAES a while ago but couldn't figure out how to enable AVX512 to compile with cmake. I'm not good with c++ either.

I'm playing with AVX2+VAES on my Icelake laptop, it looks like x17 with get a 7% boost by using VAES for groestl, Shavite & Echo.
I assume similar for Zen3.

If things work out the next release may include a zen3 build with VAES in addition to AVX2 & SHA.


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 10, 2020, 11:20:50 PM
I have a feature/documentation request.  I think it would be good to document which algos can take advantage of some of these newer CPU instruction sets.  I've been mostly a GPU miner but CPU mining really intrigues me and would like to do it as a side project.  I also think documenting which algos are no longer "supported" would be beneficial, or somehow segregating them from the rest.  Just looking at the algo list its apparent that most of the included algos will never be seriously mined by a CPU.  I definitely appreciate the work though, I have been using cpuminer-opt off and on for years now

The short answer is any algo derivative of x11 or containing parts of x11, otherwise known as sha3 based.
The irony is that the algos that can use AVX512 etc can't compete with GPUs.

The long answer requires searching through the code of each algo.

I'm not sure what you mean by no longer supported. I focus more on newer CPUs and algos that are still mineable
with a CPU (although difficult for some) but all algos are still supported.


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: adamvp on November 11, 2020, 08:09:30 PM
Is there any coin worth cpu mining right now?


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: miner29 on November 11, 2020, 09:01:05 PM
XMR


Title: Re: [ANN] cpuminer-opt v3.15.1, open source optimized multi-algo CPU miner
Post by: bobben2 on November 12, 2020, 03:22:05 PM
Is there any coin worth cpu mining right now?


That depends on a couple of things (at least):
1. CPU type.  Generally, Ryzen cpus will be a better choice for mining these days, especially those with higher core counts and larger L3 cache.
2. Your strategy.   You can mine a coin believing it will moon one day in the future.   Then you might not mind it not returning more than a few cents a day now.  You can let the miner do its work and forget about it until the day the coin moons and then rake in the profits selling.
Or, you can spend a lot of time researching the coin of the day and mine it short term to see if that will earn you a quick buck.
I think XMR has potential to go higher in price and am mining it.


Title: Re: [ANN] cpuminer-opt v3.15.2, open source optimized multi-algo CPU miner
Post by: JayDDee on November 15, 2020, 11:05:22 PM
cpuminer-opt-3.15.2

Zen3 AVX2+VAES optimization for x16*, x17, sonoa, xevan, x21s, x22i, x25x, allium.
Zen3 build added to Windows binary package.

https://github.com/JayDDee/cpuminer-opt/releases


Title: Re: [ANN] cpuminer-opt v3.15.3, open source optimized multi-algo CPU miner
Post by: JayDDee on December 10, 2020, 11:45:14 PM
cpuminer-opt-3.15.3

Yescrypt algos now use yespower v0.5, a little faster.
New implementation of sha256 using SHA CPU extension.
Replace Openssl with SPH for sha256 & sha512.
AVX512 optimization for sha256t & sha256q.
Faster sha256t, sha256q, x21s, x22i & x25x on CPUs with SHA without AVX512.
AVX512+SHA build for Intel Rocketlake added to Windows binary package.

https://github.com/JayDDee/cpuminer-opt/releases


Title: Re: [ANN] cpuminer-opt v3.15.3, open source optimized multi-algo CPU miner
Post by: spilk76 on December 13, 2020, 11:18:47 AM
hello humans I can't compile cpuminer-multi on my arm device
help me

Code:
```
u0_a96@localhost:~/cpuminer-multi$ make
make  all-recursive
make[1]: Entering directory '/data/data/com.termux/files/home/cpuminer-multi'

Making all in compat
make[2]: Entering directory '/data/data/com.termux/files/home/cpuminer-multi/compat'
make[3]: Entering directory '/data/data/com.termux/files/home/cpuminer-multi/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/data/data/com.termux/files/home/cpuminer-multi/compat'
make[2]: Leaving directory '/data/data/com.termux/files/home/cpuminer-multi/compat'
make[2]: Entering directory '/data/data/com.termux/files/home/cpuminer-multi'
gcc -DHAVE_CONFIG_H -I.  -fno-strict-aliasing  -I.  -Wno-pointer-sign -Wno-pointer-to-int-cast   -D__arm__ -g -O2  -MT algo/cpuminer-rainforest.o -MD -MP -MF algo/.deps/cpuminer-rainforest.Tpo -c -o algo/cpuminer-rainforest.o `test -f 'algo/rainforest.c' || echo './'`algo/rainforest.c
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x12, x11, [x9,##0]
                           ^
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x11, x10, [x9,##16]
                           ^
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x10, x12, [x9,##32]
                           ^
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x12, x11, [x9,##48]
                           ^
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x14, x10, [x9,##64]
                           ^
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x13, x12, [x9,##80]
                           ^
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x11, x14, [x9,##96]
                           ^
algo/rainforest.c:562:16: error: unknown token in expression
  asm volatile("stp %0, %1, [%2,#%3]\n\t"
               ^
<inline asm>:1:21: note: instantiated into assembly here
        stp x10, x13, [x9,##112]
                           ^
8 errors generated.
make[2]: *** [Makefile:2435: algo/cpuminer-rainforest.o] Error 1
make[2]: Leaving directory '/data/data/com.termux/files/home/cpuminer-multi'
make[1]: *** [Makefile:2920: all-recursive] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/cpuminer-multi'
make: *** [Makefile:699: all] Error 2
```


Title: Re: [ANN] cpuminer-opt v3.15.3, open source optimized multi-algo CPU miner
Post by: JayDDee on December 13, 2020, 07:49:37 PM
hello humans I can't compile cpuminer-multi on my arm device
help me

This thread is for cpuminer-opt, not cpuminer-multi. You might have better luck in the cpuminer-multi thread.

The error is in ARM ASM code, possibly a syntax error, but I know nothing about ARM ASM so it's just a guess.
 


Title: Re: [ANN] cpuminer-opt v3.15.4, open source optimized multi-algo CPU miner
Post by: JayDDee on December 15, 2020, 06:20:42 PM
cpuminer-opt-3.15.5

Fix stratum jobs lost if 2 jobs received in less than one second.


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: 7d2mine on December 22, 2020, 02:50:02 AM
Just tried this out for the first time, wanted to say THANKS for doing this!! Was able to figure it out and get it running with very minimal BS in about 5-10 mins.


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: UspesenRudar on December 28, 2020, 11:07:59 AM
Can you add new BALLOON algo for Zentoshi.
From https://github.com/zentoshi/cpuminer-opt-balloon
have trouble creating win EXE.
THX


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: scryptr on December 28, 2020, 09:31:35 PM
HAPPY HOLIDAYS! --

Here's to BTC peaking at $50K+ in 2021!       --scryptr


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: JayDDee on December 29, 2020, 12:23:35 AM
Can you add new BALLOON algo for Zentoshi.
From https://github.com/zentoshi/cpuminer-opt-balloon
have trouble creating win EXE.
THX

It's only for one coin that isn't listed on any exchanges, so I'm not interested.
Zentoshi should provide Windows EXEs for mining.


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: nina34 on January 21, 2021, 07:43:34 PM
can i compile it on 32 bit linux system ?


 i've got this error messing during compiling
"simd-utils/simd-int.h:94:18: error: ‘__int128’ is not supported on this target"


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: JayDDee on January 21, 2021, 11:59:25 PM
can i compile it on 32 bit linux system ?

No, 64 bit only. Read the requirements in the first post.


Title: Re: [ANN] cpuminer-opt v3.14.1, open source optimized multi-algo CPU miner
Post by: dottat on January 31, 2021, 03:26:23 AM
It looks like once you find 10-12 blocks in solo mining, the periodic hash rate starts to even out.  It’s hard with Minotaur because blocks don’t come that often, unlike pool mining where shares are 3-4 per minute.

You still around lcc/ring?


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: Nighthog on January 31, 2021, 09:32:30 AM
Does this support 'cpupower' in it's current state? (CPUchain Core)

Code:
PoW Mining Algorithm: yespower / 'cpupower' with N = 2048, r = 32 and perslen = 73

I tried the 'yespower' algorithm and got rejects spammed for to low difficulty on the hash.
I suppose it's not correct. A variant with these variables needed?


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: JayDDee on February 12, 2021, 08:29:20 PM
Does this support 'cpupower' in it's current state? (CPUchain Core)

Code:
PoW Mining Algorithm: yespower / 'cpupower' with N = 2048, r = 32 and perslen = 73

I tried the 'yespower' algorithm and got rejects spammed for to low difficulty on the hash.
I suppose it's not correct. A variant with these variables needed?

Scroll to the end...
https://github.com/JayDDee/cpuminer-opt/wiki/Supported--Algorithms


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: Nighthog on February 13, 2021, 02:07:24 PM
edit...

Fixed the issue, used the wrong port on the pool with the "correct parameters"...

Code:
cpuminer-zen3.exe -a yespower --param-key "CPUpower: The number of CPU working or available for proof-of-work mining" --param-n 2048 --param-r 32 -o stratum+tcp://eu.blockmasters.co:4250 -u <ADRESS> -p c=<COIN>


Title: Re: [ANN] cpuminer-opt v3.15.5, open source optimized multi-algo CPU miner
Post by: scryptr on February 16, 2021, 02:07:56 PM
HAPPY HOLIDAYS! --

Here's to BTC peaking at $50K+ in 2021!       --scryptr

WOOT! HAPPY $50K DAY! WOOT!

BitCoin BTC hit a price over $50K briefly today, 16 FEB 2021, in the early AM (US time zones).  A reason to celebrate a snowy day!

--scryptr


Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: Erdloch on February 28, 2021, 07:06:00 AM
Hello together!

First of all, thanks to JayDDee / joblo for your fork of cpuminer-multi, I think it's pretty cool (when I finally can make it run ;-))
I would like to use this piece of software to mine for Nicehash.com
I have just compiled the latest version of cpuminer-opt from Github on my Ubuntu server and ran the following start-command:

Quote
./cpuminer -a scrypt -o stratum+tcp://scrypt.eu-west.nicehash.com:3333 -u 3GoaYEXEYLJ8Kri6apdt6yZsvSvHdqDksc.testminer1 -p x

For me, it seems like the program is running properly, and I can also see the machine appeard in the menu of Nicehash, but always with "Accepted speed: 0.0000 MH/s".
When I run htop, I can see my CPUs are at 100%.

After some time, I get this report, which also confirms that "0" has been submitted / accepted.

Does anyone has an idea of what I'm doing wrong? I have also tried other algorithms, but with the same result...
Any help appreciated!



Report:
Quote
[2021-02-28 07:56:31] scrypt: scrypt.eu-west.nicehash.com:3333
                      Periodic Report     5m49s        18m45s
                      Share rate        0.00/min     0.00/min
                      Hash rate          0.00h/s      0.00h/s   (57.72kh/s)
                      Submitted             0            0
                      Accepted              0            0
                      Hi/Lo Share Diff  0 /  9e+99

Log after the run command:
Quote
        **********  cpuminer-opt 3.15.6  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

[2021-02-28 07:37:46] Scrypt paramaters: N= 1024, R= 1.
CPU: Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz
SW built on Feb 28 2021 with GCC 9.3.0
CPU features:  AVX2    AES
SW features:   AVX2    AES
Algo features: AVX2

Starting miner with AVX2...

[2021-02-28 07:37:46] Stratum connect scrypt.eu-west.nicehash.com:3333
[2021-02-28 07:37:46] Miner thread priority 0 (nice 19)
[2021-02-28 07:37:46] 4 of 4 miner threads started using 'scrypt' algorithm
[2021-02-28 07:37:46] Stratum extranonce1= 000020551b, extranonce2 size= 3
[2021-02-28 07:37:46] Extranonce subscription enabled
[2021-02-28 07:37:46] Stratum connection established
[2021-02-28 07:37:46] New Stratum Diff 135033, Block 12505396, Job 00000000f7c3c61f
                      Diff: Net 1.2374e+05, Stratum 1.3503e+05, Target 2.0604
[2021-02-28 07:37:47] CPU temp: curr 0 C (max 0), Freq: 0.000/0.000 GHz
[2021-02-28 07:37:49] New Block 12505397, Job 00000000f7c3c620
                      Diff: Net 1.1761e+05, Stratum 1.3503e+05, Target 2.0604
                      TTF @ 50.90 kh/s: Block 8103y73d, Share 2d00h
                      Net hash rate (est) 252.56 Th/s
[2021-02-28 07:37:54] New Block 12505398, Job 00000000f7c3c621
                      Diff: Net 1.1251e+05, Stratum 1.3503e+05, Target 2.0604
                      TTF @ 56.37 kh/s: Block 8103y73d, Share 1d19h
                      Net hash rate (est) 120.81 Th/s
[2021-02-28 07:38:04] New Block 12505399, Job 00000000f7c3c622
                      Diff: Net 1.0791e+05, Stratum 1.3503e+05, Target 2.0604
                      TTF @ 57.29 kh/s: Block 8103y73d, Share 1d18h
                      Net hash rate (est) 77.24 Th/s

Thank you!


Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: Nighthog on February 28, 2021, 07:26:55 AM
Hello together!
---------------
Thank you!

Do not mine scrypt with a cpu... not even a GPU is worthwhile.

Basically it's so slow it never finds a share it can submit.
Use another algorithm for the other coins, specifically the CPU coins. At least you can get something for your effort there.


Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: Erdloch on February 28, 2021, 08:01:43 AM
Okay, that makes sense.
Can you suggest any algorithm where CPU-mining still makes sense and that also works with cpuminer-opt?


Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: Nighthog on February 28, 2021, 08:15:05 AM
Okay, that makes sense.
Can you suggest any algorithm where CPU-mining still makes sense and that also works with cpuminer-opt?

yescryptR32 [DMS]
yespowerR16 [YTN]
yespower [several]

There are many more choices, these are just some I've used with this cpu-miner for now.



Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: JayDDee on February 28, 2021, 01:18:58 PM
Quote
[2021-02-28 07:38:04] New Block 12505399, Job 00000000f7c3c622
                      Diff: Net 1.0791e+05, Stratum 1.3503e+05, Target 2.0604
                      TTF @ 57.29 kh/s: Block 8103y73d, Share 1d18h
                      Net hash rate (est) 77.24 Th/s


Take a look at the TTF, you can expect about 1 share every 2 days mining scrypt with that CPU.
Share TTF should be less than 1 minute for useful mining. Anything more than 5 minutes
will likely cause stratum timeouts.


Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: Nighthog on February 28, 2021, 03:13:19 PM
Any plans to add RX2 algorithm for this? [LUX]

It's quite recent and was looking if it could be incorporated into this multi-miner.



Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: JayDDee on February 28, 2021, 06:27:56 PM
cpuminer-opt development is winding down. That might have been obvious by the slower pace of new
releases and less content in each one

I've achieved everything I wanted to from a technical standpoint. All of the suitable algorithms have been
optimized to support AVX512, SHA and VAES. This brings support to CPUs that haven't even been released yet.

Adding new algorithms was never part of my plan but many were easy to integrate into the cpuminer design.
Tha's no longer the case. Most new algorithms are written differently and don't fit well with cpuminer.
Many use c++ and cmake while cpuminer uses c and automake.

The number of different algorithms has increased with more algorithms being used by only one coin making them
more work to support.

Coins are frequently changing algorithms making even more work to support. The days of an all in one cpu miner
are coming to an end. Custom miners are required for many coins. I wouldn't be able to keep up even if I wanted to.

I have 1 more planned release with a few minor code tweaks and some cleanup, but nothing realy new.
After that it's bug fixes only, which hopefully will be few.

I have no plans of going anywhere and I may get bored, so who knows.


Title: Re: [ANN] cpuminer-opt v3.15.6, open source optimized multi-algo CPU miner
Post by: chrysophylax on March 04, 2021, 03:06:56 PM
cpuminer-opt development is winding down. That might have been obvious by the slower pace of new
releases and less content in each one

I've achieved everything I wanted to from a technical standpoint. All of the suitable algorithms have been
optimized to support AVX512, SHA and VAES. This brings support to CPUs that haven't even been released yet.

Adding new algorithms was never part of my plan but many were easy to integrate into the cpuminer design.
Tha's no longer the case. Most new algorithms are written differently and don't fit well with cpuminer.
Many use c++ and cmake while cpuminer uses c and automake.

The number of different algorithms has increased with more algorithms being used by only one coin making them
more work to support.

Coins are frequently changing algorithms making even more work to support. The days of an all in one cpu miner
are coming to an end. Custom miners are required for many coins. I wouldn't be able to keep up even if I wanted to.

I have 1 more planned release with a few minor code tweaks and some cleanup, but nothing realy new.
After that it's bug fixes only, which hopefully will be few.

I have no plans of going anywhere and I may get bored, so who knows.


Let's chat ...

You never know what that could lead to ;)

#crysx


Title: Re: [ANN] cpuminer-opt v3.16.0, open source optimized multi-algo CPU miner
Post by: JayDDee on March 19, 2021, 08:10:04 PM
cpuminer-opt-3.16.0

Added verthash algorithm. It's slow but it works.

https://github.com/JayDDee/cpuminer-opt/releases

The following is superseded by v3.16.1.

Mining verthash uses a data file of over 1 GB. It is not included in the download
but may be available for download elsewehere, YMMV.

For cpuminer-opt the verthash data file must be named verthash.dat and located in the same
directory as the cpuminer executable. A Linux symlink works.

The verthash data file must be obtained seperately. If you already use VerthashMiner you can
simply copy or link the existing data file to the cpuminer directory, using the required name.

Otherwise it may be created using https://github.com/CryptoGraphics/VerthashMiner/releases
following the instructions. A GPU is not necessary to create the file.

The same data file can be used by both cpuminer and VerthashMiner simultaneously.

Launching cpuminer to mine verthash is the same as any other algorithm, no extra options are required.


Title: Re: [ANN] cpuminer-opt v3.16.1, open source optimized multi-algo CPU miner
Post by: JayDDee on March 24, 2021, 10:34:28 PM
cpuminer-opt-3.16.1

https://github.com/JayDDee/cpuminer-opt/releases

New options for verthash:
  --data-file to specify the name, and optionally the path, of the verthash
              data file, default is "verthash.dat" in the current directory.
  --verify to perform the data file integrity check at startup, default is
           not to verify data file integrity.

Support for creation of default verthash data file if:
   1) --data-file option is not used,
   2) no default data file is found in the current directory, and,
   3) --verify option is used.

More detailed logs related to verthash data file.

Small verthash performance improvement.

Fixed detection of corrupt stats caused by networking issues.

Quickstart for Verthash:

First time mining verthash or don't have a Verthash data file:

--algo verthash --verify --url ...

Verthash data file already exists:

--algo verthash --data-file /path/to/verthash.dat --url ...

See verthash-help.txt for more details.




Title: Re: [ANN] cpuminer-opt v3.16.1, open source optimized multi-algo CPU miner
Post by: trogdorjw73 on April 07, 2021, 04:17:58 PM
Is there any chance AVX512 with Rocket Lake would be worthwhile for mining Ethereum / Ethash? I saw this post and am trying to corroborate their 'findings': https://www.hardwaretimes.com/intel-core-i9-11900k-reportedly-on-par-w-the-nvidia-rtx-3060-in-ether-mining-courtesy-of-avx512/


Title: Re: [ANN] cpuminer-opt v3.16.1, open source optimized multi-algo CPU miner
Post by: JayDDee on April 07, 2021, 06:07:40 PM
Is there any chance AVX512 with Rocket Lake would be worthwhile for mining Ethereum / Ethash? I saw this post and am trying to corroborate their 'findings': https://www.hardwaretimes.com/intel-core-i9-11900k-reportedly-on-par-w-the-nvidia-rtx-3060-in-ether-mining-courtesy-of-avx512/

It's interesting but it was 5 GHz, not very practical. My i9-9940x slows from 4.3 GHz (all cores) to 3.5 when running AVX512.

I've been trying to vectorize verthash and AVX512 is slower than AVX2. I presume the significantly lower clock rate
slows down data file access, negating any gains from code optimization.
I also presume eth would have the same issues with the DAG.

I'm also not aware of any usable CPU miners for Eth.


Title: Re: [ANN] cpuminer-opt v3.16.1, open source optimized multi-algo CPU miner
Post by: alucard20724 on April 08, 2021, 12:01:51 AM
Is there any chance AVX512 with Rocket Lake would be worthwhile for mining Ethereum / Ethash? I saw this post and am trying to corroborate their 'findings': https://www.hardwaretimes.com/intel-core-i9-11900k-reportedly-on-par-w-the-nvidia-rtx-3060-in-ether-mining-courtesy-of-avx512/

It's interesting but it was 5 GHz, not very practical. My i9-9940x slows from 4.3 GHz (all cores) to 3.5 when running AVX512.

I've been trying to vectorize verthash and AVX512 is slower than AVX2. I presume the significantly lower clock rate
slows down data file access, negating any gains from code optimization.
I also presume eth would have the same issues with the DAG.

I'm also not aware of any usable CPU miners for Eth.

the 11900K runs hot with AVX512 under constant load.. i was getting 100C steady with a 360mm AIO system (corsair h150i).
I had to stop running avx512 for the time being.

I've got a cooler master sub-zero system (thermoelectric cooling system) from newegg showing up in a few days... will put that in the system and try avx512 again.
https://www.newegg.com/cooler-master-liquid-cooling-system-masterliquid-ml360-sub-zero/p/N82E16835103310?Item=N82E16835103310


Title: Re: [ANN] cpuminer-opt v3.16.1, open source optimized multi-algo CPU miner
Post by: JayDDee on April 08, 2021, 04:47:25 AM
the 11900K runs hot with AVX512 under constant load.. i was getting 100C steady with a 360mm AIO system (corsair h150i).
I had to stop running avx512 for the time being.

I've got a cooler master sub-zero system (thermoelectric cooling system) from newegg showing up in a few days... will put that in the system and try avx512 again.
https://www.newegg.com/cooler-master-liquid-cooling-system-masterliquid-ml360-sub-zero/p/N82E16835103310?Item=N82E16835103310

Rocketlake is going to be hot, it uses 14nm for an architecture designed for 10nm. It added AVX512 & SHA but
had to leave out VAES and the top end 10 core model.

Performance will depend on the algo and the AVX512 clock penalty, and possibly thermal throttling.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: JayDDee on April 08, 2021, 10:22:45 PM
cpuminer-opt-3.16.2

Verthash: midstate prehash optimization for all architectures.
Verthash: AVX2 optimization.
GBT: added support for Bech32 addresses, untested.
Linux: added CPU frequency to benchmark log.
Fixed integer overflow in time calculations.


For solo mining with getblocktemplate Bech32 addressing is not tested and segwit is uncertain.
One, the other, or both may not work. Testing is welcome. Questions can be discussed here or
by opening an issue with git. I'll do my best but I can't make any promises.

Please add -D command line option if trying Bech32 or segwit.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on April 14, 2021, 11:45:31 PM
What --param-key to mine Resistance (RES)?

I tried different variants but shares are always rejected. I don't want to use rplant miner

------------
2021-04-14 23:44:38] 10 Submitted Diff 1.0876e-06, Block 895384, Job 76bd
[2021-04-14 23:44:38] 10 A0 S0 Rejected 10 B0, 85.333 sec (350ms)
                      Diff 1.0876e-06, Block 895384, Job 76bd
[2021-04-14 23:44:38] Reject reason: incorrect size of nonce 8RES
                      Hash:   000e07be624feb118000000000000000ffffffffffffffff
                      Target: 00140000000000000000000000000000ffffffffffffffff
------------

Coin is in this pool: https://pool.rplant.xyz/




Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: JayDDee on April 15, 2021, 12:46:42 AM
What --param-key to mine Resistance (RES)?

I tried different variants but shares are always rejected. I don't want to use rplant miner

------------
2021-04-14 23:44:38] 10 Submitted Diff 1.0876e-06, Block 895384, Job 76bd
[2021-04-14 23:44:38] 10 A0 S0 Rejected 10 B0, 85.333 sec (350ms)
                      Diff 1.0876e-06, Block 895384, Job 76bd
[2021-04-14 23:44:38] Reject reason: incorrect size of nonce 8RES
                      Hash:   000e07be624feb118000000000000000ffffffffffffffff
                      Target: 00140000000000000000000000000000ffffffffffffffff
------------

Coin is in this pool: https://pool.rplant.xyz/


Short answer is I don't know, I don't try to find every coin's parameters.

Usually the coin developpers should publish the POW specifications including parameters.
A pool that supports the coin will often have mining instructions for the coins it supports
which should include parameters if they are required.

However, I'm concerned about the reject reason in this case. I would expect "invalid share"
if the parameters were incorrect. But the reason suggests a nonce size issue, not a parameter
issue. The reason also includes the coin's symbol suggesting something specific to RES.

I've never seen this error before, there may be something unique about the implementation
of the stratum protocol used by this coin that cpuminer-opt doesn't support. If so I don't know what it is.

If the coin has a thread in the ANN section I suggest asking there. You could also ask rplant,
he should know. His pool, and presumably his miner, support it.

You could also add -D to the command line and note the log messages at startup related to stratum,
That may provide a clue.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on April 15, 2021, 03:44:17 AM
-D added

        **********  cpuminer-opt 3.16.2  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

[2021-04-15 03:32:19] High priority mining threads may cause system instability
[2021-04-15 03:32:19] Yespower parameters: N= 2048, R= 32
[2021-04-15 03:32:19] Key= "yespowerres"

CPU: AMD G-T56N Processor
SW built on Apr 14 2021 with GCC 9.3.0
CPU features:  SSE2 
SW features:   SSE2 
Algo features: SSE2   SHA

Starting miner with SSE2...

[2021-04-15 03:32:19] Creating stratum thread
[2021-04-15 03:32:19] Stratum connect stratum-eu.rplant.xyz:17040
[2021-04-15 03:32:19] Miner thread priority 4 (nice -10)
[2021-04-15 03:32:19] Binding thread 0 to mask 0000000000000003
[2021-04-15 03:32:19] 2 of 2 miner threads started using 'yespower' algorithm
[2021-04-15 03:32:19] Binding thread 1 to mask 0000000000000003
[2021-04-15 03:32:20] Stratum session id: 322239241633170
[2021-04-15 03:32:20] Stratum extranonce1= 4ffff344, extranonce2 size= 4
[2021-04-15 03:32:21] Method extranonce.subscribe is not supported
[2021-04-15 03:32:21] Threads restarted for new work.
[2021-04-15 03:32:21] Stratum connection established
[2021-04-15 03:32:21] CPU temp: curr 74 C max 0, Freq: 0.000/0.000 GHz
[2021-04-15 03:32:21] Threads restarted for new work.
[2021-04-15 03:32:21] New Stratum Diff 0.1, Block 895616, Job 7837
                      Diff: Net 8.0568e-05, Stratum 0.1, Target 1.5259e-06
[2021-04-15 03:32:34] CPU temp: curr 81 C max 74, Freq: 0.000/0.000 GHz
[2021-04-15 03:32:34] Threads restarted for new work.
[2021-04-15 03:32:34] New Work: Block 895616, Net diff 8.0568e-05, Job 7838
[2021-04-15 03:33:18] 1 Submitted Diff 4.7359e-06, Block 895616, Job 7838
[2021-04-15 03:33:18] Thread 0, Nonce 60030000, Xnonce2 00000000
[2021-04-15 03:33:18] Data[0:19]: 04000000 0c6831ef 3bf8d0d5 40fb9d53 0cc3a9e3 ccc8dbbc 42cd98b0 2cf99196 d370e4be 3220f5a9
[2021-04-15 03:33:18]           : 5045e544 6543e0c0 50ba895a 3ca541c9 294c736f 8d509b0f d120af2d d1b37760 bf7b301e 60030000
[2021-04-15 03:33:18] Hash[7:0]: 000338d1 e3f4fd9c f5242b71 d6127636 f35513ac 47901520 00ef2105 0f2f396f
[2021-04-15 03:33:18] Targ[7:0]: 000a0000 00000000 00000000 00000000 ffffffff ffffffff ffffffff ffffffff
[2021-04-15 03:33:18] 1 A0 S0 Rejected 1 B0, 58.369 sec (352ms)
                      Diff 4.7359e-06, Block 895616, Job 7838
[2021-04-15 03:33:18] Reject reason: incorrect size of nonce 8RES
                      Hash:   000338d1e3f4fd9d0000000000000000ffffffffffffffff
                      Target: 000a0000000000000000000000000000ffffffffffffffff
[2021-04-15 03:33:18] CPU temp: curr 82 C max 81, Freq: 0.000/0.000 GHz
[2021-04-15 03:33:29] Threads restarted for new work.
[2021-04-15 03:33:29] New Work: Block 895616, Net diff 8.0568e-05, Job 7839


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: JayDDee on April 15, 2021, 04:47:19 AM
I don't see anything obvious in the output. The log about extranonce not being supported is bogus
and will be fixed in the next release.

The only thing that seems certain is there are 2 problems. First is the reject reason. It either has nothing to
do with the algo parameters or the reason itself is in error. The second issue is the algo parameters.
I presume you took a guess at the key/pers.

I can't do anything about the first problem. If the reject reason is legit then cpuminer-opt is incompatible
in some way. If the reject reason is bogus finding and using the correct parameters may solve it.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on April 29, 2021, 12:30:28 PM
any chance you can add parameters for Raptoreum coin?
Unfortunately adding new algos is beyond my capabilities.

It's using Ghostrider algo, infos I found:
https://docs.raptoreum.com/#/howtomine

and this miner:
https://github.com/npq7721/cpuminer-gr

 


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: JayDDee on April 29, 2021, 02:59:09 PM
any chance you can add parameters for Raptoreum coin?
Unfortunately adding new algos is beyond my capabilities.

It's using Ghostrider algo, infos I found:
https://docs.raptoreum.com/#/howtomine

and this miner:
https://github.com/npq7721/cpuminer-gr

I've stopped trying to add avery algorithm, most of them die off in a few months. I have to see
some potential for a future. Among other things it must be mineable in a major pool with autoexchange.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: skablast on April 29, 2021, 03:32:11 PM
Sorry to disturb.
there was an old version of your miner working with etash ?
I am looking anywhere till cgminer.. to find one etash cpu miner, so please understand if I disturb.



Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: JayDDee on April 29, 2021, 05:54:00 PM
Sorry to disturb.
there was an old version of your miner working with etash ?
I am looking anywhere till cgminer.. to find one etash cpu miner, so please understand if I disturb.

I'm not aware of any working ethash CPU miner.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on April 29, 2021, 10:45:21 PM
any chance you can add parameters for Raptoreum coin?
Unfortunately adding new algos is beyond my capabilities.

It's using Ghostrider algo, infos I found:
https://docs.raptoreum.com/#/howtomine

and this miner:
https://github.com/npq7721/cpuminer-gr

I've stopped trying to add avery algorithm, most of them die off in a few months. I have to see
some potential for a future. Among other things it must be mineable in a major pool with autoexchange.

Fair enough, the community is not too bad on it, https://miningpoolstats.stream/raptoreum
and the few miners available are based on your work! The problem is that is better to compile locally to optimize the build for your own hardware.
In my link from github there is the module for gr algo and thought would have been simple for you to check and add it.


Title: Re: [ANN] cpuminer-opt v3.16.1, open source optimized multi-algo CPU miner
Post by: alucard20724 on April 29, 2021, 11:38:03 PM
the 11900K runs hot with AVX512 under constant load.. i was getting 100C steady with a 360mm AIO system (corsair h150i).
I had to stop running avx512 for the time being.

I've got a cooler master sub-zero system (thermoelectric cooling system) from newegg showing up in a few days... will put that in the system and try avx512 again.
https://www.newegg.com/cooler-master-liquid-cooling-system-masterliquid-ml360-sub-zero/p/N82E16835103310?Item=N82E16835103310

Rocketlake is going to be hot, it uses 14nm for an architecture designed for 10nm. It added AVX512 & SHA but
had to leave out VAES and the top end 10 core model.

Performance will depend on the algo and the AVX512 clock penalty, and possibly thermal throttling.

the tec cooler was a failure.  Great temps if CPU idle or running single core or gaming... complete bust for mining.  result were worse than the AIO 360.  thermal throttling with avx2 (i.e. 100C)... didn't even try avx512.

I'm going to go full custom water loop next attempt. 
Phanteks Enthoo Prime case with a 420 radiator (or a 480) push-pull configuration on top of case with 4 120mm fans on the bottom of case to suck cold air inand maybe and additional two 240 radiators, one on the side and one on the front.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on May 04, 2021, 12:28:53 PM
Some weird things happening on algo m7m. Miner compiled locally with proper settings. Miner is running via a local proxy set in another machine.
If there is a disconnection between pool and proxy, this happens:
If I shut miner down and restart it, all goes well again. First time i see something like this.
Any idea? I can troubleshoot if you need me to. I have several machines exactly the same to test if need be.
I set roundrobin very low on purpose on the proxy to test it and can replicate it.
It doesn't happen on 3.12 or 3.14 versions. I recompiled a fresh version of latest, tried 4 times, once it recovered as normal, 3 times it failed.
~~~ few friends told me I will get bored after retirement... I am enjoying every second of it ~~~

 2021-05-04 19:31:00] 819 A714 S0 Rejected 105 B0, 82.304 sec (144787ms)
                      Diff 0.00016911, Block 3040289, Job 3c88
[2021-05-04 19:31:00] Reject reason: Share is above target
                      Hash:   00001719235eb24adf00000000000000ffffffffffffffff
                      Target: 00002000000000000000000000000000ffffffffffffffff
[2021-05-04 19:31:00] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:31:30] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:31:30] New Block 3040290, Job 3d38
                      Diff: Net 1.7483, Stratum 8, Target 0.00012207
                      TTF @ 8836.83 h/s: Block 9d20h, Share 0m59s
[2021-05-04 19:32:30] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:32:30] m7m: 192.168.1.100:3331
                      Periodic Report     5m20s        12h20m
                      Share rate        0.94/min     1.11/min
                      Hash rate          0.00h/s   8068.42h/s   (8836.83h/s)
                      Lost hash rate  8181.51h/s    1274.89h/s
                      Submitted             5          822
                      Accepted              0          714       86.9%
                      Rejected              5          105       12.8%
                      Hi/Lo Share Diff  0.26387 /  0.00012514
[2021-05-04 19:32:30] Share count mismatch: 3, stats may be incorrect
[2021-05-04 19:32:30] New Work: Block 3040290, Net diff 1.7483, Job 3d65
[2021-05-04 19:33:30] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:33:30] New Work: Block 3040290, Net diff 1.7483, Job 3d93
[2021-05-04 19:33:36] 823 Submitted Diff 0.00015248, Block 3040290, Job 3d93
[2021-05-04 19:33:37] 820 A714 S0 Rejected 106 B0, 36.251 sec (265387ms)
                      Diff 0.0005164, Block 3040290, Job 3c88
[2021-05-04 19:33:37] Reject reason: Share is above target
                      Hash:   000007907f283395e500000000000000ffffffffffffffff
                      Target: 00002000000000000000000000000000ffffffffffffffff
[2021-05-04 19:33:37] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:33:42] New Block 3040291, Job 3dbd
                      Diff: Net 1.7483, Stratum 8, Target 0.00012207
                      TTF @ 8692.41 h/s: Block 9d23h, Share 1m00s
[2021-05-04 19:34:15] 824 Submitted Diff 0.00013701, Block 3040291, Job 3dbd
[2021-05-04 19:34:15] 821 A714 S0 Rejected 107 B0, 24.664 sec (279048ms)
                      Diff 0.0011594, Block 3040291, Job 3cb2
[2021-05-04 19:34:15] Reject reason: Share is above target
                      Hash:   0000035e8856735b9ba0000000000000ffffffffffffffff
                      Target: 00002000000000000000000000000000ffffffffffffffff
[2021-05-04 19:34:15] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:34:41] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:34:41] New Work: Block 3040291, Net diff 1.7483, Job 3de9
[2021-05-04 19:35:13] 825 Submitted Diff 0.00019973, Block 3040291, Job 3de9
[2021-05-04 19:35:13] 822 A714 S0 Rejected 108 B0, 83.489 sec (254211ms)
                      Diff 0.00048466, Block 3040291, Job 3d0c
[2021-05-04 19:35:13] Reject reason: Share is above target
                      Hash:   0000080f4e9bfde90880000000000000ffffffffffffffff
                      Target: 00002000000000000000000000000000ffffffffffffffff
[2021-05-04 19:35:13] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:35:18] 826 Submitted Diff 0.00015702, Block 3040291, Job 3de9
[2021-05-04 19:35:19] 823 A714 S0 Rejected 109 B0, 156.891 sec (102429ms)
                      Diff 0.00015248, Block 3040291, Job 3d93
[2021-05-04 19:35:19] Reject reason: Share is above target
                      Hash:   0000199e6efe49f24200000000000000ffffffffffffffff
                      Target: 00002000000000000000000000000000ffffffffffffffff
[2021-05-04 19:35:29] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:35:29] New Block 3040292, Job 3e13
                      Diff: Net 1.8436, Stratum 8, Target 0.00012207
                      TTF @ 8841.81 h/s: Block 10d08h, Share 0m59s
[2021-05-04 19:35:55] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:35:55] New Block 3040293, Job 3e3e
                      Diff: Net 1.8436, Stratum 8, Target 0.00012207
                      TTF @ 8838.01 h/s: Block 10d08h, Share 0m59s
[2021-05-04 19:36:22] CPU temp: curr 93 C max 94, Freq: 0.000/0.000 GHz
[2021-05-04 19:36:22] New Block 3040294, Job 3e6b
                      Diff: Net 1.9918, Stratum 8, Target 0.00012207
                      TTF @ 8834.17 h/s: Block 11d04h, Share 0m59s
[2021-05-04 19:36:23] New Work: Block 3040294, Net diff 1.9918, Job 3e95
[2021-05-04 19:36:38] 827 Submitted Diff 0.00016472, Block 3040294, Job 3e95
[2021-05-04 19:36:38] 824 A714 S0 Rejected 110 B0, 38.333 sec (143984ms)
                      Diff 0.00013701, Block 3040294, Job 3dbd
[2021-05-04 19:36:38] Reject reason: Share is above target
                      Hash:   00001c827b55aa83a200000000000000ffffffffffffffff
                      Target: 00002000000000000000000000000000ffffffffffffffff


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: JayDDee on May 04, 2021, 01:50:20 PM
If there is a disconnection between pool and proxy, this happens:

The proxy needs to close the connection so the miner can detect the error and reconnect properly.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on May 04, 2021, 01:59:16 PM
If there is a disconnection between pool and proxy, this happens:

The proxy needs to close the connection so the miner can detect the error and reconnect properly.

Ok, I do a bit more testing, the proxy is closing the connection, that's why I don't understand it. It doesn't happen with previous versions either.


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on May 06, 2021, 09:47:14 AM
If there is a disconnection between pool and proxy, this happens:

The proxy needs to close the connection so the miner can detect the error and reconnect properly.

Ok, I do a bit more testing, the proxy is closing the connection, that's why I don't understand it. It doesn't happen with previous versions either.


my apology, the proxy does not close connection properly if fail-over pool is not specified. Error on my side


Title: Re: [ANN] cpuminer-opt v3.16.2, open source optimized multi-algo CPU miner
Post by: paperoga on May 06, 2021, 10:33:34 AM
JayDDee
I tried to send you a private message but I can't. Don't have enough "credibility"


Title: Re: [ANN] cpuminer-opt v3.16.3, open source optimized multi-algo CPU miner
Post by: Drag0g0 on May 10, 2021, 03:19:41 PM
What is command to limit cpu usage if i dont wanna go 100% ?


Title: Re: [ANN] cpuminer-opt v3.16.3, open source optimized multi-algo CPU miner
Post by: JayDDee on May 10, 2021, 07:10:59 PM
What is command to limit cpu usage if i dont wanna go 100% ?

There's no way to limit CPU usage except by by reducing the number of threads.


Title: Re: [ANN] cpuminer-opt v3.16.3, open source optimized multi-algo CPU miner
Post by: SleepyCoinguy101 on May 10, 2021, 09:31:01 PM
What is command to limit cpu usage if i dont wanna go 100% ?

There's no way to limit CPU usage except by by reducing the number of threads.

Although this might be the same answer, what if I WANT to use 100% of the CPU.  I have a system with 64 cores and using this with awesome miner and its barely passing 50% usage and I'm getting 10.60 KH/s


Title: Re: [ANN] cpuminer-opt v3.16.3, open source optimized multi-algo CPU miner
Post by: JayDDee on May 10, 2021, 11:10:47 PM
Although this might be the same answer, what if I WANT to use 100% of the CPU.  I have a system with 64 cores and using this with awesome miner and its barely passing 50% usage and I'm getting 10.60 KH/s

How many threads are you using? Some algorithms perform better with fewer threads, typically 50%.


Title: Re: [ANN] cpuminer-opt v3.16.3, open source optimized multi-algo CPU miner
Post by: SleepyCoinguy101 on May 10, 2021, 11:23:31 PM
I believe its 64 threads, its a 16 core AMD Opteron 6378 CPU x4 with 256GB of RAM


Title: Re: [ANN] cpuminer-opt v3.16.3, open source optimized multi-algo CPU miner
Post by: chrysophylax on June 01, 2021, 01:13:38 PM
I believe its 64 threads, its a 16 core AMD Opteron 6378 CPU x4 with 256GB of RAM

This only happens with 'Threading Tech' applied ...

Opteron (as with any CPU that uses HyperThreading Type of technology) is classically using only the cores allotted, but with HyperThreading Tech enabled, it uses the SAME cores but different time slices. Which means you have 64 Physical Cores (if this machine is a Quad CPU Machine) and another 64 'SoftWare' Cores - making 128 Cores in total as far as the OS can 'see'. That is IF this is happening here with this machine.

So even though it is showing only 50% usage of all 'SoftWare' Cores, the physical cores are actually being used to close to full capacity. You may get some increase in hashing, but I would assume very little if you set your miner thread count at 128.

You can test it and see, it can't really hurt the Physical CPU's themselves, but the whole OS may slow down considerably so be prepared to wait for things to happen when you click Wink

These Opteron CPU's were incredible in their day. Now the Epyc CPU's show what REAL CPU Power is all about!

#crysx


Title: Re: [ANN] cpuminer-opt v3.16.3, open source optimized multi-algo CPU miner
Post by: JayDDee on June 01, 2021, 02:50:33 PM
Hyperthreading (SMT) has only been available on AMD CPUs since Ryzen.
A SMT core is actually 1 1/2 CPU cores. It has 2 register files to manage 2 threads
but only one set of shared execution units. Simply put 2 threads can run simultaneously
if they don't need the same execution units. For example one thread could do an FP operation
while the other is doing integer.

The problem here is it's a multi socket system. They typically aren't used as a monolithic system,
often partitioned by the OS to avoid crossing CPU boundaries to access resources. In effect it
looks like a bunch of virtual machines and the miner is likely only using one.

Multi-CPU support has never been properly tested for mining and likely requires significant system
admin skills to understand how to fully use it. It starts with providing clear and concise technical
information about what the user, miner, and OS are doing.



Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: poonta on August 24, 2021, 12:25:08 PM
Hi JayDDee and everybody else :)

Im trying to setup my cpuminer-opt in HiveOS, mining on a Ryzen 5950x, XBTX coin on ScryptN algo, 1048576.
The thing is that the cpu has 16cores and thus 32 threads, but, im not able to get the miner working with more than lika 18  threads, doing around 60h/s, but, with lower amount of threads i get same hashrate (higher / thread)...
Do you have nay idea why like only using 50% of available threads?

Best regards!
// Pontus


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: JayDDee on August 24, 2021, 05:26:42 PM
Hi JayDDee and everybody else :)

Im trying to setup my cpuminer-opt in HiveOS, mining on a Ryzen 5950x, XBTX coin on ScryptN algo, 1048576.
The thing is that the cpu has 16cores and thus 32 threads, but, im not able to get the miner working with more than lika 18  threads, doing around 60h/s, but, with lower amount of threads i get same hashrate (higher / thread)...
Do you have nay idea why like only using 50% of available threads?

Best regards!
// Pontus

Physical memory limits the number of threads but adding more memory may not increase hashrate. Try different thread/affinity configurations
to find the sweet spot, half the number of threads with alternating affinity (0x55555555) seems to work best in many cases.


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: gatex007 on August 26, 2021, 10:32:25 AM
Hi,
I'm sorry if this not the correct location for this, but i would like to suggest or to know if the algo verushash 2.0 can be added to cpuminer. That would be great, since seems to be a good coin to be mined with cpu's.

Thanks,


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: JayDDee on August 26, 2021, 03:56:55 PM
Hi,
I'm sorry if this not the correct location for this, but i would like to suggest or to know if the algo verushash 2.0 can be added to cpuminer. That would be great, since seems to be a good coin to be mined with cpu's.

Thanks,


The existing miner is written in c++ and would be too difficult to import.


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: minerja on August 27, 2021, 07:22:55 AM
Hi,
I'm sorry if this not the correct location for this, but i would like to suggest or to know if the algo verushash 2.0 can be added to cpuminer. That would be great, since seems to be a good coin to be mined with cpu's.

Thanks,


The existing miner is written in c++ and would be too difficult to import.

Shame, cos it's a great coin to mine, but the team haven't bothered optimising the miners for nearly 12 months.
I'm sure yours would be much better :)


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: JayDDee on August 27, 2021, 05:22:04 PM
Hi,
I'm sorry if this not the correct location for this, but i would like to suggest or to know if the algo verushash 2.0 can be added to cpuminer. That would be great, since seems to be a good coin to be mined with cpu's.

Thanks,


The existing miner is written in c++ and would be too difficult to import.

Shame, cos it's a great coin to mine, but the team haven't bothered optimising the miners for nearly 12 months.
I'm sure yours would be much better :)

It looks like it's pure AES and is already using AES_NI instructions. VAES is possible but that would be limited to
2 ways on Ryzen 5xxx. 4 way VAES is only available on a few Intel laptop CPUs with VAES & AVX512.

It's hard to estimate the gain due to the larger data load, extra data manipulation and lower clock rate. Theoretically
2 ways would be in the range of 1.5x and 4 ways would around 2.5x.

If it's only a matter of importing the Haraka hash function it could be a trivial addition.

I'll give it a quick test, but if it doesn't work as is I'll give up because I wouldn't know where to start debugging.

Edit: It won't work, the stratum protocol is different.


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: BoozyTalking on September 20, 2021, 12:54:45 PM
Hi, is it possible to somehow compile it on android?


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: JayDDee on September 20, 2021, 04:55:26 PM
Hi, is it possible to somehow compile it on android?

The first post lists the requirements. Clearly the answer is no.

Quote
Apple and Android operating systems are not supported.


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: legcramp on September 21, 2021, 08:34:30 PM
Can someone point me in the right direction. I have multiple machines that I plan to use for mining Raptoreum, the question is do I have to install and sync a separate Raptoreum core / wallet for each machine?

Or is it simply sync and create the wallet on the main machine and just run the miner off the other machines and redirecting the rewards to the wallet address?


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: JayDDee on September 21, 2021, 09:15:30 PM
Can someone point me in the right direction. I have multiple machines that I plan to use for mining Raptoreum, the question is do I have to install and sync a separate Raptoreum core / wallet for each machine?

Or is it simply sync and create the wallet on the main machine and just run the miner off the other machines and redirecting the rewards to the wallet address?

This isn't the right place to ask, but you only need one wallet.


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: legcramp on September 22, 2021, 02:28:36 AM
Can someone point me in the right direction. I have multiple machines that I plan to use for mining Raptoreum, the question is do I have to install and sync a separate Raptoreum core / wallet for each machine?

Or is it simply sync and create the wallet on the main machine and just run the miner off the other machines and redirecting the rewards to the wallet address?

This isn't the right place to ask, but you only need one wallet.

Ahhh thank you, didn't realize this isn't the official thread for the coin.


Title: Re: [ANN] cpuminer-opt v3.17.1, open source optimized multi-algo CPU miner
Post by: JayDDee on September 22, 2021, 08:16:15 PM
Here's a plug for a useful link on some of the latest malware phishing techniques using fake github accounts,
and some tips. I have also seen where a legitimate github user was hacked (lax security settings) and his wiki
hijacked to link to malware. A phishing link to it was then posted. The legitimate githiub account made the phishing
link look more legitimate.

Allways verify links are legitimate, hover over the link to show the actual destination. Look for subtle spellling
changes for familiar sites, "I" changed to "1" etc.

Direct links to files are dangerous and should be avoided, always go to the download directory to confirm you
are in the right place before you download a file.

Stay safe.

https://bitcointalk.org/index.php?topic=5182222.0


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: JayDDee on September 29, 2021, 10:14:24 PM
cpuminer-opt-3.18.0

See the first post in this thread for download links.

Release notes:

Complete rewrite of Scrypt code, optimized for large N factor (scryptn2):
  - AVX512 & SHA support for SHA256, AVX512 has priority,
  - up to 50% increase in hashrate,
  - memory requirements reduced 30-60% depending on CPU architecture,
  - memory usage displayed at startup,
  - scrypt, default N=1024 (LTC), will likely perform slower.

Improved stale share detection and handling for Scrypt with large N factor:
  - abort and discard partially computed hash when new work is detected,
  - quicker response to new job, less time wasted mining stale job.

Improved stale share handling for all algorithms:
  - report possible stale share when new work received with a previously
    submitted share still pending,
  - when new work is detected report the submission of an already completed,
    otherwise valid, but likely stale, share,
  - fixed incorrect block height in stale share log.

Small performance improvements to sha, bmw, cube & hamsi for AVX512 & AVX2.

When stratum disconnects miner threads go to idle until reconnected.

Colour changes to some logs.

Some low level function name changes for clarity and consistency.

The reference hashrate in the summary log and the benchmark total hashrate
are now the mean hashrate for the session.

Aditional details, tips and suggested testing:

A lot has changed so  lot of testing would be helpful.

The first tip is for Ryzen users and scryptn2. Ryzen can mine scryptn2 using SHA or AVX2. The current default for
is to use SHA. Users may want to try an AVX2 build to see if that gets better performance.
In future release I may change the default to use AVX2. For Rocket lake CPUs the default is to use AVX512.

Hash rate reporting has significant changes. The reference hash rate in the summary may be slghtly lower but
it will be more accurate and directly comparable with the effective hash rate for the session. The longer the
session the more they converge. The previous hash rate calculation is still reported in the TTF of the New Block log
for comparison. The old way didn't account for overhead such as the stratum thread or other applications or
system processes running. The old way is also used for thread hash rates displayed with the --hash-meter option.

The differences also show why miner wars fighting over who has a slightly faster hash rate is a waste of time.
The only thing that matters is what the pool sees.

Changes were made to stale share detection and handling, in particular for scryptn2. It's notorious for stale shares
for the simple reason it takes nearly a full second to calculate hash. I've found the processing bottlenecks and
placed checkpints at strategic places to check for new jobs that will cause the current hash to be aborted and work
will begin with the new job. This should reduce the number of stale shares.

In addition some new logs are introduced related to stale shares that apply to all aggos. One is output when a new
job is received with a submitted share still pending a response. In this situation the share may be accepted or
rejected, there's no way to know it it arrived at the server in time. There is nothing that the miner can do about this
except report it.

The other new log is displayed when new work is deteced but a fresh valid share is in hand. All the hard work has
already been done so it might as well be submitted. These have a higher likelyhood of being stale unless the pool
offers a grace period where it accepts late shares. I have seen shares accepted after this log so I'm hesitant to
discard them and possibly waste a perfectly good share for the sake of keeping stale numbers low.

Scryptn2 now uses much less memory. In addition to organic improvements to the code it may be possible for
CPUs that were previously limited in the number of threads they could run to be able to run more threads
and possibly increase performance further.

Please test and report your results.
 


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: southmining.eu on October 01, 2021, 01:23:25 PM
I would like to ask to you how to pass the founder reward parameter to cpuminer (charity address). thanks


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: JayDDee on October 01, 2021, 02:24:28 PM
I would like to ask to you how to pass the founder reward parameter to cpuminer (charity address). thanks

Thank you for your interest. I'm not sure I understand your question but if you want to make a donation
the simplest way is a direct BTC transaction to the donation address displayed at miner startup. You may
also direct your mining rewards to the donation address if you prefer. Only BTC donations are supported
at this time.
 
cpuminer-opt has no fee of any kind therefore has no built in mechanism for collecting one. Donations are
purely voluntary and made at the discretion of the users.


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: southmining.eu on October 01, 2021, 07:03:10 PM
My question was mostly focused on solving this problem...

Code:
[2021-10-01 21:00:00] CPU affinity [!!!!!!!!!!!!!!!!]
[2021-10-01 21:00:00] API listnening to 127.0.0.1:49999
[2021-10-01 21:00:00] 10 of 16 miner threads started using 'scrypt' algorithm
[2021-10-01 21:00:01] CPU temp: curr 16 C max 0, Freq: 0.800/4.697 GHz
[2021-10-01 21:00:01] New Block 1740237, Net Diff 0.00024414, Ntime b05a5761
                      Miner TTF @ 0.00 h/s NA, Net TTF @ 7507.86 kh/s 0m00s
[2021-10-01 21:00:12] 1 Submitted Diff 0.00036104, Block 1740237, Ntime bb5a5761
[2021-10-01 21:00:12] 1 A0 S0 Rejected 1 B0, 11.746 sec (2ms)
                      Diff 0.00036104, Block 1740237
[2021-10-01 21:00:12] Reject reason: no-founder-reward
                      Hash:   00000ad1ce379ee7d100000000000000ffffffffffffffff
                      Target: 00000fffff00000000000000000000000000000000000000
[2021-10-01 21:00:14] 2 Submitted Diff 0.00031864, Block 1740237, Ntime bc5a5761
[2021-10-01 21:00:14] 2 A0 S0 Rejected 2 B0, 2.119 sec (2ms)
                      Diff 0.00031864, Block 1740237
[2021-10-01 21:00:14] Reject reason: no-founder-reward
                      Hash:   00000c4256735adad000000000000000ffffffffffffffff
                      Target: 00000fffff00000000000000000000000000000000000000


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: JayDDee on October 01, 2021, 08:05:16 PM
My question was mostly focused on solving this problem...

I've never seen that error, I don't know what it means. Please post more info, what coin, command line
arguments, start up messages? Also please add -D -P options.

Edit: I assume this was with v3.18.0, does it also occur on v3.17.1. I would assume so since I didn't change anything
in the protocol.


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: JayDDee on October 04, 2021, 12:18:01 AM
Intel Alder Lake, I'm not impressed.

It looks like Alder Lake desktop CPUs won't have AVX512 or VAES which is a step backward for Intel and
puts them behind AMD. which supports 256 bit VAES on zen3.

Alder Lake will use a big-little architecture with a combination of big powerfull cores with smaller more efficient cores.
AVX512 is being disabled on the big cores to provide a consistent instruction set with the small cores which don't support
it. If AMD adds AVX512 on Zen4 they will go 2 steps ahead of Intel, just in architecture.

Alder Lake will finally ditch the 14nm process but Zen4 will likely involve another die shrink keeping AMD ahead of Intel
in that department as well. If Zen4 also includes PCIe5 and DDR5 it will be clearly ahead or equal with Intel in every department.
That hasn't happened since AMD was first with 64 bit desktop CPUs, Debian packages still use the amd64 name. Zen4 could also
have some surprises like another boost in core count or bigger cache.

I really don't see a fit for big-little architecture. On the desktop the small cores are pretty useless and on a laptop I  prefer more
smaller more efficient cores than the big cores that are either sitting idle or draining the battery.

I don't think I'll be buying any Intel CPUs for a while.


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: minerja on October 06, 2021, 10:54:25 AM
My question was mostly focused on solving this problem...

Code:
[2021-10-01 21:00:00] CPU affinity [!!!!!!!!!!!!!!!!]
[2021-10-01 21:00:00] API listnening to 127.0.0.1:49999
[2021-10-01 21:00:00] 10 of 16 miner threads started using 'scrypt' algorithm
[2021-10-01 21:00:01] CPU temp: curr 16 C max 0, Freq: 0.800/4.697 GHz
[2021-10-01 21:00:01] New Block 1740237, Net Diff 0.00024414, Ntime b05a5761
                      Miner TTF @ 0.00 h/s NA, Net TTF @ 7507.86 kh/s 0m00s
[2021-10-01 21:00:12] 1 Submitted Diff 0.00036104, Block 1740237, Ntime bb5a5761
[2021-10-01 21:00:12] 1 A0 S0 Rejected 1 B0, 11.746 sec (2ms)
                      Diff 0.00036104, Block 1740237
[2021-10-01 21:00:12] Reject reason: no-founder-reward
                      Hash:   00000ad1ce379ee7d100000000000000ffffffffffffffff
                      Target: 00000fffff00000000000000000000000000000000000000
[2021-10-01 21:00:14] 2 Submitted Diff 0.00031864, Block 1740237, Ntime bc5a5761
[2021-10-01 21:00:14] 2 A0 S0 Rejected 2 B0, 2.119 sec (2ms)
                      Diff 0.00031864, Block 1740237
[2021-10-01 21:00:14] Reject reason: no-founder-reward
                      Hash:   00000c4256735adad000000000000000ffffffffffffffff
                      Target: 00000fffff00000000000000000000000000000000000000

Hi,
I've only seen this once or twice before.
From memory it is a coin where the block gets split between the "miner" and the "founder", ie if a block is say 25 coins, the "miner" gets 20 coins, and the "founder" gets 5 coins.
When i have seen this you MUST use the wallet inbuilt miner (usually console, and "setgenerate true x") all external miners only allow to mine to 1 address.
Knowing the coin would really help us. Send me a PM if you don't want to publicly name the coin.

Jaydee, there is code out their that allows the miner to "split" the rewards, if i come across it again i will send you a link.
I think the "miner" probably had an internal "pool" written, making the reward split much easier


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: JayDDee on October 06, 2021, 11:31:08 PM
Hi,
I've only seen this once or twice before.
From memory it is a coin where the block gets split between the "miner" and the "founder", ie if a block is say 25 coins, the "miner" gets 20 coins, and the "founder" gets 5 coins.
When i have seen this you MUST use the wallet inbuilt miner (usually console, and "setgenerate true x") all external miners only allow to mine to 1 address.
Knowing the coin would really help us. Send me a PM if you don't want to publicly name the coin.

Jaydee, there is code out their that allows the miner to "split" the rewards, if i come across it again i will send you a link.
I think the "miner" probably had an internal "pool" written, making the reward split much easier

Thanks for the info. I couldn't find anything relevant with Google, just coins claiming they have no founder reward.
Yet I don't how the miner would be involved with the founder reward, It has no knowledge of the block reward or how
it's shared and such knowledge would not be of any use anyway.

It seems an intentional way to limit mining. If that's the case I'm not interested. I'm also interested in any coin with a
founder reward. The founders can afford to pay developpers, they won't get aything free from me.



Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: otacilioricardo on October 10, 2021, 06:53:31 AM
Hello.

Is it possible to run Cpuminer on all nodes of a cluster? I intend to set up a cluster to work, and I want to take advantage of mining.

What or would you like to do is:

1. I have main node;
2. Node 1 (no1);
3. Node 2 (no2);
4. Node 3 (no3).

I set it to run on the main node, and use nodes 1, 2 and 3 to mine.

Thank you for your attention.

Olá.

É possível rodar o Cpuminer em todos os nós de um cluster? Pretendo montar um cluster para trabalhar, e quero aproveitar minerar.

O que ou gostaria de fazer é:

1. Tenho nó principal;
2. Nó 1 (no1);
3. Nó 2 (no2);
4. Nó 3 (no3).

Coloco para rodar no nó principal, e uso os nós 1, 2 e 3 para minerar.

Obrigado pela sua atenção.



Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: JayDDee on October 10, 2021, 12:47:42 PM
Hello.

Is it possible to run Cpuminer on all nodes of a cluster? I intend to set up a cluster to work, and I want to take advantage of mining.

First you should ask your boss if it's permitted, then the system administrator how to do it.


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: ThinkBeyondRich on October 10, 2021, 10:39:25 PM
Hello.

Is it possible to run Cpuminer on all nodes of a cluster? I intend to set up a cluster to work, and I want to take advantage of mining.


Hello.

Is it possible to run Cpuminer on all nodes of a cluster? I intend to set up a cluster to work, and I want to take advantage of mining.

First you should ask your boss if it's permitted, then the system administrator how to do it.




I don't think he said "at" work. He said "to" work.


Title: Re: [ANN] cpuminer-opt v3.18.0, open source optimized multi-algo CPU miner
Post by: JayDDee on October 11, 2021, 01:41:03 AM

I don't think he said "at" work. He said "to" work.

Where else would you find a cluster? The point being it's a cluster issue, not an application issue.
If the application needs to be modified to run in a cluster, too bad.


Title: Re: [ANN] cpuminer-opt v3.18.1, open source optimized multi-algo CPU miner
Post by: JayDDee on October 11, 2021, 03:31:46 AM
cpuminer-opt-3.18.1

More speed for scrypt:
 - additional scryptn2 optimizations for all CPU architectures,
 - AVX2 is now used by default on CPUS with SHA but not AVX512,
 - scrypt:1024 performance lost in v3.18.0 is restored,
 - AVX512 & AVX2 improvements to scrypt:1024.

Big speedup for SwiFFTx AVX2 & SSE4.1: x22i +55%, x25x +22%.

Issue #337: fixed a problem that could display negative stats values in the
first summary report if the report was forced prematurely due to a stratum
diff change. The stats will still be invalid but should display zeros.


Although, in my testing on a i5-2400, scryptn2 AVX is faster than v3.18.0 it's still slower than 3.17.1.
I have no idea why. It uses essentially the same code for AVX512, AVX2, AVX & SSE4.2. When I do a
benchmark on a bigger newer CPU there is not a significant drop from AVX2 to AVX, in fact less than
the lost AVX performance from v3.17.1 to v3.18.0. I can't explain this.

If any users have AVX CPUs it would be appreciated if you could run a quick test to either confirm or
contradict by results. Either way would be a step forward to understanding this mystery.


Title: Re: [ANN] cpuminer-opt v3.18.2, open source optimized multi-algo CPU miner
Post by: JayDDee on November 09, 2021, 08:04:19 PM
Here's an arcticle about enabling AVX512 [& VAES] on Alderlake CPUs running Linux.
Unfortunately there were no details about compiling. "Official" Alderlake should
be compatible with, ironically, Zen1. With AVX512 [& VAES] it should be compatible with
Rocketlake [Icelake].

https://www.phoronix.com/scan.php?page=article&item=alder-lake-avx512&num=1

In a seperate arcticle it was mentioned that Intel has yet to supply Thread Director patches
for the Linux kernel.

Any sharing of user experience with Alderlake would be appreciated.

"Tom" also did a comparison test of the top end Alderlake with Ryzen 5900x & 5950X. Although Alderlake
won overall in Gaming performance using Win11 with Alderlake optimizations, Ryzen had better multithreaded
performance using less power.

Edit: corrected for VAES which is also available but not mentioned in the arcticle.


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: JayDDee on November 11, 2021, 02:40:02 AM
cpuminer-opt-3.19.0

Note: updated Windows binaries for CPUs with AVX or SSE* due to problems with CPU groups.
These builds have affinity limited to 64 CPUs but may still work with XP.

---

Windows binaries [for CPUs with AVX2 and above] are now built with support for CPU groups, requires Windows 7.

Changes to cpu-affinity:
  - PR#346: Fixed incorrect CPU affinity on Windows built for CPU groups,
  - added support for CPU affinity for up to 256 threads or CPUs, [AVX2 and above]
  - streamlined code for more efficient initialization of miner threads,
  - precise affining of each miner thread to a specific CPU,
  - added an option to disable CPU affinity with "--cpu-affinity 0"

Faster sha256t with AVX512 & AVX2.

Added stratum error count to stats log, reported only when non-zero.


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: tomganleylee on November 14, 2021, 09:32:55 PM
So i am having some issues trying to get one of my machines minning.

System:
OS: Windows server 2016
CPU: 5800x

I keep getting this error:

Prepared for Windows - NTver: 0x601
CPU: AMD Ryzen 7 5800X 8-Core Processor
SW built on Nov 10 2021 with GCC 10.0.0
CPU features:  AVX2    AES
SW features:   AVX2   VAES SHA
Algo features: AVX2   VAES
The SW build requires a CPU with VAES!

anyon have any idea whats wrong, i have 5800x and 5900x working fine on other machines

Thanks in advance


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: JayDDee on November 14, 2021, 09:48:45 PM
So i am having some issues trying to get one of my machines minning.

That's someone else's fork, can't help you.


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: rambetiko on November 14, 2021, 10:56:30 PM
what is EPYC performance? i have 2 pcs  7F52 and 2 pcs 7F32


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: JayDDee on November 14, 2021, 11:11:22 PM
what is EPYC performance? i have 2 pcs  7F52 and 2 pcs 7F32

https://openbenchmarking.org/test/pts/cpuminer-opt-1.4.0


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: Cryptomining2003 on November 17, 2021, 06:06:22 PM
question for RTM setup:

whats the impact of ram for the rtm hashrate?

more mhz is as important as low latency or more important or is latency more important?


3600 better than 2666, sure
cl13 better than cl16, sure, but what about:

3600 cl16 vs 2666 cl13 e.g

so whats more important, mhz or latency? big impact on price :(

cpu is ryzen 9 5900


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: JayDDee on November 18, 2021, 05:19:50 PM
question for RTM setup:

Wrong place, no RTM support here.


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: DRFTA on November 19, 2021, 06:24:31 AM
Just Loaded up your miner on three of my pc's with the default tuning taking around 2 hours on a Ryzan 5 3600 and a I7 7700k.
My 3960x Threadripper took 8 hours to get through the default tune.... I'm assuming because it has 48 threads and not 12 like the AMD 3600 its taking 4x longer?
or am I missing something that's not quite right?

Thanks!   


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: Cryptomining2003 on November 19, 2021, 07:07:49 AM
question for RTM setup:

Wrong place, no RTM support here.

where s the right place?


Title: Re: [ANN] cpuminer-opt v3.19.0, open source optimized multi-algo CPU miner
Post by: JayDDee on November 19, 2021, 05:50:14 PM
where s the right place?

From wherever you got the miner, it's not mine.


Title: Re: [ANN] cpuminer-opt v3.19.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 20, 2021, 05:51:19 AM
New in v3.19.1

Changes to Windows binaries package:
 - builds for CPUs with AVX or lower have CPU groups disabled,
 - zen3 build renamed to avx2-sha-vaes to support Alderlake as well as Zen3,
 - zen build renamed to avx2-sha, supports Zen1 & Zen2,
 - avx512-sha build removed, Rocketlake CPUs can use avx512-sha-vaes,
 - see README.txt for compatibility details.

Fixed a few compiler warnings that are new in GCC 11.
Other minor fixes.


Title: Re: [ANN] cpuminer-opt v3.19.1, open source optimized multi-algo CPU miner
Post by: robminer80 on November 20, 2021, 09:58:49 AM
Which argon2 algo should I select to mine TRTL (argon2/chukwav2)?


Title: Re: [ANN] cpuminer-opt v3.19.1, open source optimized multi-algo CPU miner
Post by: JayDDee on November 20, 2021, 11:36:54 PM
Which argon2 algo should I select to mine TRTL (argon2/chukwav2)?

cpuminer-opt doesn't support that variation of argon2, you need a different miner.


Title: Re: [ANN] cpuminer-opt v3.19.1, open source optimized multi-algo CPU miner
Post by: robminer80 on November 21, 2021, 05:30:34 PM
Which argon2 algo should I select to mine TRTL (argon2/chukwav2)?

cpuminer-opt doesn't support that variation of argon2, you need a different miner.

No plans for future support?


Title: Re: [ANN] cpuminer-opt v3.19.1, open source optimized multi-algo CPU miner
Post by: msduzaman on December 02, 2021, 06:18:52 PM
Will you please add cn/rwz algo :)Please


Title: Re: [ANN] cpuminer-opt v3.19.2, open source optimized multi-algo CPU miner
Post by: SecureFreak on December 30, 2021, 11:14:01 PM
I have a 5900x mining QOGE but can't seem to get it to use axv2-sha-vaes. It always starts with SSE2 SHA. What am I missing?

https://imgur.com/a/vwMWtiq


Title: Re: [ANN] cpuminer-opt v3.19.2, open source optimized multi-algo CPU miner
Post by: JayDDee on December 31, 2021, 01:06:31 PM
I have a 5900x mining QOGE but can't seem to get it to use axv2-sha-vaes. It always starts with SSE2 SHA. What am I missing?

The algorithm is limited to SSE2, note "algo features".


Title: Re: [ANN] cpuminer-opt v3.19.2, open source optimized multi-algo CPU miner
Post by: alltero on January 01, 2022, 05:32:43 PM
I have a 5900x mining QOGE but can't seem to get it to use axv2-sha-vaes. It always starts with SSE2 SHA. What am I missing?

The algorithm is limited to SSE2, note "algo features".

Hello
cpuminer-opt 3.19.2  will work for  Intel XEON E5 2696V3 ?


Title: Re: [ANN] cpuminer-opt v3.19.2, open source optimized multi-algo CPU miner
Post by: JayDDee on January 01, 2022, 06:28:55 PM
Hello
cpuminer-opt 3.19.2  will work for  Intel XEON E5 2696V3 ?

Yes, it's based on the Haswell architecture so use the avx2 build.


Title: Re: [ANN] cpuminer-opt v3.19.2, open source optimized multi-algo CPU miner
Post by: alltero on January 02, 2022, 10:28:00 AM
Hello
cpuminer-opt 3.19.2  will work for  Intel XEON E5 2696V3 ?

Yes, it's based on the Haswell architecture so use the avx2 build.

Thanks for the answer
You
  had
  cpuminer-avx2.exe  in   folder manners 3.19.2 ?

 screen -> https://www.screencast.com/t/99K0H51sEPsR
   or just press start file.bat ??


Title: Re: [ANN] cpuminer-opt v3.19.2, open source optimized multi-algo CPU miner
Post by: JayDDee on January 05, 2022, 03:37:15 PM
   or just press start file.bat ??

Use the command line.

https://github.com/JayDDee/cpuminer-opt/wiki/Using-cpuminer-opt


Title: Re: [ANN] cpuminer-opt v3.19.2, open source optimized multi-algo CPU miner
Post by: alltero on January 06, 2022, 07:46:03 AM
   or just press start file.bat ??

Use the command line.

https://github.com/JayDDee/cpuminer-opt/wiki/Using-cpuminer-opt

thanks for  help !


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: JayDDee on January 07, 2022, 05:32:09 PM
cpuminer-opt-3.19.3

Linux: Faster verthash (+25%), scryptn2 (+2%) when huge pages are available.
Small speed up for Hamsi AVX2 & AVX512, Keccak AVX512.

Download links are in the first post of this thread, verify links before clicking on them.

Additional notes about huge pages:

Huge pages is an advanced OS feature that has pros and cons. Users should be familiar with the
issues before enabling huge pages at the OS level. Reserving too many huge pages can destabilize
the system.

cpuminer-opt will automatically use 2 MB huge pages on Linux for Verthash and Scryptn2 if they are
available. The miner does not reserve huge pages, it will only use what has been reserved by the OS.
There is no need to run the miner as root to use huge pages.

Confirmation of huge page use can be done in 2 ways: cpuminer logging which may
require --debug, or by using the proc file system to monitor huge page usage system wide.

Code:
cat /proc/meminfo | grep Huge

Huge pages are not supported on Windows at this time.


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: alltero on January 07, 2022, 05:47:42 PM
cpuminer-opt-3.19.3

Linux: Faster verthash (+25%), scryptn2 (+2%) when huge pages are available.
Small speed up for Hamsi AVX2 & AVX512, Keccak AVX512.

Download links are in the first post of this thread, verify links before clicking on them.

........

Hello JayDDee
verushash algorithm (Verus , Ticker : VRSC )  will be supported in  future?


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: sgaubatz on January 13, 2022, 01:04:22 AM
I am running 2 CPUs on a Windows. My OS is Ubuntu. Where is the download?
Thank you,
Stacey


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: JayDDee on January 13, 2022, 02:19:09 AM
cpuminer-opt-3.19.4

git issue #359: Fix verthash memory allocation for non-hugepages, broken in v3.19.3.

New option stratum-keepalive prevents stratum timeouts when no shares are
submitted for several minutes due to high difficulty.

Fixed a bug displaying optimizations for some algos.

As usual the download links are in the first post of this thread.



Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: alltero on January 13, 2022, 12:10:26 PM
I am running 2 CPUs on a Windows. My OS is Ubuntu. Where is the download?
Thank you,
Stacey

you can download here
valid links are in the FIRST POST

Inside the miner there is file  README.txt ,
Read it - it describes your question...


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: JayDDee on January 13, 2022, 01:08:11 PM
you can download here

[link deleted]

Inside the miner there is file  README.txt ,
Read it - it describes your question...

Please don't post links like that. There is too much malware around.
The only valid links are in the FIRST POST, like I've said many times.


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: alltero on January 13, 2022, 02:24:49 PM
you can download here

[link deleted]

Inside the miner there is file  README.txt ,
Read it - it describes your question...

Please don't post links like that. There is too much malware around.
The only valid links are in the FIRST POST, like I've said many times.
OK ! edited   message
This link  from the first post...


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: JayDDee on January 13, 2022, 04:43:43 PM
OK ! edited   message

Thanks. There's too much phishing going on. I don't want to make it too easy for newbies to get caught.


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: frozen80 on January 13, 2022, 08:46:38 PM
I tried to compile in Windows 10(MinGW64) with [gcc version 11.2.0 (Rev5, Built by MSYS2 project)].
Using the default
Code:
CFLAGS="-O3 -march=native -maes -Wall"
I get the following error on file algo/jh/sph_jh.c.
Code:
gcc -DHAVE_CONFIG_H -I.  -Iyes/include -fno-strict-aliasing  -I. -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast  -Wl,--stack,10485760 -Icompat/pthreads -O3 -march=native -maes -Wall  -Iyes/include -MT algo/jh/cpuminer-sph_jh.o -MD -MP -MF algo/jh/.deps/cpuminer-sph_jh.Tpo -c -o algo/jh/cpuminer-sph_jh.o `test -f 'algo/jh/sph_jh.c' || echo './'`algo/jh/sph_jh.c
make[2]: *** [Makefile:3963: algo/jh/cpuminer-sph_jh.o] Error 1
Same error occurs with -O2.

Changing optimization level to -O1 solved the problem and it compiled successfully.
Code:
$ ./cpuminer.exe --version

         **********  cpuminer-opt 3.19.4  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: AMD Ryzen 5 1600 Six-Core Processor
SW built on Jan 13 2022 with GCC 11.2.0
CPU features:  AVX2    AES SHA
SW features:   AVX2    AES SHA


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: JayDDee on January 13, 2022, 09:47:02 PM
I tried to compile in Windows 10(MinGW64) with [gcc version 11.2.0 (Rev5, Built by MSYS2 project)].

Changing optimization level to -O1 solved the problem and it compiled successfully.

I never got mingw/msys2 working from a Windows host but if you've gotten this far it's worth pursuing.
If you have git an issue would be appropriate for tracking.

It compiles ok with gcc 11.2.0 on Ubuntu-21.10 but I don't have mingw setup for that. I currently use gcc 9.3.0
in Ubuntu 20.04 to build the Windows binaries as documentd on the Wiki.

It's odd that it would compile depending on compiler optimizations, also that it's old code.
If I can identify what code is causing it  there might be a better way to write it even if the bug isn't obvious.
Since it compiles with -O1, unless there's a switch that turns a -O1 warning into a -O2 error, there could also
be a compiler bug.
  [Not likely]

Edit: sph_jh doesn't include any Windows compatibility code so mingw compiles the same source code as Linux.

Edit: Not needed anymore:
The error you posted wasn't very useful, it only identified the file, not the line. Are there earlier errors with more info?
Relevant warnings, if any, from the -O1 compile might also be useful in figuring out why this switch makes a difference.


If you can document your procedure I'm sure a lot of people would be grateful, including me. The current procedure
using a full Linux installation, VM or separate PC, is quite cumbersome.


Update:

I got msys2 installed and was able to get to the same point as you.

The good news is if the compiler can get past sph_jh.c it will compile successfully. I haven't tried running it yet.
The bad news is 5 lines of code need to be commented out:

Code:
#define Sb(x0, x1, x2, x3, c)   do { \
      x3 = ~x3; \
      x0 ^= (c) & ~x2; \
      tmp = (c) ^ (x0 & x1); \
/*      x0 ^= x2 & x3; */  \
/*      x3 ^= ~x1 & x2; */  \
      x1 ^= x0 & x2; \
/*      x2 ^= x0 & ~x3; */  \
/*      x0 ^= x1 | x3; */  \
/*      x3 ^= x1 & x2; */  \
      x1 ^= tmp & x0; \
      x2 ^= tmp; \
   } while (0)

This compiles but if any one line is uncommented it will fail.
I have no idea what the problem is.

The code is very old and stable and hasn't had any problems before.
GCC 11.2 works on Ubuntu-21.10 native and mingw.
It works with msys2 with -O1 but not -O3.
The compiler can't provide a reason for the error.
The main difference between the Ubuntu mingw and Windows mingw, other than the OS itself, is msys2.

I can't make sense of this, could be a compiler bug, msys2 bug, some incompatibility?

I couldn't find another version of GCC in the package repo but maybe an older version of msys2 might
not have this bug.

It's still a lot farther than I've gotten before with msys2.

Update2:

It appears the compiled cpuminer.exe will only run from the msys2 environment. There are 4 missing dll's when running
directly from Windows, some are built by hand for the existing Windows package which means the same would have to be done
to make the msys2 build portable. So it doesn't look suitable for portability, maybe just for Windows geeks that want to compile
themselves.

Assuming the compile issue can be solved, there is the question of performance. There's no point in testing
performance with different compiler optimizations or butchered code. Using cygwin the perfomance is lower
than the current mingw build package. I believe msys2 uses some components from cygwin so it may also be slower.


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: frozen80 on January 14, 2022, 01:26:58 PM
You were right, it is a compiler bug!
The problem is a flag in -O2 level that is -ftree-vrp and the default values of its parameters.

We can keep -O3 and add --param=evrp-mode=legacy. From my understanding this param will instruct how the flag -ftree-vrp will perform. The default value for this param is ranger:
Code:
--param=evrp-mode=[legacy|ranger|legacy-first|ranger-first] default is "ranger"
It works fine with:
Code:
CFLAGS="-O3 --param=evrp-mode=legacy -march=native -maes -Wall"
I found some info related to this issue here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103603 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103603)

Aside from this, you are right about the resulting binary. It's working only in msys2 environment. It might work outside msys2 too, if we provide the path to the DLLs files.
It's just another way of doing it, and if it's possible, why not!


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: JayDDee on January 14, 2022, 05:21:30 PM
You were right, it is a compiler bug!
The problem is a flag in -O2 level that is -ftree-vrp and the default values of its parameters.

We can keep -O3 and add --param=evrp-mode=legacy. From my understanding this param will instruct how the flag -ftree-vrp will perform. The default value for this param is ranger:
Code:
--param=evrp-mode=[legacy|ranger|legacy-first|ranger-first] default is "ranger"
It works fine with:
Code:
CFLAGS="-O3 --param=evrp-mode=legacy -march=native -maes -Wall"
I found some info related to this issue here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103603 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103603)

Aside from this, you are right about the resulting binary. It's working only in msys2 environment. It might work outside msys2 too, if we provide the path to the DLLs files.
It's just another way of doing it, and if it's possible, why not!

Confirmed. I did a quick performance test and it's equal to the existing Windows package. The test was done on a VM so
I'll have to try it on real HW.

I may have found a way to make portable https://stackoverflow.com/questions/6951938/libgmp-10-dll-is-missing.
All the dll's reported missing are there, but I haven't tried it yet. it's better than building them.

Edit:

I've updated the compile instructions for Windows on the Wiki. Give it a test run if you like and let me know of issues.

I suspect portability is still an issue with the MSYS2 build. Only 4 DLLs were missing on a system where
MSYS2 was installed, there may be others on a system without MSYS2.

Edit2:

I ran through the new procedure on an i7-6700K Win10 and had no problems. The executable ran in both the MSYS2 environment
and a Windows comand prompt with the environment variable set. It looks pretty solid.

I won't pursue using MSYS2 for the portable binaries package at this time. I'd still have to package dll's with it,  and I'd have to
setup a Windows virtual machine for package building. It would end up being more work for me. The existing Ubuntu based mingw
environment is already setup and very simple to use. When the time comes to upgrade my development system I may reconsider.

I'm also going to have to do a pass on fixing compiler warnings. GCC-11 is flagging a bunch of string overflows that should be addressed.


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: frozen80 on January 15, 2022, 10:23:33 AM
It worked perfectly on a fresh installation of MSYS2(latest build on their website).
I think users should be also informed to follow the instructions on the msys2 website to update the base packages and install some tools for compiling(just in case they overlook these three steps):
Code:
pacman -Syu
pacman -Su
pacman -S --needed base-devel mingw-w64-x86_64-toolchain


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: JayDDee on January 15, 2022, 02:38:31 PM
It worked perfectly on a fresh installation of MSYS2(latest build on their website).
I think users should be also informed to follow the instructions on the msys2 website to update the base packages and install some tools for compiling(just in case they overlook these three steps):
Code:
pacman -Syu
pacman -Su
pacman -S --needed base-devel mingw-w64-x86_64-toolchain

I'll have to think about that. Those steps are part of the installatin procedure, IMO, and I don't want to duplicate it.
There may be some ambiguity that installation means only running the installer file. I can clarify that to instruct to do the
the post-install setup up to the end except where it says to close the MSYS2 MSYS window.

How about something like?

Run the installer and perform the post intall setup to update the packages and install the mingw
toolchain. Leave the MSYS2 MSYS window open for further package installations in the next step.

Update: I've updated the instuctions, they should be clearer in what's involved in the MSYS2 installation procedure.
I also removed the option to compile without CPU groups. Since CPU groups are supported from Win7 and MSYS2
requires minimum Win7 there is no situation where it's not supported.


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: frozen80 on January 15, 2022, 08:04:13 PM
Sounds good enough  :)
Have a great weekend!


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: JayDDee on January 15, 2022, 08:07:35 PM
Sounds good enough  :)
Have a great weekend!

Back to you, thanks for the great help.


Title: Re: [ANN] cpuminer-opt v3.19.4, open source optimized multi-algo CPU miner
Post by: JayDDee on January 29, 2022, 09:32:53 PM
Check out my new open source nVidia GPU miner with X16RT.

https://bitcointalk.org/index.php?topic=5383533.0


Title: Re: [ANN] cpuminer-opt v3.19.5, open source optimized multi-algo CPU miner
Post by: JayDDee on January 31, 2022, 04:28:24 AM
cpuminer-opt-3.19.5 includes an enhanced stratum-keepalive feature to prevent lost shares.

TLDR stop here.

There really is no actual stratum-keepalive, it's a hack as described below. It doesn't really keep the
connection alive but it prevents the negative effects of the pool server timing out if no shares are
submitted for a long time.

CPU miners are challenged by pools that set a minimum difficulty too high for CPUs to find shares
regularly. After around 5 minutes with no shares submitted the pool will drop the connection but not
notify the miner. Often the miner detects the dropped connection only when submitting a share.
This results in a lost share and is noted in the summary log as stratum errors and share count mismatches.
Every mismatch in the counter represents a lost share. When shares are so rare this is a big loss.

The first stratum-keepalive was a futile attempt to send a harmless message to the server in the hope it would
prevent the timeout. It was also convenient that the protocol defines a specific method "mining.suggest-difficulty"
which perfectly suits the situation. Unfortunately this was not successful. Pools not only ignore the request for
lower difficulty it doesn't reset the's pool timeout either. In effect it's useless.

However, it will remain in case pools decide to support the method some time in the future.

The enhanced stratum-keepalive goes one step further, it will pre-emptively reset the stratum connection before
the pool times out and closes it. This will prevent the miner from sending a share over a dead connection. It also
eliminates wasted time hashing with a dead connection even if no share is found.

The suggest difficulty method is sent after 3 minutes with no shares submitted and the pre-emptive reset is done
after 4 minutes with still no shares submitted. Timing is not precise but the reset is usually done before 5 minutes.

The option is disabled by default and can be enabled with --stratum-keepalive. There should be no harm in using
even if timeouts aren't a problem.

Here's a sample of it in action:

Code:
[2022-01-30 22:41:54] New Block 1373920, Net diff 0.00082473, Job 2ae5
                      Diff: Net 0.00082473, Stratum 0.05, Target 7.6294e-07
                      TTF @ 50.73 h/s: Block 19h23m, Share 1m04s
                      Net hash rate (est) 60.04 kh/s
[2022-01-30 22:42:14] Stratum keepalive requesting lower difficulty
[2022-01-30 22:42:14] New Block 1373921, Net diff 0.00082874, Job 2ae6
                      Diff: Net 0.00082874, Stratum 0.05, Target 7.6294e-07
                      TTF @ 48.44 h/s: Block 20h24m, Share 1m07s
                      Net hash rate (est) 60.33 kh/s
[2022-01-30 22:43:18] No shares submitted, resetting stratum connection
[2022-01-30 22:43:18] Stratum connection reset
[2022-01-30 22:43:18] Stratum extranonce1= 810dff03, extranonce2 size= 4
[2022-01-30 22:43:18] Stratum connection established


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: The Sceptical Chymist on March 19, 2022, 07:20:13 AM
Please don't post links like that. There is too much malware around.
The only valid links are in the FIRST POST, like I've said many times.
I just stumbled across your cpuminer-opt program today and incidentally when I was Googling it I found this thread.  Just want to say it's nice to see the developer keeping his thread updated and on the straight and narrow.

Over the last year I've gotten interested in computers to the point of obsession, and that was after years of being into cryptocurrency.  That led me to learn about CPUs, which in turn led me to CPU mining--hence the reason why I'm writing this.  I downloaded cpuminer-opt and started running it on a mini PC that I have in another room, and right now it's tuning.  We'll see how much RTM I can mine.  It's not exactly my favorite CPU-minable coin but I'm having fun and it's certainly a learning experience.  Thanks for that!


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: alucard20724 on March 19, 2022, 12:13:41 PM
Please don't post links like that. There is too much malware around.
The only valid links are in the FIRST POST, like I've said many times.
I just stumbled across your cpuminer-opt program today and incidentally when I was Googling it I found this thread.  Just want to say it's nice to see the developer keeping his thread updated and on the straight and narrow.

Over the last year I've gotten interested in computers to the point of obsession, and that was after years of being into cryptocurrency.  That led me to learn about CPUs, which in turn led me to CPU mining--hence the reason why I'm writing this.  I downloaded cpuminer-opt and started running it on a mini PC that I have in another room, and right now it's tuning.  We'll see how much RTM I can mine.  It's not exactly my favorite CPU-minable coin but I'm having fun and it's certainly a learning experience.  Thanks for that!

except this doesn't do RTM ,i.e. raptoreum , i.e. ghosterider.

you might have one of the forks from this one, where they did raptoreum.  there are a lot of forks out there where someone forked cpuminer to make enhancements on one algo.


Title: Re: [ANN] cpuminer-opt v3.19.3, open source optimized multi-algo CPU miner
Post by: The Sceptical Chymist on March 19, 2022, 12:32:34 PM
except this doesn't do RTM ,i.e. raptoreum , i.e. ghosterider.
Oh my lord....I must have had way too many txt documents up all at once, because I ended up successfully creating the cpu miner that I think is Wyvern or whatever Raptoreum has up on their website.  I had the READ ME of cpuminer-opt up and I was trying to figure that one out as well, so obviously my brain is a wee bit addled.  I just took a look and it does say right there in the READ ME doc that the gr algo isn't supported anymore.

The miner that's the object of this thread (cpuminer-opt) looks much more interesting now that I've begun to understand the workings of it.  I'll let the RTM miner run a little longer then try the other.  Thanks for catching my boo-boo.  I still give mucho props to JayDDee; that wasn't a mistake.


Title: Re: [ANN] cpuminer-opt v3.19.6, open source optimized multi-algo CPU miner
Post by: JayDDee on March 19, 2022, 01:54:58 PM
One of my goals was to make the miner somewhat modular to make it easier to add (or remove) algos.
Unfortunately it doesn't work with most of the newer miners/algos that use cmake & c++.
Also with most new coins choosing new unique algos the work to support new coins has increased.

As a result those new coins that can use the cpuminer mining architecture fork the miner to build their own.
My only disappointment with that approach is those who take open source code, close it, then charge a fee.

Thanks for the kind words.


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: stavrosg on April 15, 2022, 09:36:47 AM
Hello, is there any documentation on how to use the tool? Which coins and pools are supported? Tried with binance but no success


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: Lafu on April 15, 2022, 09:57:04 AM
Hello, is there any documentation on how to use the tool? Which coins and pools are supported? Tried with binance but no success
You will find all the needed Info here on the Github page  : https://github.com/JayDDee/cpuminer-opt (https://github.com/JayDDee/cpuminer-opt)

Specialy here and read all things : https://github.com/JayDDee/cpuminer-opt#requirements (https://github.com/JayDDee/cpuminer-opt#requirements)
Supported Algos : https://github.com/JayDDee/cpuminer-opt#supported-algorithms (https://github.com/JayDDee/cpuminer-opt#supported-algorithms)
But you should be also find all this Information on the first post in this Thread here.


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: JayDDee on April 15, 2022, 03:45:58 PM
Hello, is there any documentation on how to use the tool? Which coins and pools are supported? Tried with binance but no success

Based on your question in the Pooler thread it seems you're using it correctly but the mining difficulty is
too high to find any shares. Choose an algorithm/coin that is more suitable for CPU mining.


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: iGodPro on April 24, 2022, 01:47:03 AM
Hi, could you support to add  XDAG ?
XDAG is the first mineable DAG.
It is CPU mining , RandomX Algo.

XDAG's WEB:
xdag.io

Github:
https://github.com/XDagger

BitcoinTalk:
https://bitcointalk.org/index.php?topic=2552368.0


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: JayDDee on April 24, 2022, 07:15:43 PM
cpuminer-opt doesn't support RandomX or any variants, xmrig does.


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: guytechie on May 03, 2022, 07:37:23 PM
Is stratum+ssl still not well supported?  Doesn't seem to work with zergpool


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: JayDDee on May 03, 2022, 07:51:50 PM
Is stratum+ssl still not well supported?  Doesn't seem to work with zergpool

I don't think Zergpool supports it. I'm not aware of many pools that do.


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: alucard20724 on May 04, 2022, 04:29:00 AM
Is stratum+ssl still not well supported?  Doesn't seem to work with zergpool

I don't think Zergpool supports it. I'm not aware of many pools that do.

on their front page says they do.  

-o stratum+ssl://<ALGO>.mine.zergpool.com:<PORT> -u <WALLET_ADDRESS> [-p <OPTIONS>]
though it might not be working and the pool operator doesn't know it.

you have a better chance of finding out on their discord.
https://discord.com/channels/407610160580657164/412146651185020938

a message from march 29, 2022 on the discord channel
!pinpin [zergpool.com] — 03/29/2022
Happy to announce that we are adding TLS/SSL support also for all mining ports. All regular mining ports have its sibling now, which starts with 1. As example for sha256, TLS/SSL mining port is 13333. Happy mining, and please report if some of ports does not work for you in TLS mode. @everyone


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: JayDDee on May 04, 2022, 05:46:01 AM
on their front page says they do.  

-o stratum+ssl://<ALGO>.mine.zergpool.com:<PORT> -u <WALLET_ADDRESS> [-p <OPTIONS>]

Thanks, I didn't scroll down far enough.

I tried it with stratum+tcps and it worked. I can add parsing for stratum+ssl as a cli convenience
but I have no releases planned at this time.


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: guytechie on May 05, 2022, 03:34:04 PM
on their front page says they do.  

-o stratum+ssl://<ALGO>.mine.zergpool.com:<PORT> -u <WALLET_ADDRESS> [-p <OPTIONS>]

Thanks, I didn't scroll down far enough.

I tried it with stratum+tcps and it worked. I can add parsing for stratum+ssl as a cli convenience
but I have no releases planned at this time.

that worked for me, thanks.  If you can add parsing for stratum+ssl that'll work. If you don't at least add an explaination to use tcps instead of ssl in the pool URL.  I don't know if other pools use "stratum+ssl" rather than "stratum+tcps" in their guides.


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: JayDDee on May 05, 2022, 04:42:57 PM
It will be in the next release, I just don't know when. In the meantime I posted a note in the Zergpool thread
and opened a git issue to document the workaround.



Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: minerja on May 14, 2022, 12:43:43 PM
Hi JayDDee,

Any chance you can re-introduce scryptjane  into your next release.
I'm stuck using 3.11.0 (scryptjane:20), and would love to see if the newer optimizations make a difference on Zen3. The extra L3 cache seems to make a small diff in all the newer miners.

Thanks
J


Title: Re: [ANN] cpuminer-opt v3.19.7, open source optimized multi-algo CPU miner
Post by: JayDDee on May 14, 2022, 01:25:25 PM
Hi JayDDee,

Any chance you can re-introduce scryptjane  into your next release.
I'm stuck using 3.11.0 (scryptjane:20), and would love to see if the newer optimizations make a difference on Zen3. The extra L3 cache seems to make a small diff in all the newer miners.

Thanks
J

SJ doesn't use the common Scrypt base code so it would not have benefitted from any optimzations to Scrypt.
 


Title: Re: [ANN] cpuminer-opt v3.19.8, open source optimized multi-algo CPU miner
Post by: scryptr on June 11, 2022, 11:12:10 PM
MINOTAURX --

The CPUminer-Opt docs say that the "minotaur" algo is supported.  Is there support for the "minotaurX" algo, or could it be added and optimized?

Currently, the "minotaurX" algo is rated high in profitability at ZergPool.

--scryptr


Title: Re: [ANN] cpuminer-opt v3.19.8, open source optimized multi-algo CPU miner
Post by: JayDDee on June 12, 2022, 03:13:36 AM
It's a long story why I didn't support minotaurx that has mostly to do with how quickly minotaur was abandoned by the same people
who asked me to support it, then asked me to support minotaurx. I'm no one's unpaid employee.

Minotaurx is essentially a slow X16R (like Hex) + Yespower yet it pays less per hash than Yespower alone so I don't get where this high
rating came from.


Title: Re: [ANN] cpuminer-opt v3.19.8, open source optimized multi-algo CPU miner
Post by: scryptr on June 12, 2022, 06:38:51 AM
MINOTAURX --

First, thank you for the rapid response.  MinotaurX is one of the top 5 in profitability at ZergPool.  As I type this, it is #2, with 3 coins being served. 

Check it out.  The code is already out there, you are the coder with assembly skills.

--scryptr


Title: Re: [ANN] cpuminer-opt v3.19.8, open source optimized multi-algo CPU miner
Post by: JayDDee on June 13, 2022, 04:05:16 PM
MinotaurX is one of the top 5 in profitability at ZergPool.  As I type this, it is #2, with 3 coins being served. 

Profitability is not realy the issue at this point, even if it could be sustained. The killer is yespower, when it's present it dominates
everything else. There's no point in optimizing the X16R part because it won't help the overall performance. Many of the X16R
optimizations can't be applied to this implementation anyway. There's also a unique GBT protocol change that would be difficult
to test.

I believe there are at least 2 optimized CPU miners that support minotaurx already. They likely already have any optimizations
I could add.

I'm simply not interested.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on September 28, 2022, 10:38:33 PM
@JayDDee

Has anyone benched any of the AMD 7000 series processors yet with cpuminer-opt?

I plan on picking up a 7950 or 7900 within the next couple of days.

Are there any results you want to see?


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: deedeeranged on September 28, 2022, 11:41:38 PM
@JayDDee

Has anyone benched any of the AMD 7000 series processors yet with cpuminer-opt?

I plan on picking up a 7950 or 7900 within the next couple of days.

Are there any results you want to see?

SOAT https://www.youtube.com/watch?v=DYD0X2_b_eg
Testing is done with xmrig.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on September 29, 2022, 12:26:40 AM
@JayDDee

Has anyone benched any of the AMD 7000 series processors yet with cpuminer-opt?

I plan on picking up a 7950 or 7900 within the next couple of days.

Are there any results you want to see?

Thanks for the offer. I hope to get one before the end of the year.

The big addition to 7000 is AVX512 but I haven't found any specifics about what AVX512 extensions are included. VNNI is the only one I've seen
mentioned because it's for AI and AI Is hot right now, but of no use in cpuminer-opt. I assume DQ, BW & VL are included to be compatible with the
Intel Skylake-AVX-512 I use as a baseline reference.

The first thing would be to confirm the AVX512-SHA-VAES Windows build works on Ryzen 7000, Also confirm build options for GCC
(Linux or Windows) becaue zen4 isn't supported as of GCC-12. I've added some notes to the Wiki: https://github.com/JayDDee/cpuminer-opt/wiki/Compiling-from-source

I have read that Ryzen's implementation of AVX512 is "double pumped" which I assume is the same as the AVX2 implementation from zen1.
This will limit the gains of using larger vectors as was the case with Zen1 AVX2. The reason given this time was to reduce the clock penalty of
using larger vectors. It would be interesting to compare with and without AVX512. In some cases AVX2 may be faster.

The cache is larger so cache dependant algos may support more threads before cache overflow starts reducing performance.

Also keep a close eye on temperatures, I have read that zen4 is difficult to cool.

Edit: additional request from a Linux user: cat /pro/cpuinfo to get the list of AVX512 extensions.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: deedeeranged on September 29, 2022, 08:51:14 AM
JayzTwoCents https://www.youtube.com/watch?v=tzm5pFq7ol0&t=909s has some thoughts on the temps.
Apparantly 95C is by design and it will not go over it.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on September 30, 2022, 03:48:52 AM
JayzTwoCents https://www.youtube.com/watch?v=tzm5pFq7ol0&t=909s has some thoughts on the temps.
Apparantly 95C is by design and it will not go over it.


They also raised the power limit. Including the gimped AVX512 it all seems fishy. Apparently the CPUs will throttle the clock to manage
temps the way laptops do. The advertised clock rates, a significant part of the hype, may not be achievable without a monster cooler.

I look forward to some real results.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: deedeeranged on September 30, 2022, 06:01:17 AM
JayzTwoCents https://www.youtube.com/watch?v=tzm5pFq7ol0&t=909s has some thoughts on the temps.
Apparantly 95C is by design and it will not go over it.


They also raised the power limit. Including the gimped AVX512 it all seems fishy. Apparently the CPUs will throttle the clock to manage
temps the way laptops do. The advertised clock rates, a significant part of the hype, may not be achievable without a monster cooler.

I look forward to some real results.

Or do something like what Optimum Tech did https://www.youtube.com/watch?v=FaOYYHNGlLs undervolting in an other way.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 01, 2022, 09:05:30 PM
@JayDDee

Has anyone benched any of the AMD 7000 series processors yet with cpuminer-opt?

I plan on picking up a 7950 or 7900 within the next couple of days.

Are there any results you want to see?

Thanks for the offer. I hope to get one before the end of the year.

The big addition to 7000 is AVX512 but I haven't found any specifics about what AVX512 extensions are included. VNNI is the only one I've seen
mentioned because it's for AI and AI Is hot right now, but of no use in cpuminer-opt. I assume DQ, BW & VL are included to be compatible with the
Intel Skylake-AVX-512 I use as a baseline reference.

The first thing would be to confirm the AVX512-SHA-VAES Windows build works on Ryzen 7000, Also confirm build options for GCC
(Linux or Windows) becaue zen4 isn't supported as of GCC-12. I've added some notes to the Wiki: https://github.com/JayDDee/cpuminer-opt/wiki/Compiling-from-source

I have read that Ryzen's implementation of AVX512 is "double pumped" which I assume is the same as the AVX2 implementation from zen1.
This will limit the gains of using larger vectors as was the case with Zen1 AVX2. The reason given this time was to reduce the clock penalty of
using larger vectors. It would be interesting to compare with and without AVX512. In some cases AVX2 may be faster.

The cache is larger so cache dependant algos may support more threads before cache overflow starts reducing performance.

Also keep a close eye on temperatures, I have read that zen4 is difficult to cool.

Edit: additional request from a Linux user: cat /pro/cpuinfo to get the list of AVX512 extensions.


I just started benchmarking... i plan on doing AVX2, AVX2-sha, AVX2-sha-vaes, AVX512, and AVX512-sha-vaes

The system is:  Win11 Pro 64bit
Case:   Lian Li 011 Dynamic Evo Mid-tower (with intake fans on bottom and exhaust fans on top with top mounted radiator)
CPU:    AMD 7950X (stock and custom watercooled with 360 radiator with fans in a push configuration on top case;  bitspower waterblock)
MB:     Asrock X670E Taichi MB,
RAM:   64GB(2x32) Crucial DDR5-4800,
HD:     Samsung 980PRO SSD (fan cooled),
GPU:    AMD W5700 Pro (blower fan, to exhaust out the back and it allows me to use the USB-C video out to hook up to the USB-C video in on monitor),
           AMD 6900X (will put on wb eventually)
PSU:    Corsair HX1200

Currently only CPU is on water loop.
idle cpu temps are 40C (in bios).. under load cpu is 85-95C (never goes over 95C.. exhaust temps of radiator with usb attached FLIR ONE is around 51C), and 151-190Watts, mostly @170W

I'll be benching against available algos on zergpool, zpool, and nicehash.

i'm running windows 11, so the /pro/cpuinfo is currently not doable... that i know of.



Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 01, 2022, 10:53:08 PM
i'm running windows 11, so the /pro/cpuinfo is currently not doable... that i know of.

CPU-Z will do it on Windows.

Nice setup!

Some algos of interest for performance testing:

myg-gr, groestl: heavy VAES, some AVX512
allium: heavy AVX512, some VAES
skein2, blake2b, keccak, sha256t: pure AVX512
SHA is not used much because parallel Nway is always faster.

myr-gr uses some AVX2 with the AVX512 build, Groestl is pure VAES+AVX512.
sha256d is also pure AVX512 but the AVX2 version uses Pooler ASM code so it can't be used for comparison.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 06, 2022, 03:51:09 AM
i'm running windows 11, so the /pro/cpuinfo is currently not doable... that i know of.

CPU-Z will do it on Windows.

Nice setup!

Some algos of interest for performance testing:

myg-gr, groestl: heavy VAES, some AVX512
allium: heavy AVX512, some VAES
skein2, blake2b, keccak, sha256t: pure AVX512
SHA is not used much because parallel Nway is always faster.

myr-gr uses some AVX2 with the AVX512 build, Groestl is pure VAES+AVX512.
sha256d is also pure AVX512 but the AVX2 version uses Pooler ASM code so it can't be used for comparison.

Here are the results.

https://imgur.com/a/YvaVUQa (https://imgur.com/a/YvaVUQa)


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 06, 2022, 03:28:57 PM

Here are the results.

https://imgur.com/a/YvaVUQa (https://imgur.com/a/YvaVUQa)

Interesting but it seems focussed on profiability which we all know is bad news. Most of those algos are a waste of time.
I was hoping for comparisons of AVX512 vs AVX2. Is that a 7950 or 7900? Some of the results are confusing.

avx512-sha-vaes build was not used on all algos, do you know why?

Can you provide the miner's startup messages showing the CPU features?

Edit: here's some data from my i9-9940x 14/28 core CPU for comparison of AVX512.

Code:
              9940x       79?0
keccak        248Mh/s    309Mh/s     25%
bmw512        336Mh/s    471Mh/s     40%
skein2        172Mh/s    256Mh/s     48%
blake2s       1.1Gh/s    1.6Gh/s     45%
average gain   42%


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 07, 2022, 05:46:47 AM

Here are the results.

https://imgur.com/a/YvaVUQa (https://imgur.com/a/YvaVUQa)

Interesting but it seems focussed on profiability which we all know is bad news. Most of those algos are a waste of time.
I was hoping for comparisons of AVX512 vs AVX2. Is that a 7950 or 7900? Some of the results are confusing.

avx512-sha-vaes build was not used on all algos, do you know why?

Can you provide the miner's startup messages showing the CPU features?

Edit: here's some data from my i9-9940x 14/24 core CPU for comparison of AVX512.

Code:
              9940x       79?0
keccak        248Mh/s    309Mh/s     25%
bmw512        336Mh/s    471Mh/s     40%
skein2        172Mh/s    256Mh/s     48%
blake2s       1.1Gh/s    1.6Gh/s     45%
average gain   42%

I can you a list it for just those two later.. it'd bed time


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: chrysophylax on October 15, 2022, 03:44:18 AM
@JayDDee

Has anyone benched any of the AMD 7000 series processors yet with cpuminer-opt?

I plan on picking up a 7950 or 7900 within the next couple of days.

Are there any results you want to see?

Thanks for the offer. I hope to get one before the end of the year.

The big addition to 7000 is AVX512 but I haven't found any specifics about what AVX512 extensions are included. VNNI is the only one I've seen
mentioned because it's for AI and AI Is hot right now, but of no use in cpuminer-opt. I assume DQ, BW & VL are included to be compatible with the
Intel Skylake-AVX-512 I use as a baseline reference.

The first thing would be to confirm the AVX512-SHA-VAES Windows build works on Ryzen 7000, Also confirm build options for GCC
(Linux or Windows) becaue zen4 isn't supported as of GCC-12. I've added some notes to the Wiki: https://github.com/JayDDee/cpuminer-opt/wiki/Compiling-from-source

I have read that Ryzen's implementation of AVX512 is "double pumped" which I assume is the same as the AVX2 implementation from zen1.
This will limit the gains of using larger vectors as was the case with Zen1 AVX2. The reason given this time was to reduce the clock penalty of
using larger vectors. It would be interesting to compare with and without AVX512. In some cases AVX2 may be faster.

The cache is larger so cache dependant algos may support more threads before cache overflow starts reducing performance.

Also keep a close eye on temperatures, I have read that zen4 is difficult to cool.

Edit: additional request from a Linux user: cat /pro/cpuinfo to get the list of AVX512 extensions.


Hi Mate ...

Let's chat!

Skype is good for Me - I would like to catch up as soon as you are available.

#crysx #cwi


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 16, 2022, 04:13:29 PM
Hi Mate ...

Let's chat!

Skype is good for Me - I would like to catch up as soon as you are available.

#crysx #cwi

No Skype here, just PM or email.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: chrysophylax on October 16, 2022, 05:12:36 PM
Hi Mate ...

Let's chat!

Skype is good for Me - I would like to catch up as soon as you are available.

#crysx #cwi

No Skype here, just PM or email.

OK Mate ...

This week :)

Hope You are well.

#crysx #cwi


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 16, 2022, 06:13:47 PM
OK Mate ...

This week :)

Hope You are well.

#crysx #cwi

All is well. cpuminer-opt development is winding down, running out of ideas. I have one more release coming with some new optimizations
and propagating existing optimizations to another algo or 2 that doesn't yet have ASICs. After that I don't know.

If you want to talk, send me an email or PM.

----------

Before the next release I'd still like some data for zen4 in case the builds need to be tweaked.


Title: Re: [ANN] cpuminer-opt v3.20.2, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 23, 2022, 03:50:55 PM
OK Mate ...

This week :)

Hope You are well.

#crysx #cwi

All is well. cpuminer-opt development is winding down, running out of ideas. I have one more release coming with some new optimizations
and propagating existing optimizations to another algo or 2 that doesn't yet have ASICs. After that I don't know.

If you want to talk, send me an email or PM.

----------

Before the next release I'd still like some data for zen4 in case the builds need to be tweaked.


Here's my 7950X with AVX2,AVX512, and AVX512-sha-vaes data.  also a shot from cpuz and core temp.  7950X settings are all stock... no overclocks.

https://imgur.com/a/YvaVUQa


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 23, 2022, 06:22:20 PM
Info about GCC support for znver4...

https://www.phoronix.com/news/AMD-Zen-4-Znver4-GCC-Enable

Quote
So what this amounts to at this point is getting -march=native working for Zen 4, honoring -march=znver4, and then over the Znver3 target just flipping on AVX512F, AVX512DQ, AVX512IFMA, AVX512CD, AVX512BW, AVX512VL, AVX512BF16, AVX512VBMI, AVX512VBMI2, GFNI, AVX512VNNI, AVX512BITALG, and AVX512VPOPCNTDQ.

The current advice for compiling is to use znver3 and add the AVX512 extensions manually. For the binary Windows builds avx512-sha-vaes will provide near optimum performance.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 25, 2022, 09:59:42 PM
Info about GCC support for znver4...

https://www.phoronix.com/news/AMD-Zen-4-Znver4-GCC-Enable

Quote
So what this amounts to at this point is getting -march=native working for Zen 4, honoring -march=znver4, and then over the Znver3 target just flipping on AVX512F, AVX512DQ, AVX512IFMA, AVX512CD, AVX512BW, AVX512VL, AVX512BF16, AVX512VBMI, AVX512VBMI2, GFNI, AVX512VNNI, AVX512BITALG, and AVX512VPOPCNTDQ.

The current advice for compiling is to use znver3 and add the AVX512 extensions manually. For the binary Windows builds avx512-sha-vaes will provide near optimum performance.

I like that the new a7XXX series cpu from AMD have igpu.
the one thing that i don't like about the new a7XXX series cpu is that you can't disable the igpu.  :o   not even in current bios. ???


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 25, 2022, 11:02:27 PM
I like that the new a7XXX series cpu from AMD have igpu.
the one thing that i don't like about the new a7XXX series cpu is that you can't disable the igpu.  :o   not even in current bios. ???

Changing the primary display adapter setting in the BIOS to external GPU might do it.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 26, 2022, 03:41:03 AM
I like that the new a7XXX series cpu from AMD have igpu.
the one thing that i don't like about the new a7XXX series cpu is that you can't disable the igpu.  :o   not even in current bios. ???

Changing the primary display adapter setting in the BIOS to external GPU might do it.

Asrock 670E  Steel legend that i have my 7700X doesn't have any options for display.
And neither does the Asrock 670E Taichi... maybe it's just an asrock thing.   I normally go with Asus boards.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: deedeeranged on October 26, 2022, 06:41:05 AM
I like that the new a7XXX series cpu from AMD have igpu.
the one thing that i don't like about the new a7XXX series cpu is that you can't disable the igpu.  :o   not even in current bios. ???

Changing the primary display adapter setting in the BIOS to external GPU might do it.

Asrock 670E  Steel legend that i have my 7700X doesn't have any options for display.
And neither does the Asrock 670E Taichi... maybe it's just an asrock thing.   I normally go with Asus boards.


It's not an ASRock thing. All suffer from the introduction of AM5 socket and chips. Keep an eye out for BIOS updates the next couple of months as they will come as it is a brand new platform.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 26, 2022, 11:39:57 AM
I like that the new a7XXX series cpu from AMD have igpu.
the one thing that i don't like about the new a7XXX series cpu is that you can't disable the igpu.  :o   not even in current bios. ???

Changing the primary display adapter setting in the BIOS to external GPU might do it.

Asrock 670E  Steel legend that i have my 7700X doesn't have any options for display.
And neither does the Asrock 670E Taichi... maybe it's just an asrock thing.   I normally go with Asus boards.


It's not an ASRock thing. All suffer from the introduction of AM5 socket and chips. Keep an eye out for BIOS updates the next couple of months as they will come as it is a brand new platform.


Asrock just released bios update (1.11) that now gives you the ability to boot from internal(igpu) or external display... but still no option to disable igpu


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 29, 2022, 02:00:56 AM
Asrock 670E  Steel legend that i have my 7700X doesn't have any options for display.
And neither does the Asrock 670E Taichi... maybe it's just an asrock thing.   I normally go with Asus boards.

It's not an ASRock thing. All suffer from the introduction of AM5 socket and chips. Keep an eye out for BIOS updates the next couple of months as they will come as it is a brand new platform.


Asrock just released bios update (1.11) that now gives you the ability to boot from internal(igpu) or external display... but still no option to disable igpu

Maybe power management got smarter and can detect if/when the iGPU is not being used. It shouldn't be difficult for zen4 CPUs because the
iGPU is only to "light up a display" according to AMD CEO. Just speculating.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 29, 2022, 02:21:59 AM
Asrock 670E  Steel legend that i have my 7700X doesn't have any options for display.
And neither does the Asrock 670E Taichi... maybe it's just an asrock thing.   I normally go with Asus boards.

It's not an ASRock thing. All suffer from the introduction of AM5 socket and chips. Keep an eye out for BIOS updates the next couple of months as they will come as it is a brand new platform.


Asrock just released bios update (1.11) that now gives you the ability to boot from internal(igpu) or external display... but still no option to disable igpu

Maybe power management got smarter and can detect if/when the iGPU is not being used. It shouldn't be difficult for zen4 CPUs because the
iGPU is only to "light up a display" according to AMD CEO. Just speculating.

no matter what i do, i can't get rid of it(igpu).  it always shows up in on afterburner and in devices.. disabled, and uninstalled... still pops up in ab and device manager.   it's like that itch that won't go away after a night of drinking and you wake up in a ditch with your pants around your ankles and you wonder how you got there..  :o :o


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: deedeeranged on October 29, 2022, 12:24:47 PM
Asrock 670E  Steel legend that i have my 7700X doesn't have any options for display.
And neither does the Asrock 670E Taichi... maybe it's just an asrock thing.   I normally go with Asus boards.

It's not an ASRock thing. All suffer from the introduction of AM5 socket and chips. Keep an eye out for BIOS updates the next couple of months as they will come as it is a brand new platform.


Asrock just released bios update (1.11) that now gives you the ability to boot from internal(igpu) or external display... but still no option to disable igpu

Maybe power management got smarter and can detect if/when the iGPU is not being used. It shouldn't be difficult for zen4 CPUs because the
iGPU is only to "light up a display" according to AMD CEO. Just speculating.

no matter what i do, i can't get rid of it(igpu).  it always shows up in on afterburner and in devices.. disabled, and uninstalled... still pops up in ab and device manager.   it's like that itch that won't go away after a night of drinking and you wake up in a ditch with your pants around your ankles and you wonder how you got there..  :o :o

Intel CPU with iGPU usually show the same behaviour. It uses the iGPU with an attached display and when it senses a dGPU with a display it will switch to that but you will probably still see the iGPU in device manager. This is from memory as I have not used and Intel for a long time.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: alucard20724 on October 29, 2022, 11:16:00 PM
Asrock 670E  Steel legend that i have my 7700X doesn't have any options for display.
And neither does the Asrock 670E Taichi... maybe it's just an asrock thing.   I normally go with Asus boards.

It's not an ASRock thing. All suffer from the introduction of AM5 socket and chips. Keep an eye out for BIOS updates the next couple of months as they will come as it is a brand new platform.


Asrock just released bios update (1.11) that now gives you the ability to boot from internal(igpu) or external display... but still no option to disable igpu

Maybe power management got smarter and can detect if/when the iGPU is not being used. It shouldn't be difficult for zen4 CPUs because the
iGPU is only to "light up a display" according to AMD CEO. Just speculating.

no matter what i do, i can't get rid of it(igpu).  it always shows up in on afterburner and in devices.. disabled, and uninstalled... still pops up in ab and device manager.   it's like that itch that won't go away after a night of drinking and you wake up in a ditch with your pants around your ankles and you wonder how you got there..  :o :o

Intel CPU with iGPU usually show the same behaviour. It uses the iGPU with an attached display and when it senses a dGPU with a display it will switch to that but you will probably still see the iGPU in device manager. This is from memory as I have not used and Intel for a long time.


I haven't had the same problem with intel... intel i can disable the igpu in the bios.  even with the 5x00 series amd igpu i can disable the igpu, just not with the 7xxx igpu.     one thing i've noticed with the amd 7xxx series igpu, is that if you have a discrete AMD gpu (6xxx/5xxx gpu) is that the igpu attaches itself to the discrete gpu and runs in a hybrid mode.   doesn't happen with nvidia disrete gpu, though the amd igpu will still show up on af and control panel.   I'm sure eventually AMD and the board manufacturers will allow me to disable it.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on November 06, 2022, 10:57:28 PM
The future of cpuminer-opt.

A number of things are converging that require some decisions to be made.

After 7 years I think I've squeezed about as much juice from cpuminer as I can. I have a couple more small optimisations so there will be,
at least, one more release.

Another factor is I'm planning to upgrade my main system, where I build the Windows binaries package. That means I will need to rebuild
the mingw environment for Ubuntu-22.04 from scratch or build a Ubuntu-20.04 VM and port the existing environment to it.
Without a plan for more development it's hard to get motivated to do the extra work. There is also now a more friendly way for Windows users
to compile their own, and with better tuning for their CPU.

cpuminer-opt's usefulness is diminishing fast, and falling further behind GPUs. CPUs can't provide large generational performance increases
that GPUs do. The crypto bear market isn't helping.

The mining environement has changed, a multi-algo miner is no longer feasible. Most new coins use their own custom algo now.
Most new miners are also written in C++ and use cmake so they are very difficult to integrate with the cpuminer architecture which is
written all in C and uses autoconf. There is also the bloating issue with trying to support many dissimilar algorithms.

I'm not sure what I'll do or when but it seems the end is in sight.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: chrysophylax on November 07, 2022, 09:06:12 AM
The future of cpuminer-opt.

A number of things are converging that require some decisions to be made.

After 7 years I think I've squeezed about as much juice from cpuminer as I can. I have a couple more small optimisations so there will be,
at least, one more release.

Another factor is I'm planning to upgrade my main system, where I build the Windows binaries package. That means I will need to rebuild
the mingw environment for Ubuntu-22.04 from scratch or build a Ubuntu-20.04 VM and port the existing environment to it.
Without a plan for more development it's hard to get motivated to do the extra work. There is also now a more friendly way for Windows users
to compile their own, and with better tuning for their CPU.

cpuminer-opt's usefulness is diminishing fast, and falling further behind GPUs. CPUs can't provide large generational performance increases
that GPUs do. The crypto bear market isn't helping.

The mining environement has changed, a multi-algo miner is no longer feasible. Most new coins use their own custom algo now.
Most new miners are also written in C++ and use cmake so they are very difficult to integrate with the cpuminer architecture which is
written all in C and uses autoconf. There is also the bloating issue with trying to support many dissimilar algorithms.

I'm not sure what I'll do or when but it seems the end is in sight.

Bring Your Experience ...

And Join us at CWI for our Developments in this area ;)

#crysx #cwi


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on November 22, 2022, 06:07:18 PM
I have seen increasing instances of cpuminer-opt source code being used as a decoy by other github users to give an appearance of
an open source cpu miner. The binary releases don't match the posted source code and could be infested with malware.

It seems ironic that in the worst mining market in years this would be a growing problem.

This new problem goes beyond the frequent practice of closing the source code to collect a fee, it's downright fraud. It misleads the user into
thinking they are downloading a binary built from open source.

As always stay alert. cpuminer-opt never needs to run with elevated priviledges, doing so with any untrusted miner exposes the system to attack.
Only use trusted software.



Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: sandy25007 on December 06, 2022, 03:43:17 PM
Hi All,

I am trying to understand working of bitcoin mining and going through the source code of cpuminer-opt. The source code is really helpful, Thanks!

I have a basic question, my understanding is that in a coinbase transaction miner adds Coinbase_reward + fees (total fees from all the transactions included in the block being mined).

I can see the cpu-miner.c code adding Coinbase_reward by taking coinbasevalue, but I could not find code for fees getting added. Can someone please point me to the code that does that?

Thanks & Regards,
Sandy

PS
Referring : https://github.com/JayDDee/cpuminer-opt/blob/master/cpu-miner.c


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on December 06, 2022, 04:54:00 PM
Hi All,

I am trying to understand working of bitcoin mining and going through the source code of cpuminer-opt. The source code is really helpful, Thanks!

I have a basic question, my understanding is that in a coinbase transaction miner adds Coinbase_reward + fees (total fees from all the transactions included in the block being mined).

I can see the cpu-miner.c code adding Coinbase_reward by taking coinbasevalue, but I could not find code for fees getting added. Can someone please point me to the code that does that?

Thanks & Regards,
Sandy

PS
Referring : https://github.com/JayDDee/cpuminer-opt/blob/master/cpu-miner.c

I think you're looking for the merkle tree but that's not my area of expertise. You might get better advice elsewhere.


Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: sandy25007 on December 07, 2022, 05:57:11 AM
Hi All,

I am trying to understand working of bitcoin mining and going through the source code of cpuminer-opt. The source code is really helpful, Thanks!

I have a basic question, my understanding is that in a coinbase transaction miner adds Coinbase_reward + fees (total fees from all the transactions included in the block being mined).

I can see the cpu-miner.c code adding Coinbase_reward by taking coinbasevalue, but I could not find code for fees getting added. Can someone please point me to the code that does that?

Thanks & Regards,
Sandy

PS
Referring : https://github.com/JayDDee/cpuminer-opt/blob/master/cpu-miner.c

I think you're looking for the merkle tree but that's not my area of expertise. You might get better advice elsewhere.


No, actually I am looking at coinbase transaction generation, code under section   /* build coinbase transaction */

Code:
      tmp = json_object_get( val, "coinbasevalue" );
      if ( !tmp || !json_is_number( tmp ) )
      {
         applog( LOG_ERR, "JSON invalid coinbasevalue" );
         goto out;
      }
      cbvalue = (int64_t) ( json_is_integer( tmp ) ? json_integer_value( tmp )
                                                   : json_number_value( tmp ) );

I feel it is missing the fees addition, below is the code I was expecting to compute and add fees.


      tmp = json_object_get( val, "coinbasevalue" );
      if ( !tmp || !json_is_number( tmp ) )
      {
         applog( LOG_ERR, "JSON invalid coinbasevalue" );
         goto out;
      }
      cbvalue = (int64_t) ( json_is_integer( tmp ) ? json_integer_value( tmp )
                                                   : json_number_value( tmp ) );

       /* add fee */
        int64_t total_fees=0;
        int64_t fee=0;

        for (i = 0; i < tx_count; i++) {
        const json_t *tx = json_array_get(txa, i);            
        tmp = json_object_get(tx, "fee");      
        if (!tmp || !json_is_number(tmp)) {
           applog(LOG_ERR, "JSON invalid Fee");
          goto out;
        }
      fee = json_is_integer(tmp) ? json_integer_value(tmp) : json_number_value(tmp);      
      total_fees = total_fees + fee;
       }

   cbvalue = cbvalue + total_fees;



Thanks & Regards,
Sandy



Title: Re: [ANN] cpuminer-opt v3.20.3, open source optimized multi-algo x86_64 CPU miner
Post by: hbouma on February 26, 2023, 04:05:13 PM
The future of cpuminer-opt.

A number of things are converging that require some decisions to be made.

After 7 years I think I've squeezed about as much juice from cpuminer as I can. I have a couple more small optimisations so there will be,
at least, one more release.

cpuminer-opt's usefulness is diminishing fast, and falling further behind GPUs. CPUs can't provide large generational performance increases
that GPUs do. The crypto bear market isn't helping.

I'm not sure what I'll do or when but it seems the end is in sight.

Just wanted to say thanks for writing this miner! Good luck with your future projects if this one remains on the backburner indefinitely.

Hal


Title: Re: [ANN] cpuminer-opt v3.22.2, open source optimized multi-algo x86_64 CPU miner
Post by: punkyshungry on April 25, 2023, 06:10:54 PM
I read this miner supports the Xeon Phi Coprossers? I was thinking about getting one, is this true?


Title: Re: [ANN] cpuminer-opt v3.22.2, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on April 25, 2023, 10:23:43 PM
I read this miner supports the Xeon Phi Coprossers? I was thinking about getting one, is this true?

Never supported.


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: WayneBunbury on July 08, 2023, 08:43:03 PM
dose it support all intel cpus  old and new ?


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on July 09, 2023, 04:38:37 AM
dose it support all intel cpus  old and new ?


Mostly yes, see the first post for details.


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on July 27, 2023, 12:56:56 AM
Intel has introduced AVX10 a converged vector ISA to replace AVX512.

TLDR: No, 512 bit vectors will not be supported on future Intel hybrid CPUs.

AVX10 essentially brings AVX512VL features to 256 & 128 bit vectors on E-cores. Features include: double the number of SIMD registers, mask registers to support
masking operations, bit rotation & ternary logic instructions will be implemented on E-cores but 512 bit wide vectors won't.

512 bit vectors (AVX10-512) will only exist on P-cores and only if no E-cores are present. Hybrid CPUs will use AVX10-256 on both E-cores and P-cores.

Version 1: AVX10.1-512, a rebranding of AVX512 with support for 512, 256 & 128 bit vectors, is scheduled to be included on Granite Rapids Xeon CPUs, P-core only, in 2024.
Version 2, AVX10.2-256 will come later and support 256 & 128 bit vectors is expected on Clearwater Forest Xeon E-cores in 2025.

AVX10-512 is binary compatible with AVX512 and software built for AVX512 should run fine on AVX10-512 CPUs.
AVX10-256 should be able to run software built for AVX2 but will not have the AVX512VL features. Recompiling for AVX10 will enable most features
but some source code tweaks may be needed to targeted code to get the best performance.

AVX10 is not backward compatible with existing CPUs, they must continue to use AVX512 or AVX2 software builds as appropriate.

AVX10 could be a non issue for AMD because Zen4 & Zen4c already support AVX512. A Zen based hybrid CPU, should AMD decide to build one, would have a
unified ISA so the P-cores wouldn't need to be gimped because of the E-cores. Zen4 is missing a couple of the latest AVX512 extensions that are to be included
in AVX10.1. Assuming those extensions are forthcoming future Zen CPU architectures will implicitly have AVX10.1-512 support using AVX512 flags without formally
supporting AVX10. There is no official word from AMD yet.

It looks like Intel is giving up on AVX512, future Xeon server CPUs appear to E-core based to increase thead count.

Intel also announced the APX extension, a significant improvement to the base X86_64 ISA by doubling the number of GPRs and supporting 3 operand instruction
encoding. Existing SSE* and AVX* instructions will also gain 3 op encoding. Intel didn't mention when APX would become available but coincident with AVX10
would be a reasonable assumption. No source code changes are required to take adavantage of this feature, recompiling with APX on an APX capable CPU is all
that is needed.

GCC support for AVX10 version 1 is expected in gcc-14 with support for the following:
  -march=graniterapids          includes "-mavx10.1-512"
  -mavx10.1                           default, same as "-mavx10.1-256"
  -mavx10.1-256                    AVX512 without 512 bit vectors, no supported CPUs until AVX10.2
  -mavx10.1-512                    equivalent of existing AVX512 superset



Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: andy2572192561 on August 22, 2023, 01:12:11 AM
This is the home of cpuminer-opt, the optimized x86_64 CPU miner.

Supporting over 90 agorithms with many optimized for x86_64 CPUs with the latest technologies:

Intel Haswell: AVX2
AMD Zen1: AVX2 and SHA
AMD Zen3, Intel Alderlake*: AVX2, SHA and VAES
Intel Skylake X: AVX512
AMD Zen4, Intel Rocketlake: AVX512, SHA, and VAES

Older 64 bit CPUs with SSE2 are also supported, see below for requirements.
*Alderlake and subsequent Intel desktop architectures are hybrid architecture with AVX512 disabled.
Intel has no current consumer desktop CPUs supporting AVX512.

Downloads

Source code and Windows binaries are avaiable for download. Windows binaries support CPUs up to 64 threads,
higher requires compiling from source with CPU group support, see Wiki for details.
Download only from the official JayDDee git repository.
There may be malware masquerading as cpuminer-opt, stay alert.
I no longer post links in new mesages and I don't post direct links to files. Any such links should be treated
with suspicion. The only valid download link is below and directs to a landing page that can be examined
for legitimacy before any files are downloaded.

Latest release including Windows binaries
https://github.com/JayDDee/cpuminer-opt/releases

Documentation
https://github.com/JayDDee/cpuminer-opt/wiki

List of supported algoritms
https://github.com/JayDDee/cpuminer-opt/wiki/Supported--Algorithms

Source code
https://github.com/JayDDee/cpuminer-opt

New in v3.22.3
Data interleaving and byte swap optimizations with AVX2, AVX512 & AVX512VBMI.
Faster Luffa with AVX2 & AVX512.
Other small optimizations.
Some code cleanup.

New in v3.22.2

Added sha512256d & sha256dt algos.
Fixed intermittant invalid shares lyra2v2 AVX512.
Removed application limits on the number of CPUs and threads, HW and OS limits still apply.
Added a log warning if more threads are defined than active CPUs in affinity mask.
Improved merkle tree memory management for stratum.
Added transaction count to New Work log.
Other small improvements.

New in v3.22.1

#393 fixed segfault in GBT, regression from v3.22.0.
More efficient 32 bit data interleaving.

New in v3.22.0

Stratum: faster netdiff calculation.
Merged a few updates from Pooler/cpuminer:
   Use CURLOPT_POSTFIELDS in json_rpc_call,
   Use CURLINFO_ACTIVESOCKET when supported,
   JSONRPC speedup,
   Speed up hex2bin function.
Small log improvements, notably more frequent hash rate reports.
Removed decred algo.

Full change log: https://github.com/JayDDee/cpuminer-opt/blob/master/RELEASE_NOTES

Requirements:

1. A x86_64 architecture CPU with a minimum of SSE2 support. This includes Intel Core2 and newer and AMD equivalents.
AES optimizations require a CPU with AES_NI including Intel Westmere and newer and AMD equivalents.
Further optimizations are available on some algorithms for CPUs with AVX (Sandybridge), AVX2 (Haswell, Zen1),
AVX512 (Rocketlake, Skylake-X, Zen4), SHA (Zen1, Rocketlake), and VAES (Zen3, Rocketlake).

32 bit Intel and AMD CPUs are not supported. Other architectures such as ARM, Raspberry Pi, RISC-V, etc, are not supported.
Mobile devices like lapotop computers are not recommended because they aren't designed for continuous full load.

2. 64 bit Linux OS. Debian and Fedora based distributions including Ubuntu, Mint, RHEL and clones are known to work and have all dependencies in their
repositories. Others may work but may require more effort.

Windows 7 or newer 64 bits is supported using the pre-compiled binaries package or may be compiled from source using MinGW.

FreeBSD is not actively tested but should work, YMMV.
Apple and Android operating systems are not supported.

Older CPUs, other architectures and operating systems may be supported by TPruvot's cpuminer-multi.

Security warning

Cryptocurrency miners often flagged as malware by antivirus programs. This is usually a false positive, they are flagged simply
because of what they are. However, some malware has been spread using the cover that miners are known to be subject to
false positives. Always be on alert. The source code of cpuminer-opt is open for anyone to inspect. If you don't trust the software
don't download it.

Some cryptographic code has been taken from trusted sources but has been modified for speed at the expense of accepted
security practices. This code should not be imported into applications where secure cryptography is required.

Errata:

Old algorithms that are rarely used or are too difficult to mine with a CPU will not get the latest optimizations.
Cryptonight and variants are no longer supported, use other miners.
Hodl requires a CPU with AES.

Donations

cpuminer-opt has no fees of any kind but donations are accepted.

BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT


Hello! Can you develop the Lyra2a40 algorithm for CPUminer opt?
github:https://github.com/blade-coder/apple/blob/main/src/hash.h


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on August 22, 2023, 05:10:16 PM
Hello! Can you develop the Lyra2a40 algorithm for CPUminer opt?
github:https://github.com/blade-coder/apple/blob/main/src/hash.h

There was no need to quote the entire first post, or any of it.

I don't see any potential for this algo. It isn't GPU or ASIC resistant as claimed. There's nothing new in the algo so all the pieces
for a GPU or ASIC miner already exist. I'm also not impressed with Apple coin based on their ANN thread here, seems like just another shitcoin.

I think I'll pass, rplant's CPU miner has it covered anyway.


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: andy2572192561 on August 22, 2023, 05:42:37 PM
你好!
植物池开发的cpuminer-opt,预测,rplant miner有扣块攻击问题?只有在他自己的矿池工作才正常,在其他矿池,发现区块的比例严重不正常,都竞争不过它。
所以我才给你发信息完善它,因为你的好用,优化的也更好,希望你能添加此算法。谢谢!


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: akrak on August 22, 2023, 05:47:30 PM
The rplant pool tool has abnormal block ratio in other mining pools.  hope  can add this algorithm


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on August 22, 2023, 07:01:51 PM
The rplant pool tool has abnormal block ratio in other mining pools.  hope  can add this algorithm

Thanks for the translation.

Rplant's cpuminer works in other pools for other algos so it might not be a problem with the miner.
I couldn't find any other pools with Applecoin/Lyra2a40.


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: andy2572192561 on August 22, 2023, 09:33:11 PM
https://anomp.cc/getting_started/apple?lang=en


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on August 23, 2023, 05:15:28 PM
https://anomp.cc/getting_started/apple?lang=en

Doesn't matter if there are one or two pools, it's still a shitcoin. Founders keep 5% of every mined block, they should provide a miner or pay
to develop one.


Title: Re: [ANN] cpuminer-opt v3.22.3, open source optimized multi-algo x86_64 CPU miner
Post by: akrak on August 25, 2023, 10:05:55 AM
Yes, we just want another optimizing hoe, just can't stand Rplant's hoe.
I'm just a joy miner


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on September 29, 2023, 12:29:43 AM
Some notes about upcoming CPU extensions and what they mean for cpuminer-opt

TLDR: nothing for at least a year.

SHA512: this is an enhancement to SHA that adds support for SHA-512. SHA512 is expected on Intel Lunar Lake & Arrow Lake CPUs in 2024.
AMD availability is unknown, Zen5 would be optimistic. GCC-13 is required to build with SHA512. SHA-512 is used by m7m, minotaurx as well
as the x16 and x17 series including hmq1725. Performance is expected to exceed AVX512 8 way parallel SHA512. SHA512 needs new code.

SM3 & SM4: SM3 was only used by a couple of short lived algos, SM4 is not used at all in crypto AFAIK. They are of no interest.

AVX10: is a complete redesign of the AVX architecture to replace AVX2 & AVX512. For CPUs with 512 bit vector support it means very little.
It's most significant impact is on CPU limited to 256 bit vectors. AVX10 adds support for AVX512 features & instructions limited to 256 bits (E-cores),
essentially it's AVX512VL without AVX512F. It will supported by GCC no earlier than GCC-14. AVX10, specifically AVX10-512 will first be avalable on
Intel Granite Rapids which will support 512 bit vector length so it's just a rebranding of AVX512. The first real benefit of AVX10 is AVX10-256 which
adds bit rotation, opmasks, and more vector registers. Availability of AVX10-256 has not been announced. AVX10 is not an issue for AMD as all
new CPUs support AVX512 already. Minor coding changes are required to support AVX10-256, AVX10-512 requires no code changes or rebuilding,
AVX512 build will work as is.

APX: this will help all non-vector code by doubling the number of general purpose registers and supporting 3 operand instruction encoding that will
eliminate the need for many register moves. Nothing is known about availability but it was announced by Intel at the same time as AVX10. APX will
also improve AMD CPU performance and are expected to adopt it. No coding changes are required, just rebuilding with a supported compiler.

The current system used to build the Windows binaries package will not support any of these new features because it's based on GCC-9. Providing Windows
binaries with the new features will require a new build environment with a supported compiler and OS.


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 07, 2023, 02:26:44 AM
Hold off on testing, it won't compile.

I have now have a Raspberry Pi so I have to work throuh the build issues. More news soon.

Looking for miners with ARM CPUs.

cpuminer-opt-3.23.4, source code only, has initial support for 64 bit AArch64 CPUs with NEON, SHA2 & AES.
It's experimental and untested. It needs testers. See Wiki for details...

https://github.com/JayDDee/cpuminer-opt/wiki/Support-for-AARCH64


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: scryptr on October 14, 2023, 10:29:07 PM
R-PI MAY BE CRIPPLED--

This is an old post from "oink70", who optimized Monkins' Verushash CCminer:

        "Oink70 (2 yr. ago on Reddit)

Mining Verus is impossible on any Raspberry device. The Raspberry company did not license all CPU instructions, so the required functions are not available on Raspberry branded devices.  As far as I know Raspberry is the only brand that crippled the CPU, so any other ARM device should work."

I picked up your recent interest in coding for ARM processors after reading the CryptoMining-Blog post on VerusCoin (VRSC) mining.  I have been able to compile XMrig and tpruvot's CPUminer-Multi on my R-pi.  The above CCminer packages (Monkins & Oink70) will not compile.

I am currently mining VerusCoin on a new Orange Pi 5.  Verushash and MinotaurX look like good targets for coding, if you are able to find the right functions.

Raspberry Pi 5 is scheduled to hit the market this month, I believe.  The CPU runs at 2.4 GHZ.

Hope to see some fresh code to match!       --scryptr

Hold off on testing, it won't compile.

I have now have a Raspberry Pi so I have to work throuh the build issues. More news soon.

Looking for miners with ARM CPUs.

cpuminer-opt-3.23.4, source code only, has initial support for 64 bit AArch64 CPUs with NEON, SHA2 & AES.
It's experimental and untested. It needs testers. See Wiki for details...

https://github.com/JayDDee/cpuminer-opt/wiki/Support-for-AARCH64


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 14, 2023, 11:29:09 PM
R-PI MAY BE CRIPPLED--

Indeed, the 4B doesn't have either AES or SHA2, hoping the 5 has both, and maybe sha3 too.
I just got my Pi 4B yesterday and started compiling today. A lot of work to do remove all the SSE2 hooks in the code,
Pi can do (almost) anything SSE2 can and some things SSE2 can't. I just have to figure out what those things are.

I've found 2 very interestings so far:
ARm as a REV instruction cna can reverse bits in a vecto or word, or word in a vector. X86_64 can't do that except maybe with
AVX512VBMI2.

ARM has no shuffle instruction, A RISC issue because random shuffles need code, either SW or microcode. ARM shuffles have to
be coded in SW using integers while x86_64 is a CISC architecture with microcode.

As far as AES and SHA are concerned, the code is already well segregated so Pi can live with out it just like Core2 can.
I'll ignore that code and focus on other parts until I get a CPU with the features, or someone in the community with
one volunteers.

It's not really about Pi though, the Pi is just a test vehicle. ARM is moving up, they'e in laptops and Macs, soon we may see
ARM desktops. I want to see how they might perform with AES and SHA2 against Intel and AMD core vs core.


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 15, 2023, 03:51:10 AM
It's alive! Only rejects so far so I have a lot  of work to do.

Code:
 
./cpuminer -a allium -o stratum+tcp://mine.zergpool.com:6433  --stratum-keepalive --max-temp 80

         **********  cpuminer-opt 3.23.5  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: ARM
SW built on Oct 14 2023 with GCC-11.4.0 Linux
CPU features:  AArch64 NEON
SW features:   AArch64 armv8 NEON
Algo features:        AVX512 VAES

Starting miner with AArch64 NEON...

[2023-10-14 23:47:26] CPU affinity [!!!!]
[2023-10-14 23:47:26] Stratum connect stratum+tcp://mine.zergpool.com:6433
[2023-10-14 23:47:26] 4 of 4 miner threads started using 'allium' algorithm
[2023-10-14 23:47:26] Stratum extranonce1 0x8100e7fc, extranonce2 size 4
[2023-10-14 23:47:26] Stratum connection established
[2023-10-14 23:47:26] CPU temp: curr 47 C max 0, Freq: 0.600/0.600 GHz
[2023-10-14 23:47:26] New Stratum Diff 0.08, Block 4397517, Tx 0, Job 4f99
                      Diff: Net 14.632, Stratum 0.08, Target 0.0003125
[2023-10-14 23:47:36] New Work: Block 4397517, Tx 1, Netdiff 14.632, Job 4f9b
                      Diff: Net 14.632, Stratum 0.08, Target 0.0003125
                      TTF @ 85.21 kh/s: Block 8d12h, Share 0m15s
[2023-10-14 23:47:36] New Block 4397518, Tx 0, Netdiff 13.453, Job 4f9c
                      Diff: Net 13.453, Stratum 0.08, Target 0.0003125
                      TTF @ 118.20 kh/s: Block 5d15h, Share 0m11s
                      Net hash rate (est) 5777.88 Mh/s
[2023-10-14 23:47:37] 1 Submitted Diff 0.00034945, Block 4397518, Job 4f9c
[2023-10-14 23:47:37] 1 A0 S0 Rejected 1 B0, 11.634 sec (143ms)
                      Reject reason: Invalid share
                      Share diff: 0.00034945, Target: 0.0003125



Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 16, 2023, 06:52:58 AM
First accepted share on Arm, unfortunately it's reference code, so no optimization, but still a big step forward.

Code:
./cpuminer -a sha256dt -o stratum+tcp://mine.zergpool.com:3341 -u 1FXaRoufZC6LyPzjNrs7wS47tpgzEpBSiw -p c29,c=btc,sd=0.01  --stratum-keepalive --max-temp 80

         **********  cpuminer-opt 23.5  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: ARM
SW built on Oct 16 2023 with GCC-11.4.0 Linux
CPU features:  AArch64 NEON
SW features:   AArch64 armv8 NEON
Algo features:        AVX512

Starting miner with AArch64 NEON...

[2023-10-16 02:50:18] CPU affinity [!!!!]
[2023-10-16 02:50:18] Stratum connect stratum+tcp://mine.zergpool.com:3341
[2023-10-16 02:50:18] 4 of 4 miner threads started using 'sha256dt' algorithm
[2023-10-16 02:50:18] Stratum extranonce1 0x81013e9d, extranonce2 size 4
[2023-10-16 02:50:18] Stratum connection established
[2023-10-16 02:50:18] CPU temp: curr 41 C max 0, Freq: 0.600/0.600 GHz
[2023-10-16 02:50:18] New Stratum Diff 0.2, Block 413277, Tx 3, Job 2513
                      Diff: Net 1.7532e+05, Stratum 0.2, Target 0.2
[2023-10-16 02:50:38] 1 Submitted Diff 3.6022, Block 413277, Job 2513
[2023-10-16 02:50:38] 1 Accepted 1 S0 R0 B0, 20.327 sec (141ms)
^C[2023-10-16 02:50:46] SIGINT received, exiting


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 24, 2023, 06:57:37 PM
ARM update.

Development is progressing well in spite of a few problems, The next release will be soon and most algos will be supported with
only a couple of exceptions. Many SSE2 optimizations were easily translated directly to NEON and some NEON development is also
applicable to SSE2 which helps older x86_64 CPUs that don't have AVX2. It's a win-win for both architectures.

Go to the github wiki for the technical details and stay tuned.


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: scryptr on October 25, 2023, 08:59:11 PM
RE: ARM UPDATE --

I tried to compile the latest source on my 8GB Rpi 4, utilizing the ARM build script.  It failed with an error pointing to line 1247.  The line instruction "-flax-vector-conversions" was in the ARM build script CFLAGS portion, so I did not edit that script, I just ran it.

I can run the build and log the entire thing in a text file, or just cut-n-paste the final error details, then pass the log to you in an email, zipped.  Let me know what you might want.       --scryptr


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on October 25, 2023, 11:35:36 PM
RE: ARM UPDATE --

I tried to compile the latest source on my 8GB Rpi 4, utilizing the ARM build script.  It failed with an error pointing to line 1247.  The line instruction "-flax-vector-conversions" was in the ARM build script CFLAGS portion, so I did not edit that script, I just ran it.

I can run the build and log the entire thing in a text file, or just cut-n-paste the final error details, then pass the log to you in an email, zipped.  Let me know what you might want.       --scryptr

You jumped the gun, I haven't submitted the working code yet. It will be a full release but without ARM binaries. Sorry for the confusion, watch for the release,
I'm building it as I write.


Title: Re: [ANN] cpuminer-opt v23.5, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on October 26, 2023, 12:51:15 AM
ARM YOURSELVES!

cpuminer-opt-23.5 is released with support for ARM CPUs.
Consult the Wiki for details, all links are in the first post of this thread.

As  Beta software problems are expected with ARM CPUs. Please report them but be patient.
Priority will be given to x86_64 regressions, if any.

Crank those ARMs and start your engines.


Title: Re: [ANN] cpuminer-opt v23.5, *NEW* ARM support, optimized multi-algo CPU miner
Post by: sxemini on October 26, 2023, 12:08:43 PM
ARM YOURSELVES!

cpuminer-opt-23.5 is released with support for ARM CPUs.
Consult the Wiki for details, all links are in the first post of this thread.

As  Beta software problems are expected with ARM CPUs. Please report them but be patient.
Priority will be given to x86_64 regressions, if any.

Crank those ARMs and start your engines.

Oh GG JayDDee, i must order an Pi now and start playing around with it  ;D


Title: Re: [ANN] cpuminer-opt v23.5, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on October 26, 2023, 04:03:54 PM
Notice of intent to delete Hodl algorithm from cpuminer-opt.

Argon2a is already deleted and I intend to do the same with Hodl. The code is just dead weight and isn't used by any other algo.
I'd like to control bloat considering the inevitable growth resulting from the addition of ARM support.


Title: Re: [ANN] cpuminer-opt v23.5, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on October 28, 2023, 04:03:30 AM
cpuminer-opt-23.6 released

Problems with sha256 are fixed. SHA extension are enabled on ARM but has not been tested,
All users should upgrade from v23.5. See OP for details and links.

Also a reminder that Hodl algo will be removed soon.

ARM YOURSELVES!

cpuminer-opt-23.5 is released with support for ARM CPUs.
Consult the Wiki for details, all links are in the first post of this thread.

As  Beta software problems are expected with ARM CPUs. Please report them but be patient.
Priority will be given to x86_64 regressions, if any.

Crank those ARMs and start your engines.


Title: Re: [ANN] cpuminer-opt v23.9, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on November 11, 2023, 09:56:00 PM
cpuminer-opt-23.9 released

x86_64: fixed minotaurx crash, broken in 23.7.
ARM: #407 fix compile error due to incorrect type casting for vrev instruction argument.

Previous release:

cpuminer-opt-23.8 released

Errata: Minotaurx crashes on x86_64 since v23.7, it will be fixed in the next release.

The big news is cpuminer-opt is completely divorced from OpenSSL. It's no longer necessary to install it on Linux
and it's no longer necessary to include the libcrypto DLL file in the Windows package.

Hodl algo has been removed as well as ASM code that is no longer used. There are some improvements to AArch64
AES as well. Details and download links are available in the OP.

Update for MacOS ARM: I can't get cpuminer-opt to work on MacOS natively but it works from a Linux VM using UTM.
Performance is excellent, Mac Mini is 4x Orange Pi 5.


Title: Re: [ANN] cpuminer-opt v23.10, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on November 15, 2023, 04:23:01 PM
cpuminer-opt-23.10 released

Includes important fixes, all users should upgrade.

-x86_64: Fixed scrypt, scryptn2 algos SSE2.
-Fixed sha512256d algo AVX2, SSE2, NEON.
-Fixed a bug in Skein N-way that reduced performance.
-ARM: Skein algo optimized for NEON, SHA2 & SSE2.
-Skein2 algo 2-way optimized for NEON & SSE2.


Title: Re: [ANN] cpuminer-opt v23.12, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on November 17, 2023, 07:43:32 PM
cpuminer-opt23.12

Several bugs fixes and speed improvements for x16r family for all CPU architectures.

----

cpuminer-opt-23.11

This is a release candidate for full AArch64 support, marking the end of the Beta phase.
Fixed hmq1725 & x25x algos, SSE2 & NEON, broken in v3.23.4.
Most CPU-mineable SHA3 algos (X*) upgraded to 2-way SSE2 & NEON.


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on November 30, 2023, 07:46:54 PM
cpuminer-opt-23.15 released

- Fixed x11gost (sib) algo for all architectures, broken in v3.23.4.
- ARM: Fugue AES optimizations enabled.
- ARM: quark, qubit, x11gost algos optimized with NEON & AES.

This is a major milestone in ARM support bringing NEON up to parity with SSE4.2. The focus now changes to tying up loose ends,
and fixing any bugs. The pace of new releases should return to normal levels after the frequent updates of the past 2 months.


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: Eliard on January 09, 2024, 07:25:04 PM
miner does not support affinity mask of more than 64 cores?


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on January 09, 2024, 07:43:30 PM
miner does not support affinity mask of more than 64 cores?

Correct. The CLI is limited to 64 bit integers. The 64 bit mask is repeated for CPUs 64 to 127, 128 to 191, etc.
On windows the mask used is the size of a CPU group (CPU groups not supported with prebuilt binaries) and is
repeated accordingly for each group if the group size is less than 64.

I can't think of a practical case where affinity would not be repeating pattern and require all unique bits.

If you have a CPU with more than 64 threads I would be interested in your experience.


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: Eliard on January 09, 2024, 10:29:29 PM
miner does not support affinity mask of more than 64 cores?

Correct. The CLI is limited to 64 bit integers. The 64 bit mask is repeated for CPUs 64 to 127, 128 to 191, etc.
On windows the mask used is the size of a CPU group (CPU groups not supported with prebuilt binaries) and is
repeated accordingly for each group if the group size is less than 64.

I can't think of a practical case where affinity would not be repeating pattern and require all unique bits.

If you have a CPU with more than 64 threads I would be interested in your experience.
dual cpu with 64 cores. now I disable auto-affinity and use taskset in Ubuntu, but I haven’t figured out how to do it in Hive OS yet
how repeat for example 0x1111111111111111 for second cpu?


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on January 09, 2024, 11:12:28 PM
dual cpu with 64 cores. now I disable auto-affinity and use taskset in Ubuntu, but I haven’t figured out how to do it in Hive OS yet
how repeat for example 0x1111111111111111 for second cpu?

As I stated the mask is repeated over each group of 64 CPUs. What are you trying to do with the mask?
I'd like all the details of your setup including miner console logs, I have no experience with multiple CPUs.

Edit: avoid taskset, it doesn't appear to assign individual threads.



Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: Eliard on January 10, 2024, 10:01:29 PM
dual cpu with 64 cores. now I disable auto-affinity and use taskset in Ubuntu, but I haven’t figured out how to do it in Hive OS yet
how repeat for example 0x1111111111111111 for second cpu?

As I stated the mask is repeated over each group of 64 CPUs. What are you trying to do with the mask?
I'd like all the details of your setup including miner console logs, I have no experience with multiple CPUs.

Edit: avoid taskset, it doesn't appear to assign individual threads.
for one cpu mask 0x1515151515151515, how repeat for second cpu?


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on January 11, 2024, 12:48:41 AM
for one cpu mask 0x1515151515151515, how repeat for second cpu?

I answered twice, I don't what else to say.


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: Lirei54 on February 24, 2024, 02:31:28 PM
Hello JayDDee.
Tell me how to specify the value for yespower_params.perslen = strlen(opt_param_key) in the miner;
What if perslen value is not zero? and, for example, equals 80
When specifying only three parameters, .N . r. pers there is always a rejection of the solution in the miner
When mining with the yespower algorithm.


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on February 24, 2024, 07:42:27 PM
Hello JayDDee.
Tell me how to specify the value for yespower_params.perslen = strlen(opt_param_key) in the miner;
What if perslen value is not zero? and, for example, equals 80
When specifying only three parameters, .N . r. pers there is always a rejection of the solution in the miner
When mining with the yespower algorithm.

The perslen is derived from the length of the param-key arg. If the coin spec has the length wrong (at least one instance I know of)
if effectively changes the pers string (param-key). Check out the yespower section here... https://github.com/JayDDee/cpuminer-opt/wiki/Supported--Algorithms

If you still have problems post full problem description including command line and miner output.


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: Lirei54 on February 25, 2024, 06:19:44 AM

 Data from src/primitives/block.cpp
 
 
Code:
  uint256 CBlockHeaderUncached::GetWorkHash() const
{
    static const yespower_params_t yespower_1_0_config = {
        .version = YESPOWER_1_0,
        .N = 2048,
        .r = 32,
        .pers = (const uint8_t *)"The gods had gone away, and the ritual of the religion continued senselessly, uselessly.",
        .perslen = 88
    };

    uint256 hash;
    CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
    ss << *this;
    if (yespower_tls((const uint8_t *)&ss[0], ss.size(), &yespower_1_0_config, (yespower_binary_t *)&hash)) {
        fprintf(stderr, "Error: CBlockHeaderUncached::GetPoWHash(): failed to compute PoW hash (out of memory?)\n");
        exit(1);
    }

    return hash;
}

 ./cpuminer -a yespower -o stratum+tcp://xxx.xxx.xxx.xxx:xxxx -u wallet -p c=coin --param-n 2048 --param-r 32 --param-key "The gods had gone away, and the ritual of the religion continued senselessly, uselessly." --cpu-affinity=0x1555555 -t 10 -D
   
 
Code:
    **********  cpuminer-opt 23.15  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AVX512, SHA and VAES extensions by JayDDee.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

[2024-02-25 13:05:04] Yespower parameters: N= 2048, R= 32
[2024-02-25 13:05:04] Key= "The gods had gone away, and the ritual of the religion continued senselessly, uselessly."

CPU: AMD Ryzen 9 5900X 12-Core Processor           
SW built on Feb 24 2024 with GCC-8.4.0 Linux
CPU features:  x86_64 AVX2   VAES SHA256
SW features:   x86_64 AVX2   VAES SHA256
Algo features:        SSE2   NEON   SHA256
[2024-02-25 13:05:04] Enabled optimizations: SSE2 SHA256
[2024-02-25 13:05:04] CPU affinity [!.!.!.!.!.!.!.!.!.!.!.!.]
[2024-02-25 13:05:04] Creating stratum thread
[2024-02-25 13:05:04] Stratum connect stratum+tcp://89.189.177.43:6234
[2024-02-25 13:05:04] Threads restarted for new work.
[2024-02-25 13:05:04] Default miner thread priority 0 (nice 19)
[2024-02-25 13:05:04] Binding thread 0 to cpu 0
[2024-02-25 13:05:04] Thread 0 waiting for first job
[2024-02-25 13:05:04] Binding thread 1 to cpu 2
[2024-02-25 13:05:04] Binding thread 2 to cpu 4
[2024-02-25 13:05:04] Thread 2 waiting for first job
[2024-02-25 13:05:04] Binding thread 3 to cpu 6
[2024-02-25 13:05:04] Thread 3 waiting for first job
[2024-02-25 13:05:04] Thread 1 waiting for first job
[2024-02-25 13:05:04] Binding thread 4 to cpu 8
[2024-02-25 13:05:04] Thread 4 waiting for first job
[2024-02-25 13:05:04] Binding thread 5 to cpu 10
[2024-02-25 13:05:04] Thread 5 waiting for first job
[2024-02-25 13:05:04] Binding thread 6 to cpu 12
[2024-02-25 13:05:04] Thread 6 waiting for first job
[2024-02-25 13:05:04] Binding thread 7 to cpu 14
[2024-02-25 13:05:04] Thread 7 waiting for first job
[2024-02-25 13:05:04] Binding thread 8 to cpu 16
[2024-02-25 13:05:04] Thread 8 waiting for first job
[2024-02-25 13:05:04] 10 of 24 miner threads started using 'yespower' algorithm
[2024-02-25 13:05:04] Binding thread 9 to cpu 18
[2024-02-25 13:05:04] Thread 9 waiting for first job
[2024-02-25 13:05:04] Stratum session id: 7928e08258c0dfeb645c7cf62eb8ad29
[2024-02-25 13:05:04] Stratum extranonce1 0x8100005b, extranonce2 size 4
[2024-02-25 13:05:04] Stratum connection established
[2024-02-25 13:05:05] CPU temp: curr 75 C max 0, Freq: 2.197/3.571 GHz
[2024-02-25 13:05:05] nbits d7d9001e: shift 30(1), bits 00d9d7, diff 0.00459046
[2024-02-25 13:05:05] Threads restarted for new work.
[2024-02-25 13:05:05] New Stratum Diff 1, Block 1321009, Tx 0, Job a1
                      Diff: Net 0.0045905, Stratum 1, Target 1.5259e-05
[2024-02-25 13:05:15] CPU temp: curr 80 C max 75, Freq: 3.468/4.485 GHz
[2024-02-25 13:05:15] nbits 67db001e: shift 30(1), bits 00db67, diff 0.00455777
[2024-02-25 13:05:15] Threads restarted for new work.
[2024-02-25 13:05:15] New Block 1321010, Tx 0, Netdiff 0.0045578, Job a2
                      Diff: Net 0.0045578, Stratum 1, Target 1.5259e-05
                      TTF @ 1721.76 h/s: Block 3h09m, Share 0m38s
                      Net hash rate (est) 1957.55 kh/s
[2024-02-25 13:05:20] 1 Submitted Diff 2.3702e-05, Block 1321010, Job a2
[2024-02-25 13:05:20] Xnonce2 00000000
[2024-02-25 13:05:20] Data[ 0: 9]: 00000020 0dd29f0d 80fc9c4c 43a51beb 719f8dc1 2d814a97 a51743a1 77e6c14e 3a692087 55688517
[2024-02-25 13:05:20] Data[10:19]: de376395 4c4d0394 4bd0d82d 112f5cb8 c91c7905 aa1cccbe 43133a52 9ad8da65 67db001e 139d9999
[2024-02-25 13:05:20] Hash[ 7: 0]: 0000a4ce a30597d4 4fa1fea8 2067f7dc f88eb09b e8ade4db 73fee27c ef9e97a4
[2024-02-25 13:05:20] Targ[ 7: 0]: 00010000 00000000 00000000 00000000 ffffffff ffffffff ffffffff ffffffff
[2024-02-25 13:05:21] 1 A0 S0 Rejected 1 B0, 16.300 sec (20ms)
                      Reject reason: Low difficulty share
                      Share diff: 2.3702e-05, Target: 1.5259e-05
[2024-02-25 13:05:21] CPU temp: curr 81 C max 80, Freq: 3.573/4.478 GHz
[2024-02-25 13:06:16] CPU temp: curr 81 C max 81, Freq: 3.567/4.466 GHz
[2024-02-25 13:06:16] nbits 67db001e: shift 30(1), bits 00db67, diff 0.00455777
[2024-02-25 13:06:16] Threads restarted for new work.
[2024-02-25 13:06:16] New Work: Block 1321010, Tx 0, Netdiff 0.0045578, Job a3
                      Diff: Net 0.0045578, Stratum 1, Target 1.5259e-05
                      TTF @ 1670.84 h/s: Block 3h15m, Share 0m39s
                      Net hash rate (est) 275.71 kh/s
[2024-02-25 13:06:27] nbits 93dc001e: shift 30(1), bits 00dc93, diff 0.00453355
[2024-02-25 13:06:27] Threads restarted for new work.
[2024-02-25 13:06:27] New Block 1321011, Tx 0, Netdiff 0.0045336, Job a4
                      Diff: Net 0.0045336, Stratum 1, Target 1.5259e-05
                      TTF @ 1679.02 h/s: Block 3h13m, Share 0m39s
                      Net hash rate (est) 474.91 kh/s
[2024-02-25 13:07:16] 2 Submitted Diff 4.3612e-05, Block 1321011, Job a4
[2024-02-25 13:07:16] Xnonce2 00000000
[2024-02-25 13:07:16] Data[ 0: 9]: 00000020 f63a4c93 021a6851 37f8e3dc 4d0c5c46 271034fa 0909e11d 3528610e 25d12c42 7c560046
[2024-02-25 13:07:16] Data[10:19]: c4e1b1c2 654b7e63 27c71d9a eb4ce63e 9d1f254e 4a88186c f87e3515 e3d8da65 93dc001e 85eecc4c
[2024-02-25 13:07:16] Hash[ 7: 0]: 00005991 b81bb592 60046084 787aea9a 8d2eacc4 98eaa398 46aa60a6 976079ed
[2024-02-25 13:07:16] Targ[ 7: 0]: 00010000 00000000 00000000 00000000 ffffffff ffffffff ffffffff ffffffff
[2024-02-25 13:07:16] 2 A0 S0 Rejected 2 B0, 115.246 sec (26ms)
                      Reject reason: Low difficulty share
                      Share diff: 4.3612e-05, Target: 1.5259e-05
[2024-02-25 13:07:16] CPU temp: curr 82 C max 81, Freq: 3.551/4.466 GHz
[2024-02-25 13:07:19] CPU temp: curr 83 C max 82, Freq: 3.559/4.466 GHz
[2024-02-25 13:07:19] nbits 93dc001e: shift 30(1), bits 00dc93, diff 0.00453355
[2024-02-25 13:07:19] Threads restarted for new work.
[2024-02-25 13:07:19] New Work: Block 1321011, Tx 0, Netdiff 0.0045336, Job a5
                      Diff: Net 0.0045336, Stratum 1, Target 1.5259e-05
                      TTF @ 1618.89 h/s: Block 3h20m, Share 0m40s
                      Net hash rate (est) 290.62 kh/s
[2024-02-25 13:07:33] 3 Submitted Diff 0.00057476, Block 1321011, Job a5
[2024-02-25 13:07:33] Xnonce2 00000000
[2024-02-25 13:07:33] Data[ 0: 9]: 00000020 f63a4c93 021a6851 37f8e3dc 4d0c5c46 271034fa 0909e11d 3528610e 25d12c42 d90628a6
[2024-02-25 13:07:33] Data[10:19]: 966eb828 6b563a02 4bfb42e5 f981737f 32fd8624 a73634e9 6b0e2113 16d9da65 93dc001e a9a19999
[2024-02-25 13:07:33] Hash[ 7: 0]: 000006cb deaa1c81 86b9b6ec b92ac119 de385dad fe036c1e fde94d18 feee6f4a
[2024-02-25 13:07:33] Targ[ 7: 0]: 00010000 00000000 00000000 00000000 ffffffff ffffffff ffffffff ffffffff
[2024-02-25 13:07:33] 3 A0 S0 Rejected 3 B0, 17.451 sec (28ms)
                      Reject reason: Low difficulty share
                      Share diff: 0.00057476, Target: 1.5259e-05
[2024-02-25 13:07:38] 4 Submitted Diff 6.5757e-05, Block 1321011, Job a5
[2024-02-25 13:07:38] Xnonce2 00000000
[2024-02-25 13:07:38] Data[ 0: 9]: 00000020 f63a4c93 021a6851 37f8e3dc 4d0c5c46 271034fa 0909e11d 3528610e 25d12c42 d90628a6
[2024-02-25 13:07:38] Data[10:19]: 966eb828 6b563a02 4bfb42e5 f981737f 32fd8624 a73634e9 6b0e2113 16d9da65 93dc001e 963d3333
[2024-02-25 13:07:38] Hash[ 7: 0]: 00003b67 72ffa2e4 065db32e 0995bc43 371267d0 77fbf7ab 90e8ccd6 2ba09cb5
[2024-02-25 13:07:38] Targ[ 7: 0]: 00010000 00000000 00000000 00000000 ffffffff ffffffff ffffffff ffffffff
[2024-02-25 13:07:38] 4 A0 S0 Rejected 4 B0, 4.416 sec (20ms)
                      Reject reason: Low difficulty share
                      Share diff: 6.5757e-05, Target: 1.5259e-05
^C[2024-02-25 13:07:53] SIGINT received, exiting
[2024-02-25 13:07:53] Program exit


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: JayDDee on February 25, 2024, 01:55:38 PM
I don't see anything wrong with the parameters and the reject reason indicates a different problem.
It's a difficulty targetting error. This is either a miner bug or a pool bug. Since yespower has been working for years
a pool bug is likely.

If you let the miner run for a while you should see some accepted shares. You can also use -m as a workaround to increase
the target diff and filter out the lower diff shares that would be rejected.


Title: Re: [ANN] cpuminer-opt v23.15, *NEW* ARM support, optimized multi-algo CPU miner
Post by: Lirei54 on February 25, 2024, 02:26:40 PM
Got it, thanks for the answer. I will sort this out.


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: scryptr on March 02, 2024, 12:09:01 AM
R-PI MAY BE CRIPPLED--

This is an old post from "oink70", who optimized Monkins' Verushash CCminer:

        "Oink70 (2 yr. ago on Reddit)

Mining Verus is impossible on any Raspberry device. The Raspberry company did not license all CPU instructions, so the required functions are not available on Raspberry branded devices.  As far as I know Raspberry is the only brand that crippled the CPU, so any other ARM device should work."

I picked up your recent interest in coding for ARM processors after reading the CryptoMining-Blog post on VerusCoin (VRSC) mining.  I have been able to compile XMrig and tpruvot's CPUminer-Multi on my R-pi.  The above CCminer packages (Monkins & Oink70) will not compile.

I am currently mining VerusCoin on a new Orange Pi 5.  Verushash and MinotaurX look like good targets for coding, if you are able to find the right functions.

Raspberry Pi 5 is scheduled to hit the market this month, I believe.  The CPU runs at 2.4 GHZ.

Hope to see some fresh code to match!       --scryptr

Hold off on testing, it won't compile.

I have now have a Raspberry Pi so I have to work through the build issues. More news soon.

Looking for miners with ARM CPUs.

cpuminer-opt-3.23.4, source code only, has initial support for 64 bit AArch64 CPUs with NEON, SHA2 & AES.
It's experimental and untested. It needs testers. See Wiki for details...

https://github.com/JayDDee/cpuminer-opt/wiki/Support-for-AARCH64

ANSWERING MY OWN POST
=================

The Rpi 5 supposedly has the crypto instructions. See below:

(QUOTE  from Reddit)


"@hyc
 
Amazing that they finally quit being cheapskates and decided to pay for the crypto instruction extension that every other ARM producer in the world has included for the past 8 years already. I wonder what changed their minds.

So it’s another Broadcom chip quadcore with only 2MB L3 cache. I.e., only enough cache to run a single RandomX thread. The other cores will be wasted.

These have always been and continue to be worthless junk. For practical use these days you need closer to 4GB RAM per core, and of course 2MB cache per core. This thing only has enough resources to utilize 1 (core."

(END QUOTE)
 
Although I have been able to compile Xmrig on my Rpi 4, none of your recent crypto builds worked.  I finally was able to purchase an Rpi 5 from Adafruit and will try again.

I have several Orange Pi 5 boards mining Verus coin.  I'll be able to check the Rpi 5 hashrate in comparison.

Apologies to the quoted Reddit user.  The post is 5 months old, and from a MoneroMiniing thread.  I have not done a thorough search to verify its validity.

--scryptr


Title: Re: [ANN] cpuminer-opt v3.23.3, open source optimized multi-algo x86_64 CPU miner
Post by: JayDDee on March 02, 2024, 01:34:03 AM

ANSWERING MY OWN POST
=================

The Rpi 5 supposedly has the crypto instructions. See below:

(QUOTE  from Reddit)


"@hyc
 
Amazing that they finally quit being cheapskates and decided to pay for the crypto instruction extension that every other ARM producer in the world has included for the past 8 years already. I wonder what changed their minds.

So it’s another Broadcom chip quadcore with only 2MB L3 cache. I.e., only enough cache to run a single RandomX thread. The other cores will be wasted.

These have always been and continue to be worthless junk. For practical use these days you need closer to 4GB RAM per core, and of course 2MB cache per core. This thing only has enough resources to utilize 1 (core."

(END QUOTE)
 
Although I have been able to compile Xmrig on my Rpi 4, none of your recent crypto builds worked.  I finally was able to purchase an Rpi 5 from Adafruit and will try again.

I have several Orange Pi 5 boards mining Verus coin.  I'll be able to check the Rpi 5 hashrate in comparison.

Apologies to the quoted Reddit user.  The post is 5 months old, and from a MoneroMiniing thread.  I have not done a thorough search to verify its validity.

--scryptr

Thanks for the follow up. It's nice to know RPi5 has crypto. I've done testing on RPi4B, definitely no crypto, OPi5 with crypto, and Apple M2 from a VM.
I can't get it to compile on native MacOS. Crypto doesn't work in the VM but that could be a VM issue. I would be surprised if M2 didn't support crypto.


Title: [ANN] cpuminer-opt v24.1, Optimized multi-algo CPU miner for x86_64 and AArch64
Post by: JayDDee on May 01, 2024, 04:57:25 AM
Although I have been able to compile Xmrig on my Rpi 4, none of your recent crypto builds worked.  I finally was able to purchase an Rpi 5 from Adafruit and will try again.

I have several Orange Pi 5 boards mining Verus coin.  I'll be able to check the Rpi 5 hashrate in comparison.

I think I missed this point. The Windows builds won't work on RPI or OPi, they're for X86_64 not Arm.
If you have problems compiling on RPi (or OPi) with Linux it's probably missing packages. It may depend on how you install Linux.
If you installed from an custom image file it may not have all necessary packages. I installed using using normal installation
procedure for Ubuntu using the Arm server ISO and had no issues compiling afterward.