Bitcoin Forum
December 11, 2024, 12:12:45 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 [117] 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 ... 197 »
  Print  
Author Topic: [LOCKED] cpuminer-opt v3.12.3, open source optimized multi-algo CPU miner  (Read 444085 times)
Rameron
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 23, 2017, 07:36:27 AM
 #2321

Hello.

There are some problems with mining with cryptonight algorithm. In 3.3.6 version of miner on many CPU for mining was using AES and AVX instructions if available. But now, even when I launched cpuminer-aes-avx for Ivy/Sandy Bridge or cpuminer-aes-avx2 for Haswell and above, their are always using AES and SSE2 instructions. On i7 3770, on i7 4770, even on Xeon E5-1650 v3. There wasn't any cases when for mining was using AVX instruction in 3.6.0 version.

Is it normal? Or combination of AES and SSE2 instruction are more efficient then AES and AVX?
onedeveloper
Full Member
***
Offline Offline

Activity: 143
Merit: 100


View Profile
March 23, 2017, 10:14:40 AM
 #2322

Dear Dev,

I tried to use cpuminer to mine xmr with my computer.

It shows:

[2017-03-23 13:23:08] Starting Stratum on stratum+tcp://xmr.crypto-pool.fr:3333
[2017-03-23 13:23:08] 24 miner threads started, using 'cryptonight' algorithm.
[2017-03-23 13:23:09] API bind to port 4048 failed - trying again in 20sec
[2017-03-23 13:23:11] Stratum difficulty set to 18000
[2017-03-23 13:23:15] CPU #6: 66 H, 18.39 H/s


Is it ok for API failed?

In my experience, is no problem if you don't want or need to control the miner remotely through the provided API interface. In your case, it seems you are mining with another instance of this same miner, or the original version, and you need to specify a new port for this instance. Use:

Code:
--api-bind <other_port_number>

in your argument list and the problem will be solved.
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 23, 2017, 12:11:40 PM
 #2323

Hello.

There are some problems with mining with cryptonight algorithm. In 3.3.6 version of miner on many CPU for mining was using AES and AVX instructions if available. But now, even when I launched cpuminer-aes-avx for Ivy/Sandy Bridge or cpuminer-aes-avx2 for Haswell and above, their are always using AES and SSE2 instructions. On i7 3770, on i7 4770, even on Xeon E5-1650 v3. There wasn't any cases when for mining was using AVX instruction in 3.6.0 version.

Is it normal? Or combination of AES and SSE2 instruction are more efficient then AES and AVX?

The algo features are hard coded by me as a guide to users. I changed the definition for cryptonight because there is no AVX
or AVX2 code used by cryptonight. A Haswell won't perform significantly faster that a Sandybridge mining cryptonight but is
faster on algos that do have AVX2 code.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 23, 2017, 12:12:25 PM
 #2324

Dear Dev,

I tried to use cpuminer to mine xmr with my computer.

It shows:

[2017-03-23 13:23:08] Starting Stratum on stratum+tcp://xmr.crypto-pool.fr:3333
[2017-03-23 13:23:08] 24 miner threads started, using 'cryptonight' algorithm.
[2017-03-23 13:23:09] API bind to port 4048 failed - trying again in 20sec
[2017-03-23 13:23:11] Stratum difficulty set to 18000
[2017-03-23 13:23:15] CPU #6: 66 H, 18.39 H/s


Is it ok for API failed?

In my experience, is no problem if you don't want or need to control the miner remotely through the provided API interface. In your case, it seems you are mining with another instance of this same miner, or the original version, and you need to specify a new port for this instance. Use:

Code:
--api-bind <other_port_number>

in your argument list and the problem will be solved.

Correct.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
Rameron
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 23, 2017, 12:52:50 PM
 #2325

A Haswell won't perform significantly faster that a Sandybridge mining cryptonight but is
faster on algos that do have AVX2 code.
So, is there no difference between Haswell and Sandybridge microarches for cryptonight algo and no sense to use different versions of miner for it (but only in case, when cpu not support aes)?
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 23, 2017, 02:54:49 PM
 #2326

So, is there no difference between Haswell and Sandybridge microarches for cryptonight algo and no sense to use different versions of miner for it (but only in case, when cpu not support aes)?

That's not what I said.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
Rameron
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
March 23, 2017, 03:09:32 PM
 #2327

That's not what I said.
I know, but what am I wrong about?
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 23, 2017, 03:23:43 PM
 #2328

That's not what I said.
I know, but what am I wrong about?

You're trolling. My answer was very clear. Your follow up question was just plain stupid.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
Ursul0
Sr. Member
****
Offline Offline

Activity: 857
Merit: 262


View Profile
March 25, 2017, 07:58:30 PM
 #2329

That's not what I said.
I know, but what am I wrong about?

You're trolling. My answer was very clear. Your follow up question was just plain stupid.
he wasn't being stupid. probably just trying to do something other than to run one of the five executables in accordance with the platform they're built for, which may seem in case of Cryptonone as a good idea due to certain lack of clarity...
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 25, 2017, 08:47:36 PM
 #2330

That's not what I said.
I know, but what am I wrong about?

You're trolling. My answer was very clear. Your follow up question was just plain stupid.
he wasn't being stupid. probably just trying to do something other than to run one of the five executables in accordance with the platform they're built for, which may seem in case of Cryptonone as a good idea due to certain lack of clarity...

Lack of clarity, that's funny. What's not clear about running the exe that matches the CPU's arch?
And it is stupid to suggest it makes no sense to do so. Too many people don't think before asking
questions.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
Ursul0
Sr. Member
****
Offline Offline

Activity: 857
Merit: 262


View Profile
March 26, 2017, 11:01:27 AM
 #2331

lol. well.. I can see clearly that you're optimizing algorithms in asm nowdays:) no ambiguity there.
I guess it's something like that: If I start EXE on cryptonote for AVX2 on a CPU that supports it I still see that it's supposedly runs with SSE2 optimization, as it's a 'feature' of the algo implementation. So the question remains: should the best results be achieved with the miner that is "optimized for SSE2" even though it runs on AVX2 capable platform?

felixbrucker
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500


View Profile WWW
March 26, 2017, 11:13:55 AM
 #2332

lol. well.. I can see clearly that you're optimizing algorithms in asm nowdays:) no ambiguity there.
I guess it's something like that: If I start EXE on cryptonote for AVX2 on a CPU that supports it I still see that it's supposedly runs with SSE2 optimization, as it's a 'feature' of the algo implementation. So the question remains: should the best results be achieved with the miner that is "optimized for SSE2" even though it runs on AVX2 capable platform?



afaik the cpuminer bins distributed are compiled for this arch (features), so using a AVX2 bin with a AVX2 cpu on a SSE2 only algo yields the same results as using a SSE2 only bin as the miner uses the same code paths (but the AVX2 bin can use the AVX2 paths as well, but for this algo there arent any, so its the same)
Ursul0
Sr. Member
****
Offline Offline

Activity: 857
Merit: 262


View Profile
March 27, 2017, 11:05:26 AM
 #2333

lol. well.. I can see clearly that you're optimizing algorithms in asm nowdays:) no ambiguity there.
I guess it's something like that: If I start EXE on cryptonote for AVX2 on a CPU that supports it I still see that it's supposedly runs with SSE2 optimization, as it's a 'feature' of the algo implementation. So the question remains: should the best results be achieved with the miner that is "optimized for SSE2" even though it runs on AVX2 capable platform?



afaik the cpuminer bins distributed are compiled for this arch (features), so using a AVX2 bin with a AVX2 cpu on a SSE2 only algo yields the same results as using a SSE2 only bin as the miner uses the same code paths (but the AVX2 bin can use the AVX2 paths as well, but for this algo there arent any, so its the same)

Thx:) I'd normally guess that this should be the case, however I have no idea how optimizations are implemented/executables built.

...app can "use appropriate code path" only if its there and for that you need to know that there's 0 avx instructions written by the coder or generated otherwise, during the AVX exe build for this particular algo. 
EDIT: otherwise using AVX exe on SSE2 only capable CPU is a no go, even in cases where the algo itself has no AVX optimizations... in any case it all boils to the straight forward: use EXE build for your platform and hope for the best resultsSmiley
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 27, 2017, 12:12:26 PM
 #2334

lol. well.. I can see clearly that you're optimizing algorithms in asm nowdays:) no ambiguity there.
I guess it's something like that: If I start EXE on cryptonote for AVX2 on a CPU that supports it I still see that it's supposedly runs with SSE2 optimization, as it's a 'feature' of the algo implementation. So the question remains: should the best results be achieved with the miner that is "optimized for SSE2" even though it runs on AVX2 capable platform?



afaik the cpuminer bins distributed are compiled for this arch (features), so using a AVX2 bin with a AVX2 cpu on a SSE2 only algo yields the same results as using a SSE2 only bin as the miner uses the same code paths (but the AVX2 bin can use the AVX2 paths as well, but for this algo there arent any, so its the same)

Thx:) I'd normally guess that this should be the case, however I have no idea how optimizations are implemented/executables built.

...app can "use appropriate code path" only if its there and for that you need to know that there's 0 avx instructions written by the coder or generated otherwise, during the AVX exe build for this particular algo. 
EDIT: otherwise using AVX exe on SSE2 only capable CPU is a no go, even in cases where the algo itself has no AVX optimizations... in any case it all boils to the straight forward: use EXE build for your platform and hope for the best resultsSmiley

Please stop this speculartion. If you are really concerned about these details do your own experiments. Don't invent issues
that don't exist, it only confuses others.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
giagge
Legendary
*
Offline Offline

Activity: 1134
Merit: 1001


View Profile
March 28, 2017, 08:56:01 AM
 #2335

Someone who has ryzen 1700, can kindly tell me the best parameters for overclocking? I'd like to stay within the 65 watts.
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 29, 2017, 02:59:46 AM
 #2336

Looking for Ryzen owners to test SHA acceleration.

Ryzen CPUs have HW accelerated SHA, something Intel's mainstream CPUs won't have until Cannonlake.

Requirements:
  Ryzen CPU
  Linux
  Compiler version with support for sha
  Openssl development package with support for sha
  Cpuminer-opt source code with support for sha

I can provide the last one. GCC is supposed to have support for -msha starting in v 5, and Openssl added support in 2014
so both should be available in Ubuntu 16.04.

The following algos use sha256 and should benefit from HW acceleration: sha256t, lbry, skein, myr-groestl, m7m.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
LukkasG
Sr. Member
****
Offline Offline

Activity: 574
Merit: 250


View Profile
March 29, 2017, 03:05:43 PM
 #2337

Wave, person,

Would anyone have a tutorial on how to use download, compile and use this miner in UBuntu?
nizzuu
Full Member
***
Offline Offline

Activity: 187
Merit: 100

Cryptocurrency enthusiast


View Profile
March 30, 2017, 09:27:12 AM
 #2338

Seems that lyra2rev2 is broken in 3.6.0 avx2 build. When I launch the miner, cli doesn't show cpu threads at all, then miner quits after ~15 seconds. It's OK on 3.5.12 avx2 with same settings:

3.6.0:
cpuminer-aes-avx2 -a lyra2rev2 -t 4 -o stratum+tcp://hub.miningpoolhub.com:20507 -u qwerty -p qwerty

CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
CPU features: SSE2 AES AVX AVX2
SW built on Mar 15 2017 with GCC 4.8.3
SW features: SSE2 AES AVX AVX2
Algo features: SSE2 AES AVX AVX2
Start mining with SSE2 AES AVX AVX2

[2017-03-30 12:23:07] Starting Stratum on stratum+tcp://hub.miningpoolhub.com:20
507
[2017-03-30 12:23:07] 4 miner threads started, using 'lyra2rev2' algorithm.
[2017-03-30 12:23:07] Stratum difficulty set to 4

Then, miner quits after a short time. No crashes, just quit.

3.5.12:
cpuminer-aes-avx2 -a lyra2rev2 -t 4 -o stratum+tcp://hub.miningpoolhub.com:20507 -u qwerty -p qwerty

[2017-03-30 12:25:49] Starting Stratum on stratum+tcp://hub.miningpoolhub.com:20
507
[2017-03-30 12:25:49] 4 miner threads started, using 'lyra2rev2' algorithm.
[2017-03-30 12:25:50] Stratum difficulty set to 4
[2017-03-30 12:25:53] Stratum difficulty set to 1.79259
[2017-03-30 12:26:03] CPU #3: 2097.15 kH, 221.35 kH/s
[2017-03-30 12:26:03] CPU #0: 2097.15 kH, 219.95 kH/s
[2017-03-30 12:26:03] CPU #2: 2097.15 kH, 218.08 kH/s
[2017-03-30 12:26:04] CPU #1: 2097.15 kH, 197.22 kH/s
[2017-03-30 12:26:09] Accepted 1/1 (100%), 7509.29 kH, 851.53 kH/s

It's OK with 3.6.0 avx and other versions thought (slower, of course). Hope that info helps.
joblo (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1114


View Profile
March 30, 2017, 01:53:39 PM
Last edit: March 30, 2017, 03:43:56 PM by joblo
 #2339

Seems that lyra2rev2 is broken in 3.6.0 avx2 build. When I launch the miner, cli doesn't show cpu threads at all, then miner quits after ~15 seconds. It's OK on 3.5.12 avx2 with same settings:

3.6.0:
cpuminer-aes-avx2 -a lyra2rev2 -t 4 -o stratum+tcp://hub.miningpoolhub.com:20507 -u qwerty -p qwerty

CPU: Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz
CPU features: SSE2 AES AVX AVX2
SW built on Mar 15 2017 with GCC 4.8.3
SW features: SSE2 AES AVX AVX2
Algo features: SSE2 AES AVX AVX2
Start mining with SSE2 AES AVX AVX2

[2017-03-30 12:23:07] Starting Stratum on stratum+tcp://hub.miningpoolhub.com:20
507
[2017-03-30 12:23:07] 4 miner threads started, using 'lyra2rev2' algorithm.
[2017-03-30 12:23:07] Stratum difficulty set to 4

Then, miner quits after a short time. No crashes, just quit.

3.5.12:
cpuminer-aes-avx2 -a lyra2rev2 -t 4 -o stratum+tcp://hub.miningpoolhub.com:20507 -u qwerty -p qwerty

[2017-03-30 12:25:49] Starting Stratum on stratum+tcp://hub.miningpoolhub.com:20
507
[2017-03-30 12:25:49] 4 miner threads started, using 'lyra2rev2' algorithm.
[2017-03-30 12:25:50] Stratum difficulty set to 4
[2017-03-30 12:25:53] Stratum difficulty set to 1.79259
[2017-03-30 12:26:03] CPU #3: 2097.15 kH, 221.35 kH/s
[2017-03-30 12:26:03] CPU #0: 2097.15 kH, 219.95 kH/s
[2017-03-30 12:26:03] CPU #2: 2097.15 kH, 218.08 kH/s
[2017-03-30 12:26:04] CPU #1: 2097.15 kH, 197.22 kH/s
[2017-03-30 12:26:09] Accepted 1/1 (100%), 7509.29 kH, 851.53 kH/s

It's OK with 3.6.0 avx and other versions thought (slower, of course). Hope that info helps.

You're right, crashes on Windows, but works on Linux. I need to investigate.

Edit:

Lyra2REv2 AVX2 works on Windows with 3.5.13 and it might be a little faster than 3.5.12.

There are no changes to the Lyra2 code between 3.5.13 and 3.6.0 so I don't have any clues.
It's going to take a while to figure this out.

AKA JayDDee, cpuminer-opt developer. https://github.com/JayDDee/cpuminer-opt
https://bitcointalk.org/index.php?topic=5226770.msg53865575#msg53865575
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
integrale
Full Member
***
Offline Offline

Activity: 144
Merit: 100


Eager to learn


View Profile
March 30, 2017, 09:55:32 PM
 #2340

Wave, person,

Would anyone have a tutorial on how to use download, compile and use this miner in UBuntu?
Quote
hi LukkasG
i could try to help you out, but need some info about your OS and hardware  pm me if you need help

cheers Integrale

AltCoin-Mining @ Xubuntu 16.04 LTS
Pages: « 1 ... 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 [117] 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 ... 197 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!