Пример #1
0
 protected virtual string AlgorithmName()
 {
     if (_algorithmSecondType != AlgorithmType.NONE)
     {
         var ret = $"{PluginSupportedAlgorithms.AlgorithmName(_algorithmType)}+{PluginSupportedAlgorithms.AlgorithmName(_algorithmSecondType)}";
         return(ret);
     }
     // default single algo
     return(PluginSupportedAlgorithms.AlgorithmName(_algorithmType));
 }
Пример #2
0
        IReadOnlyList <Algorithm> GetAMDSupportedAlgorithms(AMDDevice gpu)
        {
            var algorithms = PluginSupportedAlgorithms.GetSupportedAlgorithmsAMD(PluginUUID);

            if (PluginSupportedAlgorithms.UnsafeLimits(PluginUUID))
            {
                return(algorithms);
            }
            var filteredAlgorithms = Filters.FilterInsufficientRamAlgorithmsList(gpu.GpuRam, algorithms);

            return(filteredAlgorithms);
        }
Пример #3
0
 public GMinerPlugin()
 {
     // set default internal settings
     MinerOptionsPackage    = PluginInternalSettings.MinerOptionsPackage;
     GetApiMaxTimeoutConfig = PluginInternalSettings.GetApiMaxTimeoutConfig;
     DefaultTimeout         = PluginInternalSettings.DefaultTimeout;
     // https://bitcointalk.org/index.php?topic=5034735.0 | https://github.com/develsoftware/GMinerRelease/releases
     MinersBinsUrlsSettings = new MinersBinsUrlsSettings
     {
         BinVersion = "1.67",
         ExePath    = new List <string> {
             "miner.exe"
         },
         Urls = new List <string>
         {
             "https://github.com/develsoftware/GMinerRelease/releases/download/1.67/gminer_1_67_windows64.zip", // original
         }
     };
     PluginMetaInfo = new PluginMetaInfo
     {
         PluginDescription          = "GMiner - High-performance miner for AMD/Nvidia GPUs.",
         SupportedDevicesAlgorithms = PluginSupportedAlgorithms.SupportedDevicesAlgorithmsDict()
     };
 }
Пример #4
0
 protected virtual string AlgorithmName(AlgorithmType algorithmType) => PluginSupportedAlgorithms.AlgorithmName(algorithmType);