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

Commit 18a0ad7

Browse files
committed
add dagger exceptions
1 parent 56b8764 commit 18a0ad7

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

NiceHashMiner/Devices/ComputeDeviceManager.cs

+10
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,16 @@ public static void ResetAvaliableAlgorithmsForDevice() {
876876
dev._3rdPartyMinerChange();
877877
}
878878
}
879+
880+
public static int GetCountForType(DeviceType type) {
881+
int count = 0;
882+
foreach (var device in Avaliable.AllAvaliableDevices) {
883+
if (device.DeviceType == type) {
884+
++count;
885+
}
886+
}
887+
return count;
888+
}
879889
}
880890

881891
public static class Group {

NiceHashMiner/Devices/GroupAlgorithms.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,18 @@ public static Dictionary<AlgorithmType, Algorithm> CreateForDevice(ComputeDevice
102102

103103
// drivers algos issue
104104
if (device.DriverDisableAlgos) {
105-
List<AlgorithmType> _3rdPartyOnlyAlgos = new List<AlgorithmType>() { AlgorithmType.NeoScrypt, AlgorithmType.Lyra2REv2 };
105+
List<AlgorithmType> _3rdPartyOnlyAlgos = new List<AlgorithmType>() { AlgorithmType.NeoScrypt, AlgorithmType.Lyra2REv2, AlgorithmType.DaggerHashimoto };
106106
foreach (var algoType in _3rdPartyOnlyAlgos) {
107107
if (algoSettings.ContainsKey(algoType)) {
108108
algoSettings.Remove(algoType);
109109
}
110110
}
111111
}
112+
if (ComputeDeviceManager.Avaliable.GetCountForType(DeviceType.AMD) > 4) {
113+
if (algoSettings.ContainsKey(AlgorithmType.DaggerHashimoto)) {
114+
algoSettings.Remove(AlgorithmType.DaggerHashimoto);
115+
}
116+
}
112117
}
113118

114119
// check if it is Etherum capable

0 commit comments

Comments
 (0)