public void OverClock( int gpuIndex, int coreClockMHz, int coreClockVoltage, int memoryClockMHz, int memoryClockVoltage, int powerLimit, int tempLimit, int fanSpeed) { if (gpuIndex == NTMinerContext.GpuAllId) { foreach (var gpu in NTMinerContext.Instance.GpuSet.AsEnumerable()) { if (gpu.Index == NTMinerContext.GpuAllId) { continue; } _gpuHelper.OverClock( gpu, coreClockMHz, coreClockVoltage, memoryClockMHz, memoryClockVoltage, powerLimit, tempLimit, fanSpeed); } } else { if (!NTMinerContext.Instance.GpuSet.TryGetGpu(gpuIndex, out IGpu gpu)) { return; } _gpuHelper.OverClock( gpu, coreClockMHz, coreClockVoltage, memoryClockMHz, memoryClockVoltage, powerLimit, tempLimit, fanSpeed); } }
public void OverClock(int gpuIndex, OverClockValue value) { if (gpuIndex == NTMinerContext.GpuAllId) { foreach (var gpu in NTMinerContext.Instance.GpuSet.AsEnumerable()) { if (gpu.Index == NTMinerContext.GpuAllId) { continue; } _gpuHelper.OverClock(gpu, value); } } else { if (!NTMinerContext.Instance.GpuSet.TryGetGpu(gpuIndex, out IGpu gpu)) { return; } _gpuHelper.OverClock(gpu, value); } }