Hi all; Has anyone had success with the integrated gem5 power and thermal model? I'm trying to hook up a basic CPU power model in fs mode as is shown in config/example/arm/fs_power.py:
# Wire up some example power models to the CPUs > for cpu in root.system.descendants(): > if not isinstance(cpu, m5.objects.BaseCPU): > continue > cpu.default_p_state = "ON" > cpu.power_model = CpuPowerModel() However, I get the following error: Global frequency set at 1000000000000 ticks per second > Error in unproxying param 'subsystem' of system.cpu.power_model > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/home/donny/repos/gem5/gem5-asoc/src/python/m5/main.py", line 435, > in main > exec filecode in scope > File "configs/example/fs_asoc.py", line 486, in <module> > Simulation.run(options, root, test_sys, FutureClass) > File "/home/donny/repos/gem5/gem5-asoc/configs/common/Simulation.py", > line 600, in run > m5.instantiate(checkpoint_dir) > File "/home/donny/repos/gem5/gem5-asoc/src/python/m5/simulate.py", line > 92, in instantiate > for obj in root.descendants(): obj.unproxyParams() > File "/home/donny/repos/gem5/gem5-asoc/src/python/m5/SimObject.py", line > 1347, in unproxyParams > value = value.unproxy(self) > File "/home/donny/repos/gem5/gem5-asoc/src/python/m5/proxy.py", line > 121, in unproxy > (self.path(), self._pdesc.ptype_str, base.path()) > AttributeError: Can't resolve proxy 'any' of type 'SubSystem' from > 'system.cpu.power_model' It appears that the default value of "Parent.any" for the "subsystem" parameter for the PowerModel is not working correctly -- you can see that my power_model is a child of system.cpu. The parameters and defaults are defined in src/sim/power/PowerModel.py. Any help is greatly appreciated. Thanks -Donny
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
