public ATIGPU(ADLAdapterInfo adapterInfo) { this.adapterIndex = adapterInfo.AdapterIndex; this.busNumber = adapterInfo.BusNumber; this.deviceNumber = adapterInfo.DeviceNumber; adlt = new ADLTemperature(); afsi = new ADLFanSpeedInfo(); adlf = new ADLFanSpeedValue(); adlp = new ADLPMActivity(); gpucurr = new AtiGPUInfoNum(); gpustat = new AtiGPUStat(); gpuinfo = new AtiGPUInfo(); gpuinfo.GPUName = adapterInfo.AdapterName.Trim(); gpuinfo.Slot = adapterInfo.BusNumber; gpuinfo.Subsys = adapterInfo.UDID.Substring(adapterInfo.UDID.IndexOf("SUBSYS") + 7, 8); statcount = 60; Update(); }
public GPUParam(ADLAdapterInfo ai, int num) { adapterInfo = ai; adlt = new ADLTemperature(); afsi = new ADLFanSpeedInfo(); adlf = new ADLFanSpeedValue(); adlp = new ADLPMActivity(); type = GPUType.amd; //GPU name GPUName = adapterInfo.AdapterName.Trim(); //Slot Slot = adapterInfo.BusNumber; //Subsys Subsys = adapterInfo.UDID.Substring(adapterInfo.UDID.IndexOf("SUBSYS") + 7, 8); //Param GPU GPUParams = new List <OneParam>(); for (int i = 0; i != num; i++) { GPUParams.Insert(i, new OneParam()); } }