Esempio n. 1
0
            public Core(Amd17Cpu cpu, int id)
            {
                _cpu        = cpu;
                Threads     = new List <CpuId>();
                CoreId      = id;
                _clock      = new Sensor("Core #" + CoreId, cpu._sensorClock++, SensorType.Clock, cpu, cpu._settings);
                _multiplier = new Sensor("Core #" + CoreId, cpu._sensorMulti++, SensorType.Factor, cpu, cpu._settings);
                _power      = new Sensor("Core #" + CoreId + " (SMU)", cpu._sensorPower++, SensorType.Power, cpu, cpu._settings);
                _vcore      = new Sensor("Core #" + CoreId + " VID", cpu._sensorVoltage++, SensorType.Voltage, cpu, cpu._settings);

                cpu.ActivateSensor(_clock);
                cpu.ActivateSensor(_multiplier);
                cpu.ActivateSensor(_power);
                cpu.ActivateSensor(_vcore);
            }
Esempio n. 2
0
            public Processor(Hardware hardware)
            {
                _cpu = (Amd17Cpu)hardware;

                _packagePower            = new Sensor("Package Power", _cpu._sensorPower++, SensorType.Power, _cpu, _cpu._settings);
                _coreTemperatureTctl     = new Sensor("Core (Tctl)", _cpu._sensorTemperatures++, SensorType.Temperature, _cpu, _cpu._settings);
                _coreTemperatureTdie     = new Sensor("Core (Tdie)", _cpu._sensorTemperatures++, SensorType.Temperature, _cpu, _cpu._settings);
                _coreTemperatureTctlTdie = new Sensor("Core (Tctl/Tdie)", _cpu._sensorTemperatures++, SensorType.Temperature, _cpu, _cpu._settings);
                _ccdTemperatures         = new Sensor[8]; // Hardcoded until there's a way to get max CCDs.
                _coreVoltage             = new Sensor("Core (SVI2 TFN)", _cpu._sensorVoltage++, SensorType.Voltage, _cpu, _cpu._settings);
                _socVoltage = new Sensor("SoC (SVI2 TFN)", _cpu._sensorVoltage++, SensorType.Voltage, _cpu, _cpu._settings);
                _busClock   = new Sensor("Bus Speed", _cpu._sensorClock++, SensorType.Clock, _cpu, _cpu._settings);

                _cpu.ActivateSensor(_packagePower);
            }
Esempio n. 3
0
            public Processor(Hardware hw)
            {
                _hw   = (Amd17Cpu)hw;
                Nodes = new List <NumaNode>();

                _packagePower            = new Sensor("Package Power", _hw._sensorPower++, SensorType.Power, _hw, _hw._settings);
                _coreTemperatureTctl     = new Sensor("Core (Tctl)", _hw._sensorTemperatures++, SensorType.Temperature, _hw, _hw._settings);
                _coreTemperatureTdie     = new Sensor("Core (Tdie)", _hw._sensorTemperatures++, SensorType.Temperature, _hw, _hw._settings);
                _coreTemperatureTctlTdie = new Sensor("Core (Tctl/Tdie)", _hw._sensorTemperatures++, SensorType.Temperature, _hw, _hw._settings);
                _ccdTemperatures         = new Sensor[8]; // Hardcoded until there's a way to get max CCDs.
                _coreVoltage             = new Sensor("Core (SVI2 TFN)", _hw._sensorVoltage++, SensorType.Voltage, _hw, _hw._settings);
                _socVoltage = new Sensor("SoC (SVI2 TFN)", _hw._sensorVoltage++, SensorType.Voltage, _hw, _hw._settings);

                _hw.ActivateSensor(_packagePower);
            }
            public Processor(Hardware hw)
            {
                _hw   = (Amd17Cpu)hw;
                Nodes = new List <NumaNode>();

                _packagePower        = new Sensor("Package Power", _hw._sensorPower++, SensorType.Power, _hw, _hw._settings);
                _coreTemperatureTctl = new Sensor("Core (Tctl)", _hw._sensorTemperatures++, SensorType.Temperature, _hw, _hw._settings);
                _coreTemperatureTdie = new Sensor("Core (Tdie)", _hw._sensorTemperatures++, SensorType.Temperature, _hw, _hw._settings);
                _coreVoltage         = new Sensor("Core (SVI2 TFN)", _hw._sensorVoltage++, SensorType.Voltage, _hw, _hw._settings);
                _socVoltage          = new Sensor("SoC (SVI2 TFN)", _hw._sensorVoltage++, SensorType.Voltage, _hw, _hw._settings);

                _hw.ActivateSensor(_packagePower);
                _hw.ActivateSensor(_coreTemperatureTctl);
                _hw.ActivateSensor(_coreTemperatureTdie);
                _hw.ActivateSensor(_coreVoltage);
            }
Esempio n. 5
0
 public NumaNode(Amd17Cpu cpu, int id)
 {
     Cores  = new List <Core>();
     NodeId = id;
     _cpu   = cpu;
 }
Esempio n. 6
0
 public NumaNode(Hardware hw, int id)
 {
     Cores  = new List <Core>();
     NodeId = id;
     _hw    = (Amd17Cpu)hw;
 }