IGpuNameSet.cs 581 B

123456789101112131415161718
  1. using NTMiner.Core.Gpus;
  2. using System.Collections.Generic;
  3. namespace NTMiner.Core {
  4. public interface IGpuNameSet {
  5. /// <summary>
  6. /// 该集合的成员是异步从redis中加载数据初始化的,所以有了这个IsReadied属性。
  7. /// </summary>
  8. bool IsReadied { get; }
  9. /// <summary>
  10. ///
  11. /// </summary>
  12. /// <param name="gpuName"></param>
  13. /// <param name="gpuTotalMemory">字节</param>
  14. void Add(string gpuName, ulong gpuTotalMemory);
  15. IEnumerable<IGpuName> AsEnumerable();
  16. }
  17. }