Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 79b4265

Browse files
committed
eqm use 2 threads per device by default, gives best performance
1 parent 275a45b commit 79b4265

File tree

1 file changed

+8
-2
lines changed
  • NiceHashMiner/Miners/Equihash

1 file changed

+8
-2
lines changed

NiceHashMiner/Miners/Equihash/eqm.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ protected override string GetDevicesCommandString() {
3434
if (NVIDIA_Setup.IsInit) {
3535
deviceStringCommand += " -cd ";
3636
foreach (var nvidia_pair in NVIDIA_Setup.MiningPairs) {
37-
for (int i = 0; i < ExtraLaunchParametersParser.GetEqmCudaThreadCount(nvidia_pair); ++i) {
38-
deviceStringCommand += nvidia_pair.Device.ID + " ";
37+
if (nvidia_pair.CurrentExtraLaunchParameters.Contains("-ct")) {
38+
for (int i = 0; i < ExtraLaunchParametersParser.GetEqmCudaThreadCount(nvidia_pair); ++i) {
39+
deviceStringCommand += nvidia_pair.Device.ID + " ";
40+
}
41+
} else { // use default 2 best performance
42+
for (int i = 0; i < 2; ++i) {
43+
deviceStringCommand += nvidia_pair.Device.ID + " ";
44+
}
3945
}
4046
}
4147
// no extra launch params

0 commit comments

Comments
 (0)