Dear All,
I'm new to gem5. Recently I tired to integrate McPAT on gem5. I found two 
possible tools:
1. m5-mcpat-parse-se.py, http://cseweb.ucsd.edu/~rstrong/
2. m5-mcpat.pl, https://www.cl.cam.ac.uk/~acr31/sicsa/

I tried a simple example in gem5 to get the output files:
build/ARM/gem5.opt configs/example/se.py -c 
tests/test-progs/hello/bin/arm/linux/hello

I used m5-mcpat-parse-se.py to transform the output files but got the following 
error information:
ERROR, UNEXPECTED EXCEPTION
int() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
 File "m5-mcpat-parse-se.py", line 1896, in <module>
 exit_code = main()
 File "m5-mcpat-parse-se.py", line 1847, in main
 run()
 File "m5-mcpat-parse-se.py", line 1036, in run
 parseSystemConfig(config_file_path, stat_file_path, out_file_path, 
out_file_path_2, component_hash, stats_hash)
 File "m5-mcpat-parse-se.py", line 1682, in parseSystemConfig
 createComponentTree (cht, sht)
 File "m5-mcpat-parse-se.py", line 1568, in createComponentTree
 generateCalcStats(cht, sht)
 File "m5-mcpat-parse-se.py", line 1494, in generateCalcStats
 cht[options.system_name].statistics["total_cycles"] = 
str(int(sht["%s.sim_ticks"%(options.system_name)])/int(fastest_clock))
TypeError: int() argument must be a string or a number, not 'NoneType'

I used m5-mcpat.pl to get the xml file and used mcpat-exec.pl to run McPAT, but 
also got errors:
Parse error (couldn't find runtime_sec in XML file)

Then I used McPAT directly to run the XML file generated by m5-mcpat.pl, but 
got the following error information:
ERROR: no valid tag organizations found

I guess these two tools are too old to support the current version of gem5.
Does anyone has a modified tools for McPAT integration or some clues on how to 
fix it?
Thank you very much for any comments!

--
Best regards,
Hongyuan Ding
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to