Author

Topic: [ANN]: cpuminer-opt v3.8.8.1, open source optimized multi-algo CPU miner - page 130. (Read 444067 times)

hero member
Activity: 588
Merit: 501
joblo: we have detected that cryptonight would run faster in most cases when not using all available threads. This has most likely to do with CPU cache; the bigger it is, the more threads it can run fast. Are you aware of this?

Speed increase can be around 10-15% when using less than all available threads and that is not something to simply ignore.
newbie
Activity: 43
Merit: 0
i got this error when i try to compile your miner  Huh



someone knows this ??

minerd to compile was no porblem but it has no crptonigth algorithm ...



kind regards

Missing dependencies, consult README.md and ensure all packages are installed.


ok i think i missed some of these
Dependencies

build-essential  (for Ubuntu, Development Tools package group on Fedora)
automake
libjansson-dev
libgmp-dev
libcurl4-openssl-dev
libssl-dev
pthreads
zlib


can you gude me how to instal all them .....
iam really new in linux.....-.-


kind regards


Code:
sudo apt-get install build-essential libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev automake
legendary
Activity: 1582
Merit: 1031
i got this error when i try to compile your miner  Huh



someone knows this ??

minerd to compile was no porblem but it has no crptonigth algorithm ...



kind regards

Missing dependencies, consult README.md and ensure all packages are installed.


ok i think i missed some of these
Dependencies

build-essential  (for Ubuntu, Development Tools package group on Fedora)
automake
libjansson-dev
libgmp-dev
libcurl4-openssl-dev
libssl-dev
pthreads
zlib


can you gude me how to instal all them .....
iam really new in linux.....-.-


kind regards
sr. member
Activity: 352
Merit: 250
It is this coin: https://bitcointalksearch.org/topic/annvrm-verium-powt-cpu-mining-scrypt-scaling-new-roadmap-released-1540023
It says
Code:
Algo: scrypt² (N of 1024² or 128MB per thread)
So, isn't it 1024X1024=1048576?

It says it's a new algo, it won't work with old scrypt.
It's scrypt-N with N factor=1048576.
As a guy suggested in the other thread witch i mention, i set virtual memory at 32GB and now it works.
No way to use such amount though... I still have lots of free memory.

Did it actually work for him? What miner did he use?

ScryptN is not supported in cpuminer-opt. The code is present but untested. If they have a working miner I suggest you try it.
I was able to run a benchmark with your command line on Linux with 16 GB mem, however, there is no guarantee it is hashing
correctly. Your memory allocation issue may not be related to the miner.
Yes it works with virtual memory at 32GB. I run the benchmark, and then mine some in their pool. Shares submitted.
They suggest your miner only.
There is a miner in the wallet too, but gives me half the hashes of cpuminer-opt.
legendary
Activity: 1470
Merit: 1114
It is this coin: https://bitcointalksearch.org/topic/annvrm-verium-powt-cpu-mining-scrypt-scaling-new-roadmap-released-1540023
It says
Code:
Algo: scrypt² (N of 1024² or 128MB per thread)
So, isn't it 1024X1024=1048576?

It says it's a new algo, it won't work with old scrypt.
It's scrypt-N with N factor=1048576.
As a guy suggested in the other thread witch i mention, i set virtual memory at 32GB and now it works.
No way to use such amount though... I still have lots of free memory.

Did it actually work for him? What miner did he use?

ScryptN is not supported in cpuminer-opt. The code is present but untested. If they have a working miner I suggest you try it.
I was able to run a benchmark with your command line on Linux with 16 GB mem, however, there is no guarantee it is hashing
correctly. Your memory allocation issue may not be related to the miner.
sr. member
Activity: 352
Merit: 250
It is this coin: https://bitcointalksearch.org/topic/annvrm-verium-powt-cpu-mining-scrypt-scaling-new-roadmap-released-1540023
It says
Code:
Algo: scrypt² (N of 1024² or 128MB per thread)
So, isn't it 1024X1024=1048576?

It says it's a new algo, it won't work with old scrypt.
It's scrypt-N with N factor=1048576.
As a guy suggested in the other thread witch i mention, i set virtual memory at 32GB and now it works.
No way to use such amount though... I still have lots of free memory.
legendary
Activity: 1470
Merit: 1114
i got this error when i try to compile your miner  Huh



someone knows this ??

minerd to compile was no porblem but it has no crptonigth algorithm ...



kind regards

Missing dependencies, consult README.md and ensure all packages are installed.
legendary
Activity: 1582
Merit: 1031
i got this error when i try to compile your miner  Huh



someone knows this ??

minerd to compile was no porblem but it has no crptonigth algorithm ...



kind regards
newbie
Activity: 43
Merit: 0
Thanks, managed to compile it on ubuntu 16.4.
Two different machines, working great on one, not so on the other:

Pleased with it on my xeon E5-1620 v2
https://i.gyazo.com/e51bae8d0dfa86c3e971d288b2c81524.png

Not so much on my other E3-1231 v3. Here I'll stick with https://github.com/perl5577/cpuminer-multi
legendary
Activity: 1470
Merit: 1114
It is this coin: https://bitcointalksearch.org/topic/annvrm-verium-powt-cpu-mining-scrypt-scaling-new-roadmap-released-1540023
It says
Code:
Algo: scrypt² (N of 1024² or 128MB per thread)
So, isn't it 1024X1024=1048576?

It says it's a new algo, it won't work with old scrypt.
sr. member
Activity: 352
Merit: 250

That's a memory allocation error, how much do you have free?

Edit: there is a bug in the error message, the thread id was missing.
About 4.5GB. Restarted windows too.
Code:
CPU: AMD FX(tm)-8320 Eight-Core Processor
CPU features: SSE2 AES AVX
SW built on Sep 22 2016 with GCC 4.8.3
SW features: SSE2
Algo features: SSE2
Start mining with SSE2

[2016-09-29 02:26:16] Starting Stratum on stratum+tcp://poolinat0r.com:4444
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] 8 miner threads started, using 'scrypt' algorithm.
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] FAIL: thread 52623896 failed to initialize
[2016-09-29 02:26:16]

The n factor doesn't look right, the default is 6 for scrypt.
It is this coin: https://bitcointalksearch.org/topic/annvrm-verium-powt-cpu-mining-scrypt-scaling-new-roadmap-released-1540023
It says
Code:
Algo: scrypt² (N of 1024² or 128MB per thread)
So, isn't it 1024X1024=1048576?
legendary
Activity: 1470
Merit: 1114

That's a memory allocation error, how much do you have free?

Edit: there is a bug in the error message, the thread id was missing.
About 4.5GB. Restarted windows too.
Code:
CPU: AMD FX(tm)-8320 Eight-Core Processor
CPU features: SSE2 AES AVX
SW built on Sep 22 2016 with GCC 4.8.3
SW features: SSE2
Algo features: SSE2
Start mining with SSE2

[2016-09-29 02:26:16] Starting Stratum on stratum+tcp://poolinat0r.com:4444
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] 8 miner threads started, using 'scrypt' algorithm.
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] FAIL: thread 52623896 failed to initialize
[2016-09-29 02:26:16]

The n factor doesn't look right, the default is 6 for scrypt.
sr. member
Activity: 352
Merit: 250

That's a memory allocation error, how much do you have free?

Edit: there is a bug in the error message, the thread id was missing.
About 4.5GB. Restarted windows too.
Code:
CPU: AMD FX(tm)-8320 Eight-Core Processor
CPU features: SSE2 AES AVX
SW built on Sep 22 2016 with GCC 4.8.3
SW features: SSE2
Algo features: SSE2
Start mining with SSE2

[2016-09-29 02:26:16] Starting Stratum on stratum+tcp://poolinat0r.com:4444
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] 8 miner threads started, using 'scrypt' algorithm.
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] Scrypt buffer allocation failed
[2016-09-29 02:26:16] FAIL: thread 52623896 failed to initialize
[2016-09-29 02:26:16]
legendary
Activity: 1470
Merit: 1114
@scryptr. Please also post the -msse2 compile that failed. This isn't a simple matter of telling you
the correct way, we need to figure out the correct way first.

@scryptr
The correct commandline for building for your CPU Sempron 145 and Athlon X II is:
Code:
./autogen.sh && CFLAGS="-O3 -march=btver1" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl && make && strip cpuminer

Try that and you will have your binary.
Personally I use that on my Phenom's and Sempron 145.

This commandline works flawlessly even on older AMD Athlon 64 X2 6000+ and 5000+

A SUCCESSFUL BUILD RESULTED!!! --

The following screen captures are easier to post than a pages-long compile log:

https://postimg.org/image/olsjajmyj/
Initial launch of CPUMiner-OPT 3.4.8-dev.

https://postimg.org/image/3lwnwwy77/
First accepts for CPUMiner-OPT 3.4.8-dev while mining CryptoNight at NiceHash.com.

Thank you very much for the compile scrypt.  I would appreciate a little explanation of the flags used.  After spending  several hours studying GCC flags for various CPU versions, and attempting to compile with different combinations, your help is a gift.

I am also trying to compile NiceHash's version of tsiv's CCminer for CryptoNight.  Perhaps their git repository is a bit skewed, tsiv's compiles with just "autogen.sh", "configure", and "make".

Thanks again!       --scryptr

Thanks for posting the results. I am also curious about why certain flags didn't work, and especially why something that compiled
crashed with an illegal instruction, and which instruction it crashed on.

The compile flags for cpuminer-opt are more complicated because it supports so many algos written by different people to different
standards.

AMD CPUs, well that's another story. Thanks to th3.r00t for making some sense out of it.
legendary
Activity: 1470
Merit: 1114
What with this error:
Code:
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] FAIL: thread 46987800 failed to initialize
Windows 7 x64 with 8GB RAM.

My script:
Code:
cpuminer-btver1 -a scrypt:1048576 --benchmark

That's a memory allocation error, how much do you have free?

Edit: I don't know much about scrypt but that nfactor doesn't look right. The default is 6.

Edit: there is a bug in the error message, the thread id was missing.
legendary
Activity: 1797
Merit: 1028
@scryptr. Please also post the -msse2 compile that failed. This isn't a simple matter of telling you
the correct way, we need to figure out the correct way first.

@scryptr
The correct commandline for building for your CPU Sempron 145 and Athlon X II is:
Code:
./autogen.sh && CFLAGS="-O3 -march=btver1" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl && make && strip cpuminer

Try that and you will have your binary.
Personally I use that on my Phenom's and Sempron 145.

This commandline works flawlessly even on older AMD Athlon 64 X2 6000+ and 5000+

A SUCCESSFUL BUILD RESULTED!!! --

The following screen captures are easier to post than a pages-long compile log:

https://postimg.org/image/olsjajmyj/
Initial launch of CPUMiner-OPT 3.4.8-dev.

https://postimg.org/image/3lwnwwy77/
First accepts for CPUMiner-OPT 3.4.8-dev while mining CryptoNight at NiceHash.com.

Thank you very much for the compile scrypt.  I would appreciate a little explanation of the flags used.  After spending  several hours studying GCC flags for various CPU versions, and attempting to compile with different combinations, your help is a gift.

I am also trying to compile NiceHash's version of tsiv's CCminer for CryptoNight.  Perhaps their git repository is a bit skewed, tsiv's compiles with just "autogen.sh", "configure", and "make".

Thanks again!       --scryptr
sr. member
Activity: 352
Merit: 250
What with this error:
Code:
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] Scrypt buffer allocation failed
[2016-09-29 00:57:08] FAIL: thread 46987800 failed to initialize
Windows 7 x64 with 8GB RAM.

My script:
Code:
cpuminer-btver1 -a scrypt:1048576 --benchmark
sr. member
Activity: 312
Merit: 250
@scryptr. Please also post the -msse2 compile that failed. This isn't a simple matter of telling you
the correct way, we need to figure out the correct way first.

@scryptr
The correct commandline for building for your CPU Sempron 145 and Athlon X II is:
Code:
./autogen.sh && CFLAGS="-O3 -march=btver1" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl && make && strip cpuminer

Try that and you will have your binary.
Personally I use that on my Phenom's and Sempron 145.

This commandline works flawlessly even on older AMD Athlon 64 X2 6000+ and 5000+
legendary
Activity: 1470
Merit: 1114
@scryptr. Please also post the -msse2 compile that failed. This isn't a simple matter of telling you
the correct way, we need to figure out the correct way first.
legendary
Activity: 1797
Merit: 1028
Rather than march, try with -msse2

And old cryptonight miners will not work correctly on NiceHash - we had to add small protocol adjustment to be able to redistribute hashing power because cryptonight algo does not have extranonce. Besides that, these miners also send additional newlines (bug), which our implementation will not tolerate and would kill con.

THANKS FOR THE REPLY--

I was not able to compile the NiceHash CryptoNight CCminer, either.  I run Lubuntu 14.04, and am able to compile tsiv's original CCminer with no problem.  Your code is based on his miner, but cloning git from the NiceHash repository, then compiling with the same steps used for tsiv's miner only results in errors.

I'd appreciate some help in compilation, or Linux binaries available for download.       --scryptr

EDIT:  I tried the "-msse2" switch, and no "cpuminer" executable was produced.  The "march=core2" flag works, but the result is a miner that produces an "illegal instruction" and dumps core.  If there is an appropriate command flag for Athlon X II CPUs, please let me know.  Thanks...       -scryptr

We use this build script on mingw for building for SSE2: https://github.com/nicehash/cpuminer-opt/blob/master/mingw64sse2.sh

There are no issues and executable is built.

ATHLON X II SUPPORTS SSE2--

But I am compiling under Linux, Lubuntu 14.04.  The miner builds when the "march=core2" flag is substituted for the "march=native" flag in the "build.sh" script.  However, it errors out when beginning to mine.

I've also been attempting to compile the NiceHash CCminer-CryptoNight miner in the same environment.  The build errors out immediately.  I sent a PM to your BitCoinTalk message box.  I've compiled miners for a couple years now, under Linux and occasionally Windows.  I just want to run "build.sh" and generate a good binary.

I'll post a console capture tomorrow.  If the NiceHash team has any suggestions about how to compile a good CPUMiner-OPT, or CCminer-CryptoNight, I am interested.  Posting Linux binaries for download would also be appreciated.       --scryptr
Jump to: