Skip to content

Commit

Permalink
Merge pull request #2069 from nicehash/miners-refresh
Browse files Browse the repository at this point in the history
Miners refresh
  • Loading branch information
S74nk0 committed May 13, 2020
2 parents db7f8d8 + 7249952 commit 28bd4cd
Show file tree
Hide file tree
Showing 283 changed files with 2,755 additions and 8,052 deletions.
355 changes: 238 additions & 117 deletions NiceHashMiner.sln

Large diffs are not rendered by default.

68 changes: 0 additions & 68 deletions installer/createInstaller_production.bat

This file was deleted.

56 changes: 0 additions & 56 deletions installer/createInstaller_testdev.bat

This file was deleted.

56 changes: 0 additions & 56 deletions installer/createInstaller_testnet.bat

This file was deleted.

5 changes: 0 additions & 5 deletions installer/createInstallers.bat

This file was deleted.

27 changes: 2 additions & 25 deletions src/Miners/CCMinerTpruvot/CCMinerTpruvot.cs
@@ -1,9 +1,5 @@
using MinerPlugin;
using MinerPluginToolkitV1.CCMinerCommon;
using NHM.Common.Enums;
using System;
using System.Threading;
using System.Threading.Tasks;
using NHM.Common.Enums;
using NHM.MinerPluginToolkitV1.CCMinerCommon;

namespace CCMinerTpruvot
{
Expand All @@ -13,24 +9,5 @@ public CCMinerTpruvot(string uuid) : base(uuid)
{ }

protected override string AlgorithmName(AlgorithmType algorithmType) => PluginSupportedAlgorithms.AlgorithmName(algorithmType);

public override async Task<BenchmarkResult> StartBenchmark(CancellationToken stop, BenchmarkPerformanceType benchmarkType = BenchmarkPerformanceType.Standard)
{
var ret = await base.StartBenchmark(stop, benchmarkType);
if (_algorithmType == AlgorithmType.X16R)
{
try
{
foreach (var infoPair in ret.AlgorithmTypeSpeeds)
{
infoPair.Speed = infoPair.Speed * 0.4563831001472754;
}
}
catch (Exception)
{
}
}
return ret;
}
}
}
@@ -1,8 +1,8 @@
using MinerPluginToolkitV1.Configs;
using NHM.MinerPluginToolkitV1.Configs;
using NHM.Common.Enums;
using System.Collections.Generic;

using SAS = MinerPluginToolkitV1.Configs.PluginSupportedAlgorithmsSettings.SupportedAlgorithmSettings;
using SAS = NHM.MinerPluginToolkitV1.Configs.PluginSupportedAlgorithmsSettings.SupportedAlgorithmSettings;

namespace CCMinerTpruvot
{
Expand All @@ -17,8 +17,8 @@ public partial class CCMinerTpruvotPlugin
DeviceType.NVIDIA,
new List<SAS>
{
new SAS(AlgorithmType.X16R), // benchmark performance variations
new SAS(AlgorithmType.Lyra2REv3),
new SAS(AlgorithmType.X16R) { Enabled=false },
new SAS(AlgorithmType.Lyra2REv3)
}
}
},
Expand Down
18 changes: 6 additions & 12 deletions src/Miners/CCMinerTpruvot/CCMinerTpruvotPlugin.cs
@@ -1,5 +1,5 @@
using MinerPluginToolkitV1;
using MinerPluginToolkitV1.Configs;
using NHM.MinerPluginToolkitV1;
using NHM.MinerPluginToolkitV1.Configs;
using NHM.Common.Algorithm;
using NHM.Common.Device;
using NHM.Common.Enums;
Expand Down Expand Up @@ -34,9 +34,9 @@ public CCMinerTpruvotPlugin()
};
}

public override string PluginUUID => "2257f160-7236-11e9-b20c-f9f12eb6d835";
public override string PluginUUID => "95b390a0-94eb-11ea-a64d-17be303ea466";

public override Version Version => new Version(10, 0);
public override Version Version => new Version(11, 0);
public override string Name => "CCMinerTpruvot";

public override string Author => "info@nicehash.com";
Expand Down Expand Up @@ -75,15 +75,9 @@ public override IEnumerable<string> CheckBinaryPackageMissingFiles()
public override bool ShouldReBenchmarkAlgorithmOnDevice(BaseDevice device, Version benchmarkedPluginVersion, params AlgorithmType[] ids)
{
try
{
// X16 R is overestimated in version v1.0
var isX16R = ids.Contains(AlgorithmType.X16R);
var isOverestimatedVersion = benchmarkedPluginVersion.Major == 1 && benchmarkedPluginVersion.Minor == 0;
return isX16R && isOverestimatedVersion;
}
{}
catch (Exception)
{
}
{}
return false;
}
}
Expand Down
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<ProjectReference Include="..\MinerPluginToolkitV1\MinerPluginToolkitV1.csproj" />
<ProjectReference Include="..\..\NHM.MinerPluginToolkitV1\NHM.MinerPluginToolkitV1.csproj" />
</ItemGroup>

<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/Miners/CCMinerTpruvot/PluginInternalSettings.cs
@@ -1,5 +1,5 @@
using MinerPluginToolkitV1.CCMinerCommon;
using MinerPluginToolkitV1.ExtraLaunchParameters;
using NHM.MinerPluginToolkitV1.CCMinerCommon;
using NHM.MinerPluginToolkitV1.ExtraLaunchParameters;

namespace CCMinerTpruvot
{
Expand Down

0 comments on commit 28bd4cd

Please sign in to comment.