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

Commit f1f0f61

Browse files
committed
nheqminer check GPU compatibility
1 parent 6b202a6 commit f1f0f61

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

NiceHashMiner/Devices/GroupAlgorithms.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,21 @@ public static Dictionary<MinerBaseType, List<Algorithm>> CreateForDevice(Compute
125125

126126
// This is not needed anymore after excavator v1.1.4a
127127
//if (device.IsSM50() && algoSettings.ContainsKey(MinerBaseType.excavator)) {
128-
// int Equihash_index = algoSettings[MinerBaseType.excavator].FindIndex((algo) => algo.NiceHashID == AlgorithmType.Equihash );
128+
// int Equihash_index = algoSettings[MinerBaseType.excavator].FindIndex((algo) => algo.NiceHashID == AlgorithmType.Equihash);
129129
// if (Equihash_index > -1) {
130130
// // -c1 1 needed for SM50 to work ATM
131131
// algoSettings[MinerBaseType.excavator][Equihash_index].ExtraLaunchParameters = "-c1 1";
132132
// }
133133
//}
134+
// nheqminer exceptions scope
135+
{
136+
const MinerBaseType minerBaseKey = MinerBaseType.nheqminer;
137+
if (algoSettings.ContainsKey(minerBaseKey) && device.Name.Contains("GTX")
138+
&& (device.Name.Contains("560") || device.Name.Contains("650") || device.Name.Contains("680") || device.Name.Contains("770"))
139+
) {
140+
algoSettings = FilterMinerBaseTypes(algoSettings, new List<MinerBaseType>() { minerBaseKey });
141+
}
142+
}
134143
} // END algoSettings != null
135144
return algoSettings;
136145
}

0 commit comments

Comments
 (0)