public LolMinerBeamPlugin() { // set default internal settings MinerOptionsPackage = PluginInternalSettings.MinerOptionsPackage; MinerSystemEnvironmentVariables = PluginInternalSettings.MinerSystemEnvironmentVariables; // https://github.com/Lolliedieb/lolMiner-releases/releases | https://bitcointalk.org/index.php?topic=4724735.0 MinersBinsUrlsSettings = new MinersBinsUrlsSettings { BinVersion = "0.91", ExePath = new List <string> { "0.9.1_hotfix", "lolMiner.exe" }, Urls = new List <string> { "https://github.com/Lolliedieb/lolMiner-preview/releases/download/0.9.1hotfix/lolMiner_v091_hotfix_Win64.zip", // original source // non hotfix // https://github.com/Lolliedieb/lolMiner-releases/releases/download/0.91/lolMiner_v091_Win64.zip } }; PluginMetaInfo = new PluginMetaInfo { PluginDescription = "Miner for AMD and NVIDIA gpus.", SupportedDevicesAlgorithms = PluginSupportedAlgorithms.SupportedDevicesAlgorithmsDict() }; }
private IEnumerable <Algorithm> GetSupportedAlgorithms(IGpuDevice gpu) { var isAMD = gpu is AMDDevice; List <Algorithm> algorithms; if (isAMD) { algorithms = PluginSupportedAlgorithms.GetSupportedAlgorithmsAMD(PluginUUID); } else { // NVIDIA OpenCL backend stability is questionable algorithms = PluginSupportedAlgorithms.GetSupportedAlgorithmsNVIDIA(PluginUUID); } if (PluginSupportedAlgorithms.UnsafeLimits(PluginUUID)) { return(algorithms); } var filteredAlgorithms = Filters.FilterInsufficientRamAlgorithmsList(gpu.GpuRam, algorithms); return(filteredAlgorithms); }
protected virtual string AlgorithmName(AlgorithmType algorithmType) => PluginSupportedAlgorithms.AlgorithmName(algorithmType);