-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2224 from nicehash/master-plugins-changes
Master plugins changes
- Loading branch information
Showing
79 changed files
with
16,450 additions
and
1,519 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
8,047 changes: 7,679 additions & 368 deletions
8,047
installer/nhm_windows_x.y.z.r-template/EULA.rtf
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
device_detection_x64 from https://github.com/nicehash/DeviceDetection/releases/tag/v2.1 | ||
device_detection_x64 extracted from https://github.com/nicehash/DeviceDetection/releases/download/v2.1/device_detection_x64_signed.zip |
Binary file not shown.
Binary file modified
BIN
+15 KB
(110%)
pre_compiled_libs/device_detection_x64/device_detection_cpu.dll
Binary file not shown.
Binary file modified
BIN
+15 KB
(110%)
pre_compiled_libs/device_detection_x64/device_detection_cuda_nvml.dll
Binary file not shown.
Binary file modified
BIN
+15 KB
(110%)
pre_compiled_libs/device_detection_x64/device_detection_opencl.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+15 KB
(110%)
pre_compiled_libs/device_monitoring_x64/device_monitoring_amd.dll
Binary file not shown.
Binary file added
BIN
+153 KB
pre_compiled_libs/device_monitoring_x64/device_monitoring_amd_nosig.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ public CryptoDredgePlugin() | |
}; | ||
} | ||
|
||
public override Version Version => new Version(14, 0); | ||
public override Version Version => new Version(15, 0); | ||
public override string Name => "CryptoDredge"; | ||
|
||
public override string Author => "[email protected]"; | ||
|
@@ -44,9 +44,8 @@ public CryptoDredgePlugin() | |
public override Dictionary<BaseDevice, IReadOnlyList<Algorithm>> GetSupportedAlgorithms(IEnumerable<BaseDevice> devices) | ||
{ | ||
var supported = new Dictionary<BaseDevice, IReadOnlyList<Algorithm>>(); | ||
#warning TEMP disable NVIDIA driver check | ||
//var isDriverCompatible = Checkers.IsCudaCompatibleDriver(Checkers.CudaVersion.CUDA_10_1_105, CUDADevice.INSTALLED_NVIDIA_DRIVERS); | ||
//if (!isDriverCompatible) return supported; | ||
var isDriverCompatible = Checkers.IsCudaCompatibleDriver(Checkers.CudaVersion.CUDA_10_1_105, CUDADevice.INSTALLED_NVIDIA_DRIVERS); | ||
if (!isDriverCompatible) return supported; | ||
|
||
var cudaGpus = devices.Where(dev => dev is CUDADevice cuda && cuda.SM_major >= 5).Cast<CUDADevice>(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
//#define DISABLE_IDevicesCrossReference | ||
using NHM.MinerPluginToolkitV1; | ||
using NHM.MinerPluginToolkitV1; | ||
using NHM.MinerPluginToolkitV1.Configs; | ||
using NHM.MinerPluginToolkitV1.Interfaces; | ||
using NHM.Common; | ||
|
@@ -27,11 +26,11 @@ public NBMinerPlugin() | |
// https://github.com/NebuTech/NBMiner/releases/ | ||
MinersBinsUrlsSettings = new MinersBinsUrlsSettings | ||
{ | ||
BinVersion = "v33.7", | ||
BinVersion = "v33.8", | ||
ExePath = new List<string> { "NBMiner_Win", "nbminer.exe" }, | ||
Urls = new List<string> | ||
{ | ||
"https://github.com/NebuTech/NBMiner/releases/download/v33.7/NBMiner_33.7_Win.zip", // original | ||
"https://github.com/NebuTech/NBMiner/releases/download/v33.8/NBMiner_33.8_Win.zip", // original | ||
} | ||
}; | ||
PluginMetaInfo = new PluginMetaInfo | ||
|
@@ -43,7 +42,7 @@ public NBMinerPlugin() | |
|
||
public override string PluginUUID => "f683f550-94eb-11ea-a64d-17be303ea466"; | ||
|
||
public override Version Version => new Version(14, 6); | ||
public override Version Version => new Version(15, 0); | ||
public override string Name => "NBMiner"; | ||
|
||
public override string Author => "[email protected]"; | ||
|
@@ -58,6 +57,8 @@ private static bool isSupportedVersion(int major, int minor) | |
new Version(6,1), | ||
new Version(7,0), | ||
new Version(7,5), | ||
new Version(8,0), | ||
new Version(8,6), | ||
}; | ||
var cudaDevSMver = new Version(major, minor); | ||
foreach (var supportedVer in nbMinerSMSupportedVersions) | ||
|
@@ -99,10 +100,8 @@ public override Dictionary<BaseDevice, IReadOnlyList<Algorithm>> GetSupportedAlg | |
|
||
private static bool IsSupportedNvidiaDevice(BaseDevice dev) | ||
{ | ||
#warning TEMP disable NVIDIA driver check | ||
//var minDrivers = new Version(377, 0); | ||
//var isDriverSupported = CUDADevice.INSTALLED_NVIDIA_DRIVERS >= minDrivers; | ||
var isDriverSupported = true; | ||
var minDrivers = new Version(377, 0); | ||
var isDriverSupported = CUDADevice.INSTALLED_NVIDIA_DRIVERS >= minDrivers; | ||
var device = dev as CUDADevice; | ||
var isSupported = isSupportedVersion(device.SM_major, device.SM_minor); | ||
return isDriverSupported && isSupported; | ||
|
@@ -122,11 +121,6 @@ protected override MinerBase CreateMinerBase() | |
|
||
public async Task DevicesCrossReference(IEnumerable<BaseDevice> devices) | ||
{ | ||
#if DISABLE_IDevicesCrossReference | ||
await Task.CompletedTask; | ||
#else | ||
#warning Blocks exit. Check if this is fixed with newer versions | ||
//return; | ||
try | ||
{ | ||
if (_mappedIDs.Count == 0) return; | ||
|
@@ -141,12 +135,11 @@ public async Task DevicesCrossReference(IEnumerable<BaseDevice> devices) | |
var indexID = kvp.Value; | ||
_mappedIDs[uuid] = indexID; | ||
} | ||
} catch(Exception ex) | ||
} | ||
catch(Exception ex) | ||
{ | ||
Logger.Error("NBMiner", $"Error during DevicesCrossReference: {ex.Message}"); | ||
} | ||
|
||
#endif | ||
} | ||
|
||
public override IEnumerable<string> CheckBinaryPackageMissingFiles() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,7 @@ public PhoenixPlugin() | |
ExePath = new List<string> { "PhoenixMiner_5.2e_Windows", "PhoenixMiner.exe" }, | ||
Urls = new List<string> | ||
{ | ||
"https://github.com/nicehash/MinerDownloads/releases/download/3.0.0.2/PhoenixMiner_5.2e_Windows.zip", | ||
"https://mega.nz/folder/3d11FaCb#l4PhGSvL8fiQ6oxzO57szg/file/mYt3FaAa" // original | ||
"https://mega.nz/folder/3d11FaCb#l4PhGSvL8fiQ6oxzO57szg/file/mYt3FaAa" // original | ||
} | ||
}; | ||
PluginMetaInfo = new PluginMetaInfo | ||
|
@@ -42,7 +41,7 @@ public PhoenixPlugin() | |
|
||
public override string PluginUUID => "fa369d10-94eb-11ea-a64d-17be303ea466"; | ||
|
||
public override Version Version => new Version(14, 6); | ||
public override Version Version => new Version(15, 0); | ||
public override string Name => "Phoenix"; | ||
|
||
public override string Author => "[email protected]"; | ||
|
@@ -70,9 +69,7 @@ public override Dictionary<BaseDevice, IReadOnlyList<Algorithm>> GetSupportedAlg | |
} | ||
|
||
var supported = new Dictionary<BaseDevice, IReadOnlyList<Algorithm>>(); | ||
#warning TEMP disable NVIDIA driver check | ||
//var isDriverSupported = CUDADevice.INSTALLED_NVIDIA_DRIVERS >= new Version(377, 0); | ||
var isDriverSupported = true; | ||
var isDriverSupported = CUDADevice.INSTALLED_NVIDIA_DRIVERS >= new Version(377, 0); | ||
var supportedGpus = gpus.Where(dev => IsSupportedAMDDevice(dev) || IsSupportedNVIDIADevice(dev, isDriverSupported)); | ||
|
||
foreach (var gpu in supportedGpus) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,19 +39,16 @@ public TRexPlugin() | |
|
||
public override string PluginUUID => "03f80500-94ec-11ea-a64d-17be303ea466"; | ||
|
||
public override Version Version => new Version(14, 8); | ||
public override Version Version => new Version(15, 0); | ||
|
||
public override string Name => "TRex"; | ||
|
||
public override string Author => "[email protected]"; | ||
|
||
public override Dictionary<BaseDevice, IReadOnlyList<Algorithm>> GetSupportedAlgorithms(IEnumerable<BaseDevice> devices) | ||
{ | ||
#warning TEMP disable NVIDIA driver check | ||
////var isDriverSupported = Checkers.IsCudaCompatibleDriver(Checkers.CudaVersion.CUDA_11_0_3_Update1, CUDADevice.INSTALLED_NVIDIA_DRIVERS); // TODO restore after major version 15 | ||
//var CUDA11 = new Version(451, 82); | ||
//var isDriverSupported = CUDADevice.INSTALLED_NVIDIA_DRIVERS >= CUDA11; // TODO <= CUDA 11 is not inside the toolkit before miner plugins major version 15 | ||
var isDriverSupported = true; // always enable workaround | ||
var CUDA11 = new Version(451, 82); | ||
var isDriverSupported = CUDADevice.INSTALLED_NVIDIA_DRIVERS >= CUDA11; // TODO <= CUDA 11 is not inside the toolkit before miner plugins major version 15 | ||
var cudaGpus = devices.Where(dev => dev is CUDADevice cuda && cuda.SM_major >= 3 && isDriverSupported).Cast<CUDADevice>(); | ||
var supported = new Dictionary<BaseDevice, IReadOnlyList<Algorithm>>(); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ public TTMinerPlugin() | |
ExePath = new List<string> { "TT-Miner.exe" }, | ||
Urls = new List<string> | ||
{ | ||
"https://github.com/nicehash/MinerDownloads/releases/download/3.0.0.2/TT-Miner-4.0.0.3.zip", | ||
"https://tradeproject.de/download/Miner/TT-Miner-4.0.3.zip" // original | ||
} | ||
}; | ||
|
@@ -42,7 +41,7 @@ public TTMinerPlugin() | |
|
||
public override string PluginUUID => "074d4a80-94ec-11ea-a64d-17be303ea466"; | ||
|
||
public override Version Version => new Version(14, 0); | ||
public override Version Version => new Version(15, 0); | ||
public override string Name => "TTMiner"; | ||
public override string Author => "[email protected]"; | ||
|
||
|
@@ -57,10 +56,9 @@ public override Dictionary<BaseDevice, IReadOnlyList<Algorithm>> GetSupportedAlg | |
{ | ||
var supported = new Dictionary<BaseDevice, IReadOnlyList<Algorithm>>(); | ||
|
||
#warning TEMP disable NVIDIA driver check | ||
//// Require 398.26 | ||
//var minDrivers = new Version(398, 26); | ||
//if (CUDADevice.INSTALLED_NVIDIA_DRIVERS < minDrivers) return supported; | ||
// Require 398.26 | ||
var minDrivers = new Version(398, 26); | ||
if (CUDADevice.INSTALLED_NVIDIA_DRIVERS < minDrivers) return supported; | ||
|
||
|
||
var cudaGpus = devices | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.