[gem5-users] Re: SPEC2017 Calculating CPI
Hi, I ran into similar issues before. Say I did, boot the cpus with atomic cpu, then warmup the application with atomic cpu, then restore with atomic cpu for ROI data collection. With this, the final numcycles are counted including boot+warmup+roi, not just roi. If you did a finalTick/ frequency, that should match. Issue: in simple cpu, including both atomic and timing lastSuspend is 0 when resume, then when it try to increment cycles using lastActivate-lastSuspend, it includes all cycles before. My fix: add this line in AtomicSimpleCPU::drainResume() threadInfo[0]->thread->lastSuspend = curTick(); So, whenever atomic cpu resume from checkpoint, it counts from that point. I hope this is what you were looking for. This can probably make to the mainline gem5 if my understanding of the issue is correct. Best, Heng On Apr 12, 2023, at 15:40, Farbin Fayza via gem5-users wrote: Hi, I'm running SPEC2017 benchmark in full-system mode using the configs/example/gem5_library/x86-spec-cpu2017-benchmarks.py config file. In the outputs m5/stats.txt, there's no system.cpu.cpi metric mentioned. So, to calculate the CPI, I tried dividing board.processor.switch0.core.numCycles by board.processor.switch0.core.exec_context.thread_0.numInsts. But it results in a large number (~10) which I don't think is the correct way to calculate CPI. Could anyone tell me what is the correct way to calculate the CPI based on the stats.txt results? Thanks, Farbin. ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: SPEC2017 - Most of the metrics in m5.out/stats.txt are 0 or undefined
Hi everyone, thank you very much for co-operating. The stat file errors were resolved by the change that Humza mentioned. The stat file now contains non-zero metrics. Should I make changes and push them to the repo? Should it be in the "develop" branch of https://gem5.googlesource.com/public/gem5? Thanks, Farbin. On Fri, Apr 7, 2023 at 10:12 PM Eliot Moss wrote: > On 4/7/2023 10:05 PM, Farbin Fayza via gem5-users wrote: > > Could you kindly tell me if there's any way to run the gem5 simulation > faster using multiple cores? > > Is it possible while we run SPEC? > > The only way is to run multiple distinct simulations in parallel. > This can be done by directing their outputs (both the gem5 output > and the simulated program's output) to different files. When I > do this I also have some temporary mounts that I need to be > careful about so I copy the (fortunately small) different > mounted drive files. > > Anyway, I do this all the time. > > HTH -- Eliot Moss > ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] SPEC2017 Calculating CPI
Hi, I'm running SPEC2017 benchmark in full-system mode using the configs/example/gem5_library/x86-spec-cpu2017-benchmarks.py config file. In the outputs m5/stats.txt, there's no system.cpu.cpi metric mentioned. So, to calculate the CPI, I tried dividing board.processor.switch0.core.numCycles by board.processor.switch0.core.exec_context.thread_0.numInsts. But it results in a large number (~10) which I don't think is the correct way to calculate CPI. Could anyone tell me what is the correct way to calculate the CPI based on the stats.txt results? Thanks, Farbin. ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] ????????????the definition of IntAlu
Thank you, next I will learn about the relevant simulator ---- ??: "The gem5 Users mailing list"___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: 回复:the definition of IntAlu
On 4/12/2023 8:12 AM, 中国石油大学张天 via gem5-users wrote: So my current understanding is that there is no specific implementation of the ALU in gem5, but some required attributes are set, such as delay, number of functional units, power consumption, etc. So to design the ALU, it doesn't work. The feeling is to regard the functional unit as a black box, no matter what is done in the middle, only define how long it takes to get out of the black box, and how much power is used in the black box, etc. Do you think I understand this right? Yes. gem5 is a *timing* simulator, but at the functional level, not the circuit level or logic gate level. There are, of course, other simulators that can do that. See this Wikipedia page for some free circuit simulators: https://en.wikipedia.org/wiki/List_of_free_electronics_circuit_simulators and this one for (not necessarily free) HDL simulators: https://en.wikipedia.org/wiki/List_of_HDL_simulators and this one for an overview of electronic design automation software: https://en.wikipedia.org/wiki/Comparison_of_EDA_software You might wish to simulate your own design using FPGA boards as well. I've not used any of these tools myself, but am generally aware of them. Regards - Eliot Moss ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] ??????the definition of IntAlu
So my current understanding is that there is no specific implementation of the ALU in gem5, but some required attributes are set, such as delay, number of functional units, power consumption, etc. So to design the ALU, it doesn't work. The feeling is to regard the functional unit as a black box, no matter what is done in the middle, only define how long it takes to get out of the black box, and how much power is used in the black box, etc. Do you think I understand this right? ---- ??: "The gem5 Users mailing list" ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: the definition of IntAlu
On 4/12/2023 7:17 AM, Eliot Moss wrote: On 4/11/2023 11:50 PM, 中国石油大学张天 via gem5-users wrote: In gem5, where are the actual definitions of various functional units? For example, where is the definition of IntAlu? src/cpu/o3/FuncUnitConfig.py Typed too fast: Not to be snarky, but I found this in less than 30 seconds using grep over the sources. My command was grep -ri intalu gem5/src Best - Eliot Moss ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Re: the definition of IntAlu
On 4/11/2023 11:50 PM, 中国石油大学张天 via gem5-users wrote: In gem5, where are the actual definitions of various functional units? For example, where is the definition of IntAlu? src/cpu/o3/FuncUnitConfig.py No to be narky, but I found this in less than 30 seconds using grep over the sources. Best - Eliot Mos ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] USING DSENT TO MODEL POWER & AREA of NoC
Hi, I'm tring to use DSENT in /ext/dsent directory to model power and area of my designed NoC, I have called cmake and it executed all right, but next I followed the guidance of README which says === Build (installation) === To build DSENT: % make So I called make command but encountered below error: Consolidate compiler generated dependencies of target dsent [ 1%] Building CXX object CMakeFiles/dsent.dir/DSENT.cc.o c++: warning: /bin/sh:: linker input file unused because linking not done c++: error: /bin/sh:: linker input file not found: No such file or directory c++: warning: 1:: linker input file unused because linking not done c++: error: 1:: linker input file not found: No such file or directory c++: warning: python-config:: linker input file unused because linking not done c++: error: python-config:: linker input file not found: No such file or directory c++: warning: not: linker input file unused because linking not done c++: error: not: linker input file not found: No such file or directory c++: warning: found: linker input file unused because linking not done c++: error: found: linker input file not found: No such file or directory make[2]: *** [CMakeFiles/dsent.dir/build.make:76: CMakeFiles/dsent.dir/DSENT.cc.o] Error 1 make[2]: *** Deleting file 'CMakeFiles/dsent.dir/DSENT.cc.o' make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/dsent.dir/all] Error 2 make: *** [Makefile:91: all] Error 2 I have checked my system requirements and they satisfy in README, could you please help me how to solve this problem?Thank you! ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org
[gem5-users] Can I change GPU frequency on the fly while simulating gpu-fs?
Hello, I was trying to simulate a scenario where an user can change gpu's operating voltage/frequency while any application is running. So far what I have seen while running gpu-fs, we can set a gpu frequency at which the gpu will operate. But is it possible to change it for a brief period of time? For example, I am running an application which takes 30 seconds to run on gpu. I initialized with default gpu frequency 1GHz. At 10th second, I want to set the frequency at 1.5GHz. Is that possible? If not, how can I do so? Regards, Kazi ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org