IReadOnlyList <Algorithm> GetSupportedAlgorithms(CUDADevice gpu)
        {
            var algorithms = PluginSupportedAlgorithms.GetSupportedAlgorithmsNVIDIA(PluginUUID).ToList();

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

            return(filteredAlgorithms);
        }
 public EwbfPlugin()
 {
     // set default internal settings
     MinerOptionsPackage = PluginInternalSettings.MinerOptionsPackage;
     // https://bitcointalk.org/index.php?topic=4466962.0
     MinersBinsUrlsSettings = new MinersBinsUrlsSettings
     {
         BinVersion = "v0.6",
         ExePath    = new List <string> {
             "EWBF Equihash miner v0.6", "miner.exe"
         },
         Urls = new List <string>
         {
             "https://github.com/nicehash/MinerDownloads/releases/download/1.9.1.5/EWBF.Equihash.miner.v0.6.7z",
             "https://mega.nz/#F!fsAlmZQS!CwVgFfBDduQI-CbwVkUEpQ?Tlp22YKT" // original
         }
     };
     PluginMetaInfo = new PluginMetaInfo
     {
         PluginDescription          = "EWBF is Cuda Equihash Miner.",
         SupportedDevicesAlgorithms = PluginSupportedAlgorithms.SupportedDevicesAlgorithmsDict()
     };
 }
 private string AlgorithmName(AlgorithmType algorithmType) => PluginSupportedAlgorithms.AlgorithmName(algorithmType);