Seyedhamidreza Motaman writes: > Hello Lluis > I would really appreciate if you tell me how to run your script for > extracting . > xml file for mcpat is there any tutorial file. I used this site but after > downloading the last file I confronted with this error." This program requires > jinja2 version 2.7 or later"
Latest Debian and Ubuntu come with such version. To install the package: sudo apt-get install python-jinja2 If you use some other system, you will have to look for a way to install the package. You can also do a local installation in your home directory using virtualenv (http://www.virtualenv.org): virtualenv ~/some-dir . ~/some-dir/bin/activate pip install "jinja2>=2.7" Every time you want to execute the gem5-mcpat script: # make the locally-installed jinja available . ~/some-dir/bin/activate # the script itself /path/to/gem5-mcpat -h /path/to/gem5-mcpat generate -h /path/to/gem5-mcpat generate /path/to/gem5/config.json /path/to/gem5/stats.txt example.xml Lluis > On Tue, Apr 15, 2014 at 7:13 AM, Lluís Vilanova <vilan...@ac.upc.edu> wrote: > Sobhan Niknam writes: >> Hi, >> I need to use GEM5 and McPAT together. Also, I use ALPHA Architectures > over >> GEM5. I need to have the power analysis of all components in Gem5 > simulation. >> for extracting power from output of Gem5 with McPAT, I searched a lot, and > find >> valid parsers or methods to integrate GEM5 with McPAT, I tried with the > scripts >> available, like m5-mcpat.pl, m5-mcpat-parser-se.py but could not work and > I >> encountered with errors. >> Unfortunately I don't have time for writing parser myself. please, help if > you >> have working methods/scripts and notes for learning. >> also if there is any other alternative for power analysis. > You could try with this: > https://projects.gso.ac.upc.edu/projects/gem5-mcpat/repository > I've recently updated it to parse the results of a newer gem5 version, but > you > might still have to adapt the templates to your needs (in case you're not > using > the configuration I needed). In any case, the they are broken down into > interchangeable pieces; take a look at the "main" file > "gem5_mcpat/templates/example.xml". > Hope that helps. > Lluis > -- > "And it's much the same thing with knowledge, for whenever you learn > something new, the whole world becomes that much richer." > -- The Princess of Pure Reason, as told by Norton Juster in The Phantom > Tollbooth > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users