[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-22 Thread Bobby Bruce via gem5-users
Hey David,

There's no problem with gem5 or the script here. The issue is with your
system. As the error suggests, you need to change the value in
`/proc/sys/kenel/perf_event_paranoid`  to 1.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Tue, Feb 22, 2022 at 1:07 PM David Fong  wrote:

> Hi Bobby,
>
>
>
> After downloading the latest (V21.2.1) and rebuilding gem5 I’m now getting
> a core dump.
>
>
>
> Here’s the message from cmd-line up to before core dump.
>
>
>
> ./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py --benchmark ep
> --size A
>
> gem5 Simulator System.  http://gem5.org
>
> gem5 is copyrighted software; use the --copyright option for details.
>
>
>
> gem5 version 21.2.1.0
>
> gem5 compiled Feb 22 2022 12:28:52
>
> gem5 started Feb 22 2022 12:54:21
>
> gem5 executing on sundial.chronostech.com, pid 27366
>
> command line: ./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py
> --benchmark ep --size A
>
>
>
> Resource 'x86-linux-kernel-4.19.83' was not found locally. Downloading to
> '/home/dfong/.cache/gem5/x86-linux-kernel-4.19.83'...
>
> Finished downloading resource 'x86-linux-kernel-4.19.83'.
>
> Resource 'x86-npb' was not found locally. Downloading to
> '/home/dfong/.cache/gem5/x86-npb.gz'...
>
> Finished downloading resource 'x86-npb'.
>
> Decompressing resource 'x86-npb' ('/home/dfong/.cache/gem5/x86-npb.gz')...
>
> Finished decompressing resource 'x86-npb'.
>
> Global frequency set at 1 ticks per second
>
> warn: No dot file generated. Please install pydot to generate the dot file
> and pdf.
>
> build/X86/mem/mem_interface.cc:793: warn: DRAM device capacity (16384
> Mbytes) does not match the address range assigned (2048 Mbytes)
>
> build/X86/mem/mem_interface.cc:793: warn: DRAM device capacity (16384
> Mbytes) does not match the address range assigned (2048 Mbytes)
>
> build/X86/sim/kernel_workload.cc:46: info: kernel located at:
> /home/dfong/.cache/gem5/x86-linux-kernel-4.19.83
>
> build/X86/base/statistics.hh:280: warn: One of the stats is a legacy stat.
> Legacy stat is a stat that does not belong to any statistics::Group. Legacy
> stat is deprecated.
>
>   0: system.pc.south_bridge.cmos.rtc: Real-time clock set to Sun Jan
> 1 00:00:00 2012
>
> build/X86/dev/serial/terminal.cc:170: warn: Sockets disabled, not
> accepting terminal connections
>
> build/X86/dev/intel_8254_timer.cc:125: warn: Reading current count from
> inactive timer.
>
> build/X86/base/remote_gdb.cc:381: warn: Sockets disabled, not accepting
> gdb connections
>
> Running the simulation
>
> Using KVM cpu
>
> build/X86/cpu/kvm/base.cc:148: info: KVM: Coalesced MMIO disabled by
> config.
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 2
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 3
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 4
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 5
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 6
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 8
>
> build/X86/cpu/kvm/base.cc:148: info: KVM: Coalesced MMIO disabled by
> config.
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 2
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 3
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 4
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 5
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 6
>
> build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x:
> unimplemented function 8
>
> build/X86/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting
> simulation...
>
> build/X86/cpu/kvm/perfevent.cc:181: panic: PerfKvmCounter::attach recieved
> error EACCESS
>
>   This error may be caused by a too restrictive setting
>
>   in the file '/proc/sys/kernel/perf_event_paranoid'
>
>   The default value was changed to 2 in kernel 4.6
>
>   A value greater than 1 prevents gem5 from making
>
>   the syscall to perf_event_open
>
> Memory Usage: 3979164 KBytes
>
> build/X86/cpu/kvm/perfevent.cc:181: Program aborted at tick 0
>
> panic: PerfKvmCounter::attach recieved error EACCESS
>
>   This error may be caused by a too restrictive setting
>
>   in the file '/proc/sys/kernel/perf_event_paranoid'
>
>   The default value was changed to 2 in kernel 4.6
>
>   A value greater than 1 prevents gem5 from making
>
>   the syscall to perf_event_open
>
> Memory Usage: 3979164 KBytes
>
> Aborted (core dumped)
>
>
>
> cat /proc/sys/kernel/perf_event_paranoid
>
> 2
>
>
>
> Any ideas to fix the core dump issue ?
>
>
>
> David
>
>
>
>
>

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-22 Thread Bobby Bruce via gem5-users
Hey David,

It looks like you're mixing and matching some stuff between gem5 versions
here. I'm pretty sure you took that 'x86-npb-benchmarks.py' script from the
the repo checkout out fo v21.2, but you're running it on gem5 v21.1. I
suspect that's the problem. If you want to run this script you'll need to
checkout the latest version of gem5:

```
git checkout stable && git pull
```

Delete the build directory and recompile. This will get you gem5 v21.2.1
which should work with the x86-npb-benchmark.py script

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Tue, Feb 22, 2022 at 9:08 AM David Fong  wrote:

> Hi Ayaz,
>
>
>
> I’m not clear about how the
>
>
>
>
>
> configs/example/x86-npb-performance.py
>
>
>
> works
>
>
>
> since the python is trying to get the package or module
>
>
>
> gem5
>
>
>
> and it is NOT “import” ed into the python.
>
>
>
> See my cmd-line and error below:
>
>
>
> ./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py
> --disk-image=../disk-image/npb/npb-image/npb
> --kernel=../linux-stable/vmlinux |& tee x86_npb_benchmarks.log
>
> gem5 Simulator System.  http://gem5.org
>
> gem5 is copyrighted software; use the --copyright option for details.
>
>
>
> gem5 version 21.1.0.2
>
> gem5 compiled Feb 18 2022 18:42:01
>
> gem5 started Feb 22 2022 09:06:22
>
> gem5 executing on sundial.chronostech.com, pid 38198
>
> command line: ./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py
> --disk-image=../disk-image/npb/npb-image/npb
> --kernel=../linux-stable/vmlinux
>
>
>
> Traceback (most recent call last):
>
>   File "", line 1, in 
>
>   File "build/X86/python/m5/main.py", line 455, in main
>
> exec(filecode, scope)
>
>   File "configs/example/x86-npb-benchmarks.py", line 47, in 
>
> from gem5.utils.requires import requires
>
> ModuleNotFoundError: No module named 'gem5'
>
>
>
>
>
> Is there some PYTHONPAH setting or I’m missing a “gem5” package separate
> from the gem5.opt build install that needs to be done ?
>
>
>
> Thanks,
>
>
>
> David
>
>
>
>
>
> *From:* Ayaz Akram 
> *Sent:* Friday, February 18, 2022 12:49 PM
> *To:* gem5 users mailing list 
> *Cc:* Bobby Bruce ; David Fong 
> *Subject:* Re: [gem5-users] Re: Not able to access webpage to run_npb.py
>
>
>
> Hi David,
>
>
>
> Please find my response to your questions below:
>
>
>
>
>
>
>1. It seems like I don’t need to do the “Setting up the environment”
>since I don’t plan to create or modify npb-tests.
>
> I thought the npb tests are already on the disk image from “Creating a
> disk image” section.
> Please confirm.
> If the npb-tests are necessary please explain “your-remote-add”.  Is this
> on my host machine and needs to be accessible as a webpage on my local hard
> disk?
> git remote add origin https://your-remote-add/npb-tests.git
> 
>
>
>
> The tutorial you have referenced provides instructions to run NPB with
> gem5art. Since, gem5art tries to create a reproducible test environment
> where every change can be tracked (more details on gem5art can be found
> here: https://arch.cs.ucdavis.edu/simulation/2021/03/28/gem5art.html
> ),
> "Setting up the environment" section of the tutorial provides
> the instructions to set up the base environment. Basically, we create  a
> github repo to treat it as the primary directory from where all the tests
> would be run. gem5art uses the metadata of this github repo to track any
> changes to it. The "your-remote-add" is meant to be a user-defined remote
> where they might keep this github repo.
>
>
>
>
>
>
>1. To run one test I just use at gem5 directory
>
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark ep --size A`
>
>
>1. To run a suite of NPB benchmark tests I can create the
>launch_npb_tests.py
>
> This file seems to rebuild everything from scratch and run a regression
> As a first order I prefer to not get so sophisticated until I get a few
> simple tests to run.
>
>
> Could I run in sequential order something like below
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark ep --size A`
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark bt --size A`
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark cg --size A`
> `./build/X86/gem5.opt 

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-22 Thread David Fong via gem5-users
Hi Ayaz,

I’m not clear about how the


configs/example/x86-npb-performance.py

works

since the python is trying to get the package or module

gem5

and it is NOT “import” ed into the python.

See my cmd-line and error below:

./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py 
--disk-image=../disk-image/npb/npb-image/npb --kernel=../linux-stable/vmlinux 
|& tee x86_npb_benchmarks.log
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 21.1.0.2
gem5 compiled Feb 18 2022 18:42:01
gem5 started Feb 22 2022 09:06:22
gem5 executing on sundial.chronostech.com, pid 38198
command line: ./build/X86/gem5.opt configs/example/x86-npb-benchmarks.py 
--disk-image=../disk-image/npb/npb-image/npb --kernel=../linux-stable/vmlinux

Traceback (most recent call last):
  File "", line 1, in 
  File "build/X86/python/m5/main.py", line 455, in main
exec(filecode, scope)
  File "configs/example/x86-npb-benchmarks.py", line 47, in 
from gem5.utils.requires import requires
ModuleNotFoundError: No module named 'gem5'


Is there some PYTHONPAH setting or I’m missing a “gem5” package separate from 
the gem5.opt build install that needs to be done ?

Thanks,

David


From: Ayaz Akram 
Sent: Friday, February 18, 2022 12:49 PM
To: gem5 users mailing list 
Cc: Bobby Bruce ; David Fong 
Subject: Re: [gem5-users] Re: Not able to access webpage to run_npb.py

Hi David,

Please find my response to your questions below:



  1.  It seems like I don’t need to do the “Setting up the environment” since I 
don’t plan to create or modify npb-tests.
I thought the npb tests are already on the disk image from “Creating a disk 
image” section.
Please confirm.
If the npb-tests are necessary please explain “your-remote-add”.  Is this on my 
host machine and needs to be accessible as a webpage on my local hard disk?
git remote add origin 
https://your-remote-add/npb-tests.git

The tutorial you have referenced provides instructions to run NPB with gem5art. 
Since, gem5art tries to create a reproducible test environment where every 
change can be tracked (more details on gem5art can be found here: 
https://arch.cs.ucdavis.edu/simulation/2021/03/28/gem5art.html),
 "Setting up the environment" section of the tutorial provides the instructions 
to set up the base environment. Basically, we create  a github repo to treat it 
as the primary directory from where all the tests would be run. gem5art uses 
the metadata of this github repo to track any changes to it. The 
"your-remote-add" is meant to be a user-defined remote where they might keep 
this github repo.




  1.  To run one test I just use at gem5 directory
`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark ep --size A`


  1.  To run a suite of NPB benchmark tests I can create the launch_npb_tests.py
This file seems to rebuild everything from scratch and run a regression
As a first order I prefer to not get so sophisticated until I get a few simple 
tests to run.

Could I run in sequential order something like below
`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark ep --size A`
`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark bt --size A`
`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark cg --size A`
`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark ft --size A`

You should be able to run the single tests using the above commands.  
`launch_npb_tests.py` runs a suite of tests using gem5art, by 
registering/documenting different artifacts that will be used to run this suite 
of tests.


  1.  Extract NPB performance data
I’m not familiar with celery and but familiar with python.
Do I need to install celery on host system ?
Which directory and how to extract the NPB run data which is on the virtual 
machine over to the host machine ?
What kind of statistics are output : runtime of test , latencies of certain 
paths ?

You do not need celery to run your jobs with gem5art. Please look at the 
reference to 'python multiprocessing library' on this page: 

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-18 Thread Ayaz Akram via gem5-users
Hi David,

Please find my response to your questions below:



>
>1. It seems like I don’t need to do the “Setting up the environment”
>since I don’t plan to create or modify npb-tests.
>
> I thought the npb tests are already on the disk image from “Creating a
> disk image” section.
> Please confirm.
> If the npb-tests are necessary please explain “your-remote-add”.  Is this
> on my host machine and needs to be accessible as a webpage on my local hard
> disk?
> git remote add origin https://your-remote-add/npb-tests.git


The tutorial you have referenced provides instructions to run NPB with
gem5art. Since, gem5art tries to create a reproducible test environment
where every change can be tracked (more details on gem5art can be found
here: https://arch.cs.ucdavis.edu/simulation/2021/03/28/gem5art.html),
"Setting up the environment" section of the tutorial provides
the instructions to set up the base environment. Basically, we create  a
github repo to treat it as the primary directory from where all the tests
would be run. gem5art uses the metadata of this github repo to track any
changes to it. The "your-remote-add" is meant to be a user-defined remote
where they might keep this github repo.




>
>1. To run one test I just use at gem5 directory
>
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark ep --size A`
>
>
>1. To run a suite of NPB benchmark tests I can create the
>launch_npb_tests.py
>
> This file seems to rebuild everything from scratch and run a regression
> As a first order I prefer to not get so sophisticated until I get a few
> simple tests to run.


> Could I run in sequential order something like below
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark ep --size A`
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark bt --size A`
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark cg --size A`
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark ft --size A`


You should be able to run the single tests using the above commands.
`launch_npb_tests.py`
runs a suite of tests using gem5art, by registering/documenting different
artifacts that will be used to run this suite of tests.



>
>1. Extract NPB performance data
>
> I’m not familiar with celery and but familiar with python.
> Do I need to install celery on host system ?
> Which directory and how to extract the NPB run data which is on the
> virtual machine over to the host machine ?
> What kind of statistics are output : runtime of test , latencies of
> certain paths ?


You do not need celery to run your jobs with gem5art. Please look at the
reference to 'python multiprocessing library' on this page:
https://www.gem5.org/documentation/gem5art/main/faq.
The results of your tests will be stored both on your file system, and the
gem5art database. The result files include normal gem5 results files like
stats.txt (which has the performance statistics about your simulation run)
and some other gem5art related files like info.json (which will contain
some high level information about your gem5 run).

Hope this helps!
Thanks,
-Ayaz


On Fri, Feb 18, 2022 at 11:40 AM David Fong via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Bobby,
>
>
>
> Thanks for your recommendations.
>
>
>
> We will stick to X86 to test the flow for NPB tests and adjust to ARM when
> needed.
>
>
>
> But I have a few questions about the flow.
>
>
>
> From just a user perspective and NOT a developer and following this
> webpage instructions:
>
>
>
> https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial
>
>
>
>1. It seems like I don’t need to do the “Setting up the environment”
>since I don’t plan to create or modify npb-tests.
>
> I thought the npb tests are already on the disk image from “Creating a
> disk image” section.
>
> Please confirm.
>
> If the npb-tests are necessary please explain “your-remote-add”.  Is this
> on my host machine and needs to be accessible as a webpage on my local hard
> disk?
>
> git remote add origin https://your-remote-add/npb-tests.git
>
>
>
>1. To run one test I just use at gem5 directory
>
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark ep --size A`
>
>
>
>1. To run a suite of NPB benchmark tests I can create the
>launch_npb_tests.py
>
> This file seems to rebuild everything from scratch and run a regression
>
> As a first order I prefer to not get so sophisticated until I get a few
> simple tests to run.
>
>
>
> Could I run in sequential order something like below
>
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark ep --size A`
>
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark bt --size A`
>
> `./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py
> --benchmark cg 

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-18 Thread David Fong via gem5-users
Hi Bobby,

Thanks for your recommendations.

We will stick to X86 to test the flow for NPB tests and adjust to ARM when 
needed.

But I have a few questions about the flow.

From just a user perspective and NOT a developer and following this webpage 
instructions:

https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial


  1.  It seems like I don’t need to do the “Setting up the environment” since I 
don’t plan to create or modify npb-tests.

I thought the npb tests are already on the disk image from “Creating a disk 
image” section.

Please confirm.

If the npb-tests are necessary please explain “your-remote-add”.  Is this on my 
host machine and needs to be accessible as a webpage on my local hard disk?

git remote add origin https://your-remote-add/npb-tests.git



  1.  To run one test I just use at gem5 directory

`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark ep --size A`


  1.  To run a suite of NPB benchmark tests I can create the launch_npb_tests.py

This file seems to rebuild everything from scratch and run a regression

As a first order I prefer to not get so sophisticated until I get a few simple 
tests to run.



Could I run in sequential order something like below

`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark ep --size A`

`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark bt --size A`

`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark cg --size A`

`./build/X86/gem5.opt configs/example/gem5_library/x86-npb-benchmarks.py 
--benchmark ft --size A`


  1.  Extract NPB performance data

I’m not familiar with celery and but familiar with python.

Do I need to install celery on host system ?

Which directory and how to extract the NPB run data which is on the virtual 
machine over to the host machine ?

What kind of statistics are output : runtime of test , latencies of certain 
paths ?

Thanks,

David




From: Bobby Bruce 
Sent: Thursday, February 17, 2022 12:11 PM
To: David Fong 
Cc: gem5 users mailing list 
Subject: Re: [gem5-users] Re: Not able to access webpage to run_npb.py

gem5-X is a fork of gem5, which as far as I can tell, diverged from gem5 in the 
middle of 2018. gem5art was built on a version of gem5 in 2020-2021. While I 
can't say anything for certain, I wouldn't be surprised if you run into some 
difficulties getting this all to work perfectly.

Are you going to use ARM? We do provide NPB images, and linux kernels, but they 
work with X86. If you're set on using ARM you'll need to make your own. 
Instructions on building kernel for gem5 can be found here: 
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/linux-kernel/,
 and info on creating a disk image containing NPB can be found here: 
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/.
 Please be careful with these as they are written assuming compilation to X86. 
While I'm sure you can create an ARM Linux kernel fairly easily, I'm not sure 
about NPB. I've simply never tried this.

If X86 is an option, we provide a disk image and kernel:

http://dist.gem5.org/dist/v21-2/kernels/x86/static/vmlinux-5.4.49
http://dist.gem5.org/dist/v21-2/images/x86/ubuntu-18-04/npb.img.gz
 [Note: GZIPPED]

If you're looking for configuration files that (should) work with NPB, checkout 
gem5-resources at v21.1.0.2 : `git clone -b v21.1.0.2 

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread Bobby Bruce via gem5-users
gem5-X is a fork of gem5, which as far as I can tell, diverged from gem5 in
the middle of 2018. gem5art was built on a version of gem5 in 2020-2021.
While I can't say anything for certain, I wouldn't be surprised if you run
into some difficulties getting this all to work perfectly.

Are you going to use ARM? We do provide NPB images, and linux kernels, but
they work with X86. If you're set on using ARM you'll need to make your
own. Instructions on building kernel for gem5 can be found here:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/linux-kernel/,
and info on creating a disk image containing NPB can be found here:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/.
Please be careful with these as they are written assuming compilation to
X86. While I'm sure you can create an ARM Linux kernel fairly easily, I'm
not sure about NPB. I've simply never tried this.

If X86 is an option, we provide a disk image and kernel:

http://dist.gem5.org/dist/v21-2/kernels/x86/static/vmlinux-5.4.49
http://dist.gem5.org/dist/v21-2/images/x86/ubuntu-18-04/npb.img.gz [Note:
GZIPPED]

If you're looking for configuration files that (should) work with NPB,
checkout gem5-resources at v21.1.0.2 : `git clone -b v21.1.0.2
https://gem5.googlesource.com/public/gem5-resources` and look at the
configs provided under `src/npb`. That will definitely give you something
to start with.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Thu, Feb 17, 2022 at 11:45 AM David Fong  wrote:

> Hi Bobby,
>
>
>
> I’m trying to modify my gem5-X setup to add the NPB performance tests.
>
>
>
> My gem5-X setup doesn’t have a configs/example/gem5_library.
>
>
>
> I believe the github repo for the  gem5-X build didn’t add the
> gem5_library directory and files.
>
>
>
> I could use the gem5 setup from the NPB but then I’ll not be able to do
> architectural exploration with gem5-X.
>
> I would prefer to stick to gem5-X and add on the NPR tests.
>
>
>
> This is our cmd-line to build the gem5-X
>
> `./build/ARM/gem5.fast --remote-gdb-port=0 -d log_dir
> configs/example/fs.py --cpu-clock=1GHz --kernel=vmlinux
> --machine-type=VExpress_GEM5_V1
> --dtb-file=/home/dfong/work/ext_ips/gem5-X/system/arm/dt/armv8_gem5_v1_1cpu.dtb
> -n 1 --disk-image=gem5_ubuntu16.img --caches --l2cache --l1i_size=32kB
> --l1d_size=32kB --l2_size=1MB --l2_assoc=2 --mem-type=DDR4_2400_4x16
> --mem-ranks=4 --mem-size=4GB --sys-clock=1600MHz`
>
>
>
> What do you recommend I should do ?
>
>
>
> Thanks,
>
>
>
> David
>
>
>
>
>
> *From:* Bobby Bruce via gem5-users 
> *Sent:* Thursday, February 17, 2022 11:16 AM
> *To:* gem5 users mailing list 
> *Cc:* Bobby Bruce 
> *Subject:* [gem5-users] Re: Not able to access webpage to run_npb.py
>
>
>
> Hey David,
>
>
>
> Sorry about the trouble you're running into. It seems the gem5art tutorial
> on the website has become a bit outdated. We've updated gem5-resources in
> the last release and clearly this has broken some links. I'll make sure
> updating this is prioritized.
>
>
>
> I have two ways you can run NPB. The first is quite simple and is
> basically what Jason said, there's a script in
> `configs/example/gem5_library/x86-npb-benchmarks.py` which you can execute
> with gem5 and run NPB. This should work: `./build/X86/gem5.opt
> configs/example/gem5_library/x86-npb-benchmarks.py --benchmark ep --size A`
> (warning, this script assumes you're running gem5 on an X86 host with KVM).
> This approach is using our gem5 stdlib, a tutorial to which can be found
> here: https://www.gem5.org/documentation/gem5-stdlib/overview
> 
>
>
>
> The second way is to checkout the gem5-resources repo to the state it was
> at the last release. The tag you want is v21.1.0.2,
> https://gem5.googlesource.com/public/gem5-resources/+/refs/tags/v21.1.0.2/
> .
> This should contain the configs (If you do this, i think it'd be best to
> checkout the gem5 repo to an earlier release as well).
>
>
>
> Kind regards,
>
> Bobby
>
> --
>
> Dr. Bobby R. Bruce
> Room 3050,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>
>
>
> web: https://www.bobbybruce.net
> 

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread David Fong via gem5-users
Hi Bobby,

I’m trying to modify my gem5-X setup to add the NPB performance tests.

My gem5-X setup doesn’t have a configs/example/gem5_library.

I believe the github repo for the  gem5-X build didn’t add the gem5_library 
directory and files.

I could use the gem5 setup from the NPB but then I’ll not be able to do 
architectural exploration with gem5-X.
I would prefer to stick to gem5-X and add on the NPR tests.

This is our cmd-line to build the gem5-X
`./build/ARM/gem5.fast --remote-gdb-port=0 -d log_dir configs/example/fs.py 
--cpu-clock=1GHz --kernel=vmlinux --machine-type=VExpress_GEM5_V1 
--dtb-file=/home/dfong/work/ext_ips/gem5-X/system/arm/dt/armv8_gem5_v1_1cpu.dtb 
-n 1 --disk-image=gem5_ubuntu16.img --caches --l2cache --l1i_size=32kB 
--l1d_size=32kB --l2_size=1MB --l2_assoc=2 --mem-type=DDR4_2400_4x16 
--mem-ranks=4 --mem-size=4GB --sys-clock=1600MHz`

What do you recommend I should do ?

Thanks,

David


From: Bobby Bruce via gem5-users 
Sent: Thursday, February 17, 2022 11:16 AM
To: gem5 users mailing list 
Cc: Bobby Bruce 
Subject: [gem5-users] Re: Not able to access webpage to run_npb.py

Hey David,

Sorry about the trouble you're running into. It seems the gem5art tutorial on 
the website has become a bit outdated. We've updated gem5-resources in the last 
release and clearly this has broken some links. I'll make sure updating this is 
prioritized.

I have two ways you can run NPB. The first is quite simple and is basically 
what Jason said, there's a script in 
`configs/example/gem5_library/x86-npb-benchmarks.py` which you can execute with 
gem5 and run NPB. This should work: `./build/X86/gem5.opt 
configs/example/gem5_library/x86-npb-benchmarks.py --benchmark ep --size A` 
(warning, this script assumes you're running gem5 on an X86 host with KVM). 
This approach is using our gem5 stdlib, a tutorial to which can be found here: 
https://www.gem5.org/documentation/gem5-stdlib/overview

The second way is to checkout the gem5-resources repo to the state it was at 
the last release. The tag you want is v21.1.0.2, 
https://gem5.googlesource.com/public/gem5-resources/+/refs/tags/v21.1.0.2/.
 This should contain the configs (If you do this, i think it'd be best to 
checkout the gem5 repo to an earlier release as well).

Kind regards,
Bobby
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: 
https://www.bobbybruce.net


On Thu, Feb 17, 2022 at 10:43 AM David Fong via gem5-users 
mailto:gem5-users@gem5.org>> wrote:
Hi,

I’m going through the steps to create the npb environment.

https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial

gem5 run scripts

Next, we need to add gem5 run scripts. We will do that in a folder named 
configs-npb-tests. Get the run script named run_npb.py from 
here,
 and other system configuration files from 
[here]((https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/system/).


I’m not able to access the link to “run_npb.py”.


[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread Bobby Bruce via gem5-users
Hey David,

Sorry about the trouble you're running into. It seems the gem5art tutorial
on the website has become a bit outdated. We've updated gem5-resources in
the last release and clearly this has broken some links. I'll make sure
updating this is prioritized.

I have two ways you can run NPB. The first is quite simple and is basically
what Jason said, there's a script in
`configs/example/gem5_library/x86-npb-benchmarks.py` which you can execute
with gem5 and run NPB. This should work: `./build/X86/gem5.opt
configs/example/gem5_library/x86-npb-benchmarks.py --benchmark ep --size A`
(warning, this script assumes you're running gem5 on an X86 host with KVM).
This approach is using our gem5 stdlib, a tutorial to which can be found
here: https://www.gem5.org/documentation/gem5-stdlib/overview

The second way is to checkout the gem5-resources repo to the state it was
at the last release. The tag you want is v21.1.0.2,
https://gem5.googlesource.com/public/gem5-resources/+/refs/tags/v21.1.0.2/.
This should contain the configs (If you do this, i think it'd be best to
checkout the gem5 repo to an earlier release as well).

Kind regards,
Bobby
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Thu, Feb 17, 2022 at 10:43 AM David Fong via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
>
>
> I’m going through the steps to create the npb environment.
>
>
>
> https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial
>
>
> gem5 run scripts
>
> Next, we need to add gem5 run scripts. We will do that in a folder named
> configs-npb-tests. Get the run script named run_npb.py from here
> ,
> and other system configuration files from [here]((
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/system/
> ).
>
>
>
>
>
> I’m not able to access the link to “run_npb.py”.
>
>
>
>
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/run_npb.py
>
>
>
> I get this error
>
>
>
>
>
> Does anyone else have this problem and how to workaround ?
>
> Is there another location to download the “run_npb.py” ?
>
>
>
> Thanks,
>
>
>
> David
>
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

[gem5-users] Re: Not able to access webpage to run_npb.py

2022-02-17 Thread Jason Lowe-Power via gem5-users
Hi David,

Sorry for the confusion. We need to update that documentation! You can now
find the script here:
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/configs/example/gem5_library/x86-npb-benchmarks.py
(or in configs/example/gem5_library in the gem5 repo).

Cheers,
Jason

On Thu, Feb 17, 2022 at 10:42 AM David Fong via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
>
>
> I’m going through the steps to create the npb environment.
>
>
>
> https://www.gem5.org/documentation/gem5art/tutorials/npb-tutorial
>
>
> gem5 run scripts
>
> Next, we need to add gem5 run scripts. We will do that in a folder named
> configs-npb-tests. Get the run script named run_npb.py from here
> ,
> and other system configuration files from [here]((
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/system/
> ).
>
>
>
>
>
> I’m not able to access the link to “run_npb.py”.
>
>
>
>
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/npb/configs/run_npb.py
>
>
>
> I get this error
>
>
>
>
>
> Does anyone else have this problem and how to workaround ?
>
> Is there another location to download the “run_npb.py” ?
>
>
>
> Thanks,
>
>
>
> David
>
>
> ___
> gem5-users mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s