示例#1
0
        private IEnumerable <Algorithm> GetSupportedAlgorithms(CUDADevice gpu)
        {
            var algorithms = PluginSupportedAlgorithms.GetSupportedAlgorithmsNVIDIA(PluginUUID);

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

            return(filteredAlgorithms);
        }
示例#2
0
 public NBMinerPlugin()
 {
     // set default internal settings
     MinerOptionsPackage    = PluginInternalSettings.MinerOptionsPackage;
     DefaultTimeout         = PluginInternalSettings.DefaultTimeout;
     GetApiMaxTimeoutConfig = PluginInternalSettings.GetApiMaxTimeoutConfig;
     // https://github.com/NebuTech/NBMiner/releases/
     MinersBinsUrlsSettings = new MinersBinsUrlsSettings
     {
         BinVersion = "v26.1",
         ExePath    = new List <string> {
             "NBMiner_Win", "nbminer.exe"
         },
         Urls = new List <string>
         {
             "https://github.com/NebuTech/NBMiner/releases/download/v26.1/NBMiner_26.1_Win.zip", // original
         }
     };
     PluginMetaInfo = new PluginMetaInfo
     {
         PluginDescription          = "GPU Miner for GRIN and AE mining.",
         SupportedDevicesAlgorithms = PluginSupportedAlgorithms.SupportedDevicesAlgorithmsDict()
     };
 }