Hello Fayza,

I think you can put m5op in SPEC2017 to mark where the actual benchmark
application begins and switch the CPU after reaching there.
The documentation of using m5op:
https://www.gem5.org/documentation/general_docs/m5ops/
I tried to put m5op in specinvoke in SPEC2006 to exit the simulation right
before the actual benchmark application. Here is the note I took for doing
that: https://github.com/studyztp/some-notes/blob/main/m5op-specinvoke.md

Best,
Zhantong



On Mon, Apr 17, 2023 at 8:02 AM Farbin Fayza via gem5-users <
gem5-users@gem5.org> wrote:

> Hello,
> I'm using the x86-spec-cpu2017-benchmarks.py config file to run spec2017
> benchmarks. I followed this tutorial
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/spec-2017/
> for building the spec disk image.
>
> Currently, the linux booting is done with KVM CPU and the rest of the
> simulation is done with the TIMING CPU. However, after booting linux, there
> are lots of steps before the benchmark actually gets to run.
>
> For example, here are the logs in my board.pc.com_1.device file after
> booting linux:
>
> "Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.19.83 x86_64)
>
>  * Documentation:  https://help.ubuntu.com
>  * Management:     https://landscape.canonical.com
>  * Support:        https://ubuntu.com/advantage
>
> New release '20.04.6 LTS' available.
> Run 'do-release-upgrade' to upgrade to it.
>
> The programs included with the Ubuntu system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
> applicable law.
>
> Done reading workloads
> Workload detected
> Reset stats
> SPEC CPU(r) 2017 Benchmark Suites
> Copyright 1995-2019 Standard Performance Evaluation Corporation (SPEC)
>
> runcpu v6612
> Using 'linux-x86_64' tools
> Reading file manifests... read 32351 entries from 2 files in 0.23s (138866
> files/s)
> Loading runcpu modules.................
> Locating benchmarks...found 47 benchmarks in 73 benchsets.
> Reading config file '/home/gem5/spec2017/config/myconfig.x86.cfg'
> 1 configuration selected:
>
>  Action    Run Mode   Workload     Report Type      Benchmarks
> --------   --------   --------   ----------------
> ---------------------------
> validate   rate       test       SPECrate2017_int   502.gcc_r
>
>
> -------------------------------------------------------------------------------
>
> Setting up environment for running 502.gcc_r...
> Starting runcpu for 502.gcc_r...
> Retrieving flags file (/home/gem5/spec2017/config/flags/gcc.xml)...
> Benchmarks selected: 502.gcc_r
> Compiling Binaries
>   Up to date 502.gcc_r base mytest-m64
>   NOT Building 502.gcc_r peak mytest-m64; nobuild is on
>
> Build successes for intrate: None
> Build errors for intrate: 502.gcc_r(peak; nobuild)
>
> Setting Up Run Directories
>   Setting up 502.gcc_r test base mytest-m64 (1 copy):
> run_base_test_mytest-m64.0000
>
> *Running Benchmarks  Running 502.gcc_r test base mytest-m64 (1 copy)
> [2023-04-03 15:46:35]*"
>
> And these steps take more than a day with the TIMING CPU. Is there any way
> to run everything on the KVM CPU before running the actual benchmark
> application?
>
> Thanks,
> Fayza.
>
> _______________________________________________
> 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

Reply via email to