Discussion:
Gem5 and McPAT error
(too old to reply)
Weizheng Xu
2018-09-24 20:10:18 UTC
Permalink
Dear all,

I use gem5 get the full system simulation results and want to use McPAT to get the power model. I use the Gem5ToMcpat.py and template_xeon.xml gotten from website to translate the stats.txt to the output.xml, which can be read as input by McPAT. But when I use this output.xml as a input for McPAT (I use command ./mcpat -infile /home//Desktop/test/gem5/ext/mcpat/out.xml in the terminal to run the McPAT), I got the error shown as following:
"McPAT (version 0.8 of Aug, 2010) is computing the target processor...

some value(s) of number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not correct!”

I tried to change these values in the template_xeon.xml but still failed with this problem.

I really don’t know how to solve this problem.

PS: I use ubuntu16.04 LTS and gem5. I use the McPAT provided in the gem5/ext file and with version of 0.8

Any help appreciated,
thanks

Weizheng
Andreas Brokalakis
2018-09-25 12:10:47 UTC
Permalink
Dear Weizheng,

you are using a quite old version of McPAT. Current version is 1.3. It
would be better if you used that one.

Now concerning your issues. You need to make sure that the system that you
are trying to simulate in gem5 matches with the template that you are
trying to use in McPAT. It is assumed that you need to make changes in the
template xml file to match it with the gem5 system. Check the proper
instructions on how to do that.

You can also check the modified McPAT and conversion scripts in my
repository here: https://github.com/H2020-COSSIM/cMcPAT

Best regards,
Andreas

On Mon, Sep 24, 2018 at 11:10 PM Weizheng Xu <
Post by Weizheng Xu
Dear all,
I use gem5 get the full system simulation results and want to use McPAT to
get the power model. I use the Gem5ToMcpat.py and template_xeon.xml
gotten from website to translate the stats.txt to the output.xml, which can
be read as input by McPAT. But when I use this output.xml as a input for
McPAT (I use command ./mcpat -infile
/home//Desktop/test/gem5/ext/mcpat/out.xml in the terminal to run the
"McPAT (version 0.8 of Aug, 2010) is computing the target processor...
some value(s) of
number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not
correct!”
I tried to change these values in the template_xeon.xml but still failed with this problem.
I really don’t know how to solve this problem.
PS: I use ubuntu16.04 LTS and gem5. I use the McPAT provided in the
gem5/ext file and with version of 0.8
Any help appreciated,
thanks
Weizheng
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Weizheng Xu
2018-10-16 22:16:07 UTC
Permalink
Dear all,

I have add the template I used for McPAT as the attachment. But I still have the same problem here. I have check the repository of the person who help me before https://github.com/H2020-COSSIM/cMcPAT <https://github.com/H2020-COSSIM/cMcPAT>, but I did not find the template in his files. I am not sure how can I change the template because when I change the value of number of cores and others, they have the same problem.

Any help appreciate.

Best wishes,
weizheng
Post by Andreas Brokalakis
Dear Weizheng,
you are using a quite old version of McPAT. Current version is 1.3. It would be better if you used that one.
Now concerning your issues. You need to make sure that the system that you are trying to simulate in gem5 matches with the template that you are trying to use in McPAT. It is assumed that you need to make changes in the template xml file to match it with the gem5 system. Check the proper instructions on how to do that.
You can also check the modified McPAT and conversion scripts in my repository here: https://github.com/H2020-COSSIM/cMcPAT <https://github.com/H2020-COSSIM/cMcPAT>
Best regards,
Andreas
Dear all,
"McPAT (version 0.8 of Aug, 2010) is computing the target processor...
some value(s) of number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not correct!¡±
I tried to change these values in the template_xeon.xml but still failed with this problem.
I really don¡¯t know how to solve this problem.
PS: I use ubuntu16.04 LTS and gem5. I use the McPAT provided in the gem5/ext file and with version of 0.8
Any help appreciated,
thanks
Weizheng
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Georgios S. Bousdras
2018-10-18 07:54:50 UTC
Permalink
Hi,

The template seems good.
Possibly the problem is after the parser.
The best way is to create your own parser.
Share the output file in order to check what it is wrong.

Best Regards,
Georgios Bousdras
PhD Researcher — Embedded Systems
Post by Weizheng Xu
Dear all,
I have add the template I used for McPAT as the attachment. But I still have the same problem here. I have check the repository of the person who help me before https://github.com/H2020-COSSIM/cMcPAT <https://github.com/H2020-COSSIM/cMcPAT>, but I did not find the template in his files. I am not sure how can I change the template because when I change the value of number of cores and others, they have the same problem.
Any help appreciate.
Best wishes,
weizheng
<template-xeon.xml>
Post by Andreas Brokalakis
Dear Weizheng,
you are using a quite old version of McPAT. Current version is 1.3. It would be better if you used that one.
Now concerning your issues. You need to make sure that the system that you are trying to simulate in gem5 matches with the template that you are trying to use in McPAT. It is assumed that you need to make changes in the template xml file to match it with the gem5 system. Check the proper instructions on how to do that.
You can also check the modified McPAT and conversion scripts in my repository here: https://github.com/H2020-COSSIM/cMcPAT <https://github.com/H2020-COSSIM/cMcPAT>
Best regards,
Andreas
Dear all,
"McPAT (version 0.8 of Aug, 2010) is computing the target processor...
some value(s) of number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not correct!”
I tried to change these values in the template_xeon.xml but still failed with this problem.
I really don’t know how to solve this problem.
PS: I use ubuntu16.04 LTS and gem5. I use the McPAT provided in the gem5/ext file and with version of 0.8
Any help appreciated,
thanks
Weizheng
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Weizheng Xu
2018-10-22 19:10:55 UTC
Permalink
Dear all,

I simulated the gem5 with full system mode and the command is "sudo build/ALPHA/gem5.opt configs/example/fs.py --script=./configs/boot/canneal_8c_simsmall.rcS --cpu-type=detailed --num-cpu=8 --caches --l2cache --num-l2caches=2 --l1d_size=32kB --l1i_size=32kB --l2_size=8MB --l1d_assoc=4 --l1i_assoc=4 --l2_assoc=16 --cacheline_size=64 --mem-type=NVMainMemory --nvmain-config=../nvmain/Config/RRAM_ISSCC_2012_4GB.config -F 5000000000 -I 2000000000” and get the stats.txt like below.

Then I use "python GEM5ToMcPAT.py stats.txt config.json template-x.xml” to transfer the output files of gem5 to the available input of McPAT, named as mcat-out.xml (the input of McPAT) here. But there have some warning here like this"Reading GEM5 stats from: stats.txt
Warning (stats): system.iocache.tags.avg_refs is nan. Setting it to 0
Warning (stats): system.iocache.avg_blocked_cycles::no_mshrs is nan. Setting it to 0
Warning (stats): system.iocache.avg_blocked_cycles::no_targets is nan. Setting it to 0
Warning (stats): system.cpu0.kern.mode_switch_good::user is nan. Setting it to 0
Warning (stats): system.cpu0.kern.mode_switch_good::idle is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedSwi is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxIdle is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxOk is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxDesc is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTxOk is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTxIdle is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTxDesc is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxOrn is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTotal is nan. Setting it to 0
Warning (stats): system.l2.avg_blocked_cycles::no_mshrs is nan. Setting it to 0
Warning (stats): system.l2.avg_blocked_cycles::no_targets is nan. Setting it to 0

...
I don’t know how to solve this warning and guess this is not the problem here which lead to the error below. So I ignore them.

Then I use"./mcpat -infile mcpat-out.xml “ to run the McPAT, and can not get the output of McPAT. The error also shown as "McPAT (version 0.8 of Aug, 2010) is computing the target processor...

some value(s) of number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not correct!”

Ps: I use the ubuntu14.04 LTS system and the McPAT in gem5/ext/mcpat file

All helps appreciate!

The output file of gem5 is too big to put here. You can get it with this link https://drive.google.com/drive/folders/13yTj7gVtvi-mUjFUB16jgg2sAqmwSe3-?usp=sharing <https://drive.google.com/drive/folders/13yTj7gVtvi-mUjFUB16jgg2sAqmwSe3-?usp=sharing>. The template is used for transfer and the result of transferred(input of McPAT tools) are listed here. Sorry to bother you guys.



Best wishes,
weizheng
Post by Georgios S. Bousdras
Hi,
The template seems good.
Possibly the problem is after the parser.
The best way is to create your own parser.
Share the output file in order to check what it is wrong.
Best Regards,
Georgios Bousdras
PhD Researcher — Embedded Systems
Post by Weizheng Xu
Dear all,
I have add the template I used for McPAT as the attachment. But I still have the same problem here. I have check the repository of the person who help me before https://github.com/H2020-COSSIM/cMcPAT <https://github.com/H2020-COSSIM/cMcPAT>, but I did not find the template in his files. I am not sure how can I change the template because when I change the value of number of cores and others, they have the same problem.
Any help appreciate.
Best wishes,
weizheng
<template-xeon.xml>
Post by Andreas Brokalakis
Dear Weizheng,
you are using a quite old version of McPAT. Current version is 1.3. It would be better if you used that one.
Now concerning your issues. You need to make sure that the system that you are trying to simulate in gem5 matches with the template that you are trying to use in McPAT. It is assumed that you need to make changes in the template xml file to match it with the gem5 system. Check the proper instructions on how to do that.
You can also check the modified McPAT and conversion scripts in my repository here: https://github.com/H2020-COSSIM/cMcPAT <https://github.com/H2020-COSSIM/cMcPAT>
Best regards,
Andreas
Dear all,
"McPAT (version 0.8 of Aug, 2010) is computing the target processor...
some value(s) of number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not correct!”
I tried to change these values in the template_xeon.xml but still failed with this problem.
I really don’t know how to solve this problem.
PS: I use ubuntu16.04 LTS and gem5. I use the McPAT provided in the gem5/ext file and with version of 0.8
Any help appreciated,
thanks
Weizheng
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Andreas Brokalakis
2018-10-23 08:41:04 UTC
Permalink
Hi weizheng,

I used your mcpat-out.xml in our cMcPAT (and I guess that any McPATv1.3 is
equivalent) and it completed the process. Attached is the output at
print_level 5.

Best,
Andreas

On Mon, Oct 22, 2018 at 10:11 PM Weizheng Xu <
Post by Weizheng Xu
Dear all,
I simulated the gem5 with full system mode and the command is "sudo
build/ALPHA/gem5.opt configs/example/fs.py
--script=./configs/boot/canneal_8c_simsmall.rcS --cpu-type=detailed
--num-cpu=8 --caches --l2cache --num-l2caches=2 --l1d_size=32kB
--l1i_size=32kB --l2_size=8MB --l1d_assoc=4 --l1i_assoc=4 --l2_assoc=16
--cacheline_size=64 --mem-type=NVMainMemory
--nvmain-config=../nvmain/Config/RRAM_ISSCC_2012_4GB.config -F 5000000000
-I 2000000000” and get the stats.txt like below.
Then I use "python GEM5ToMcPAT.py stats.txt config.json template-x.xml” to
transfer the output files of gem5 to the available input of McPAT, named as
mcat-out.xml (the input of McPAT) here. But there have some warning here
like this"Reading GEM5 stats from: stats.txt
Warning (stats): system.iocache.tags.avg_refs is nan. Setting it to 0
Warning (stats): system.iocache.avg_blocked_cycles::no_mshrs is nan. Setting it to 0
Warning (stats): system.iocache.avg_blocked_cycles::no_targets is nan. Setting it to 0
Warning (stats): system.cpu0.kern.mode_switch_good::user is nan. Setting it to 0
Warning (stats): system.cpu0.kern.mode_switch_good::idle is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedSwi is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxIdle is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxOk is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxDesc is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTxOk is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTxIdle is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTxDesc is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedRxOrn is nan. Setting it to 0
Warning (stats): system.tsunami.ethernet.coalescedTotal is nan. Setting it to 0
Warning (stats): system.l2.avg_blocked_cycles::no_mshrs is nan. Setting it to 0
Warning (stats): system.l2.avg_blocked_cycles::no_targets is nan. Setting it to 0

...
I don’t know how to solve this warning and guess this is not the problem
here which lead to the error below. So I ignore them.
Then I use"./mcpat -infile mcpat-out.xml “ to run the McPAT, and can not
get the output of McPAT. The error also shown as "McPAT (version 0.8 of
Aug, 2010) is computing the target processor...
some value(s) of
number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not
correct!”
Ps: I use the ubuntu14.04 LTS system and the McPAT in gem5/ext/mcpat file
All helps appreciate!
The output file of gem5 is too big to put here. You can get it with this
link
https://drive.google.com/drive/folders/13yTj7gVtvi-mUjFUB16jgg2sAqmwSe3-?usp=sharing.
The template is used for transfer and the result of transferred(input of
McPAT tools) are listed here. Sorry to bother you guys.
Best wishes,
weizheng
写道
Hi,
The template seems good.
Possibly the problem is after the parser.
The best way is to create your own parser.
Share the output file in order to check what it is wrong.
Best Regards,
Georgios Bousdras
PhD Researcher — Embedded Systems
Dear all,
I have add the template I used for McPAT as the attachment. But I still
have the same problem here. I have check the repository of the person who
help me before https://github.com/H2020-COSSIM/cMcPAT, but I did not find
the template in his files. I am not sure how can I change the template
because when I change the value of number of cores and others, they have
the same problem.
Any help appreciate.
Best wishes,
weizheng
<template-xeon.xml>
Dear Weizheng,
you are using a quite old version of McPAT. Current version is 1.3. It
would be better if you used that one.
Now concerning your issues. You need to make sure that the system that you
are trying to simulate in gem5 matches with the template that you are
trying to use in McPAT. It is assumed that you need to make changes in the
template xml file to match it with the gem5 system. Check the proper
instructions on how to do that.
You can also check the modified McPAT and conversion scripts in my
repository here: https://github.com/H2020-COSSIM/cMcPAT
Best regards,
Andreas
On Mon, Sep 24, 2018 at 11:10 PM Weizheng Xu <
Post by Weizheng Xu
Dear all,
I use gem5 get the full system simulation results and want to use McPAT
to get the power model. I use the Gem5ToMcpat.py and template_xeon.xml
gotten from website to translate the stats.txt to the output.xml, which can
be read as input by McPAT. But when I use this output.xml as a input for
McPAT (I use command ./mcpat -infile
/home//Desktop/test/gem5/ext/mcpat/out.xml in the terminal to run the
"McPAT (version 0.8 of Aug, 2010) is computing the target processor...
some value(s) of
number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not
correct!”
I tried to change these values in the template_xeon.xml but still failed
with this problem.
I really don’t know how to solve this problem.
PS: I use ubuntu16.04 LTS and gem5. I use the McPAT provided in the
gem5/ext file and with version of 0.8
Any help appreciated,
thanks
Weizheng
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Andreas Brokalakis
2018-10-18 11:21:15 UTC
Permalink
Dear Weizheng,

you can find the templates here:
https://github.com/H2020-COSSIM/cMcPAT/tree/master/mcpat/ProcessorDescriptionFiles

Here you can find the conversion script:
https://github.com/H2020-COSSIM/cMcPAT/tree/master/Scripts (note that it
has changes compared to the one you are using)

Lastly, you can find in the repository a newer version of McPAT, which is a
modified 1.3 version.

In any case, it is kinda hard to understand why you have this problem if
you do not share your stats (as well as config.json file), the template and
the output file. Also keep in mind that while a conversion may be legit,
McPAT does not support all possible combinations of systems that gem5 may
support. For example, we modified McPAT because the atomic simple CPU
models that gem5 could support, where not acceptable for McPAT (for example
McPAT will always assume that you have a certain uarch structures). In some
cases we also found that the conversion tool that you have used, didn't
work properly with newer versions of gem5 and under certain circumstances
it would replace a value with a 'nan' number. Of course this caused
problems similar to the ones you are reporting. I would suggest looking
thoroughly to the output.xml file and check that all values that you are
trying to convert using stats.txt and config.json data are properly
converted and there is no problem there.

Best,
Andreas

On Wed, Oct 17, 2018 at 1:16 AM Weizheng Xu <
Post by Weizheng Xu
Dear all,
I have add the template I used for McPAT as the attachment. But I still
have the same problem here. I have check the repository of the person who
help me before https://github.com/H2020-COSSIM/cMcPAT, but I did not find
the template in his files. I am not sure how can I change the template
because when I change the value of number of cores and others, they have
the same problem.
Any help appreciate.
Best wishes,
weizheng
Dear Weizheng,
you are using a quite old version of McPAT. Current version is 1.3. It
would be better if you used that one.
Now concerning your issues. You need to make sure that the system that you
are trying to simulate in gem5 matches with the template that you are
trying to use in McPAT. It is assumed that you need to make changes in the
template xml file to match it with the gem5 system. Check the proper
instructions on how to do that.
You can also check the modified McPAT and conversion scripts in my
repository here: https://github.com/H2020-COSSIM/cMcPAT
Best regards,
Andreas
On Mon, Sep 24, 2018 at 11:10 PM Weizheng Xu <
Post by Weizheng Xu
Dear all,
I use gem5 get the full system simulation results and want to use McPAT
to get the power model. I use the Gem5ToMcpat.py and template_xeon.xml
gotten from website to translate the stats.txt to the output.xml, which can
be read as input by McPAT. But when I use this output.xml as a input for
McPAT (I use command ./mcpat -infile
/home//Desktop/test/gem5/ext/mcpat/out.xml in the terminal to run the
"McPAT (version 0.8 of Aug, 2010) is computing the target processor...
some value(s) of
number_of_cores/number_of_L2s/number_of_L3s/number_of_NoCs is/are not
correct!”
I tried to change these values in the template_xeon.xml but still failed
with this problem.
I really don’t know how to solve this problem.
PS: I use ubuntu16.04 LTS and gem5. I use the McPAT provided in the
gem5/ext file and with version of 0.8
Any help appreciated,
thanks
Weizheng
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Loading...