[gem5-users] Re: Error: Can't find a working Python installation with Python-3.11 version

2023-09-29 Thread Bobby Bruce via gem5-users

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Sep 29, 2023, at 5:19 AM, Bobby Bruce  wrote:
> 
> What version of gem5 are you using? In the latest version, v23.0 (`git clone 
> https://github.com/gem5/gem5.git`  is 
> all you'd need to do), this bug has been fixed. 
> 
> Though if you need to use an older version of gem5 for a good reason then, 
> yes, just downgrade Python 11 to anything <11. This bug was hell to fix. 
> Python changed how regex was processed and it took forever to figure out and 
> even longer to come up with a solution.
> 
> --
> Dr. Bobby R. Bruce
> Room 3050,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>  
> web: https://www.bobbybruce.net
> 
>> On Sep 29, 2023, at 5:14 AM, Ioannis Constantinou 
>>  wrote:
>> 
>> Hello,
>> 
>> I tried what you suggested too and it does not work.
>> 
>> I actually found an issue in this link 
>> https://gem5.atlassian.net/browse/GEM5-1295 . So I suspect this is why 
>> python3.11 does not work. The version of gem5 I have is 2.0 . So I think 
>> it’s best to stick with python3.8 until I can switch to a newer version of 
>> gem5
>> 
>> Thank you for your help,
>> Ioannis Constantinou
>> 
>>> On 29 Sep 2023, at 2:34 PM, Bobby Bruce  wrote:
>>> 
>>> Python 11 should work fine as far as i know.
>>> 
>>> Try removing your build directory and recompiling from scratch (`rm -rf 
>>> build && scons build/ALL/gem5.opt`). gem5 can get confused if you've moved 
>>> the build directory across different machines or changed stuff in the 
>>> machines environment. This may not be the cause but it's the most common 
>>> reason for this error.
>>> 
>>> --
>>> Dr. Bobby R. Bruce
>>> Room 3050,
>>> Kemper Hall, UC Davis
>>> Davis,
>>> CA, 95616
>>>  
>>> web: https://www.bobbybruce.net
>>> 
 On Sep 28, 2023, at 1:51 PM, Ioannis Constantinou via gem5-users 
  wrote:
 
 Hello,
 I’m trying to build gem5 with GCC-12.3 and Python-3.11 and I get the 
 "Error: Can't find a working Python installation”. With Python-3.8 and 
 GCC-11.3 it works perfectly fine.
 
 In there a compatibility problem with Python-3.11?
 
 I also tried adding the absolute path after “scons build/X86/gem.opt -j9 
 PYTHON_CONFIG=“…” but didn’t work.
 
 Thank you,
 Ioannis Constantinou
 ___
 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: Error: Can't find a working Python installation with Python-3.11 version

2023-09-29 Thread Bobby Bruce via gem5-users
Python 11 should work fine as far as i know.

Try removing your build directory and recompiling from scratch (`rm -rf build 
&& scons build/ALL/gem5.opt`). gem5 can get confused if you've moved the build 
directory across different machines or changed stuff in the machines 
environment. This may not be the cause but it's the most common reason for this 
error.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Sep 28, 2023, at 1:51 PM, Ioannis Constantinou via gem5-users 
>  wrote:
> 
> Hello,
> I’m trying to build gem5 with GCC-12.3 and Python-3.11 and I get the "Error: 
> Can't find a working Python installation”. With Python-3.8 and GCC-11.3 it 
> works perfectly fine.
> 
> In there a compatibility problem with Python-3.11?
> 
> I also tried adding the absolute path after “scons build/X86/gem.opt -j9 
> PYTHON_CONFIG=“…” but didn’t work.
> 
> Thank you,
> Ioannis Constantinou
> ___
> 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: How to check content of Cache block

2023-09-12 Thread Bobby Bruce via gem5-users
Hey Sadhana,

First of i'll i'd read over the replacement policy documentation: 
https://www.gem5.org/documentation/general_docs/memory_system/replacement_policies/.

There are  lot of options to get information on a cache blog. Generally I think 
this Stackoverflow gives the most comprehensive options on this: 
https://stackoverflow.com/questions/64954075/how-to-output-the-data-in-the-cache-set-when-the-cache-is-replaced.
 The most important thing to to keep in mind in the `CacheBlk->data` will 
always get you the data in the cache block (it's a `uint8_t*`).

I don't know exactly what the options are here but they may be a debug flag 
that gets you what you want. For more information on using debug flags: 
https://www.gem5.org/documentation/learning_gem5/part2/debugging/.

Kind regards,
Bobby

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Sep 11, 2023, at 10:17 PM, Sadhana . via gem5-users  
> wrote:
> 
> Hello everyone,
>I am working in gem5 version 22.0, I wan to design a cache replacement 
> policy as a part of my research work, which evicts blocks based on the 
> contents i.e. considering a number of zeros and ones. Is there a possibility 
> to get the content of cache blok, in gem5?
> Thanks and Regards,
> Sadhana,
> Research Scholar-NITK,
> Dept. of Computer Science and Engineering
> .
> ___
> 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: Why the se.py has been deprecated?

2023-08-27 Thread Bobby Bruce via gem5-users
It's not maintained properly, nor tested, and the engineering of these files 
has, frankly, become rather messy. se.py (and fs.py) are in the 
"configs/example" directory because they were intended to be examples of how to 
configure a gem5 simulation. Overtime they have been extended and used as a 
de-facto CLI to gem5 which they were never intended to be. This CLI is an 
inefficient, poorly documented way to configure a system and leads to all sorts 
problems. As an example, the cross-product of the all the CLI options is HUGE 
and a lot in them don't work or don't make sense. There really no way for the 
user to know what's right and what's wrong. This doesn't sit right with me.

Configuring a gem5 system should be seen more like writing a program. The scope 
of what can be done is infinite and is managed by giving the developer a 
language to state in a structured way what they want. gem5 is the interpreter 
for this language and the output is the simulation. Using fs.py/se.py to 
configure a system is like trying to develop a CPP program by CLI. You quickly 
run into limits. The reason I believe this was accepted for so long in gem5 is 
that configuring a non-trivial systems involved writing 100s of lines of Python 
code, a lot of which didn't vary much between different simulations. Building 
on our programming language comparison, we developed a standard library 
containing commonly used components which can be connected into a system in a 
modular manner: https://www.gem5.org/documentation/gem5-stdlib/overview. This 
library is continually tested, and we put significant engineering resources to 
maintaining its stability and extending it with new features.

With the gem5 stdlib users can configure simulations in a few lines of Python. 
Here is an example of configuring an X86 FS system simulation running Ubuntu 
18.04 boot to userspace with just 7 lines: 
https://github.com/gem5/gem5/blob/f29bfc0640c88a79eb7f94454ce31b3237ec0066/configs/example/gem5_library/x86-ubuntu-run.py.
 The stdlib addresses the problems se.py and fs.py were kept to address, in 
better way. 

Above all else, there's really no one who works regularly on the project 
willing to maintain these files to our standards. While they are deprecated and 
will be removed in a later release, we have no problem with people continuing 
to use them. They are open source, so take copy and use them in your work as 
you see fit. In deprecating them we are simply ceding responsibility so we may 
focus more-so on parts of the project we believe deliver better value to the 
community.

Kind regards,
Bobby

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Aug 26, 2023, at 6:52 AM, chengyong zhong via gem5-users 
>  wrote:
> 
> Hi all,
> I'm wondering why the config/example/se.py has been deprecated, it was a 
> helpful configuration for extending custom configuration.
> ___
> 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: can't run riscv simulation with any CPU model except Atomic

2023-08-24 Thread Bobby Bruce via gem5-users
If you are referring to the RISC-V Full System simulations. Yes, they are very 
slow. 2 hours seems normal to me. I've seen them take longer.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Aug 24, 2023, at 5:23 AM, Eliot Moss via gem5-users  
> wrote:
> 
> On 8/24/2023 1:35 AM, oe-fans via gem5-users wrote:
>> After 2 hours, message appear in m5term. My CPU is xeon e5 2687w v3, I think 
>> the boot time is too long, are there any way to accelerate it?
> 
> I have seen it take longer if the number of cpus told to gem5
> does not match the number of cpus in the Linux dtb file.  This
> was a while ago, so I'm not sure it's still true ...
> 
> Best - Eliot Moss
> ___
> 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: Question about changing PrivilegeMode

2023-08-14 Thread Bobby Bruce via gem5-users
Hey,

SE mode runs things in user space, you cannot run privileged instructions in 
it. 

If you wish to support privilege levels then you'll need to build an FS mode 
simulation.

Kind regards,
Bobby

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Aug 14, 2023, at 10:00 AM, 王崇滕 via gem5-users  wrote:
> 
> Hi everyone, 
> 
> I ran the following program which simply reads the value of MiscReg (mhartid, 
> mstatus, ...),
> https://pastebin.com/t5XBBWEz. (remove line 31-32)
> 
> The compilation command I used is, riscv64-unknown-elf-gcc -static hello1.c 
> -o hello1.
> I ran it with SE script, gem5.opt se.py -c hello1
> 
> And this is the error I got, 
> panic: Illegal instruction 0xf14027f3 at pc (0x101b8=>0x101bc).(0=>1): 
> mhartid is not accessible in 0.
> 
> I believe the "0" stands for the value of PrivilegeMode PRV_U right?
> So my question is how do I change from PRV_U to PRV_M in order to access 
> MiscReg?
> Also, I have found an element of array MiscRegNames in isa.cc, which is 
> [MISCREG_PRV]   = "PRV", does this element control which 
> PrivilegeMode that i'm in?
> Any help would be appreciated!
> Thanks
> 
> Regards,
> Jerry
> ___
> 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: Problems upgrading to latest version

2023-07-24 Thread Bobby Bruce via gem5-users
I think there are a few things going on here causing problems.

1. The pre-commit hooks aren't being installed correctly. i think this is due 
to some directory permission error. The '/.cache' directory appears to not have 
the right permissions here. Perhaps this you did something here with sudo? You 
can recreate this error using "/util/pre-commit-install.sh". Either way it 
isn't necessary that these hooks are installed. If this step fails gem5 should 
still work.

2. The "error not "build' dir found on target path": I'm pretty sure you either 
didn't execute the this in the root of the gem5 directory or you made a typo 
when typing the scons command. The "-j16" at the end of that command makes me 
believe there was some kind of error with passing the `-j` flag and specifying 
the build path.

3. The "procesor" argument has been renamed to "generator" for the test board. 
I believe this is easily fixed. All you need to do is change 
https://github.com/gem5bootcamp/gem5-bootcamp-env/blob/1afde18b5c4240736507a68fd2e54351be31f30d/materials/using-gem5/04-cache-models/simple_cache_run.py#L98
 to `generator=generator,`. 

It should be noted that the 2022 gem5 was build with v22.0 of gem5. If you're 
following the Bootcamp we strongly advise using v22.0 of gem5. There have been 
numerous codebase updates over the past year and we can't guarantee all of the 
tutorials will work as intended with the latest version.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Jul 23, 2023, at 7:00 AM, Beser, Nicholas D. via gem5-users 
>  wrote:
> 
> I had been running version 22, and I had also run the bootcamp 2022 example 
> for demonstrating MESI_Two_Level protocol. After I upgraded to version 
> 23.0.0.1, I first noticed that I had trouble compiling the example. After 
> finding a work around, to generate gem5.opt, The program seems to be missing 
> the parameter processor (which was not needed when I ran version 22. I can 
> use some suggestions on how to run this example with the new version (What 
> has changed?
>  
> The example where it worked in version 22, but not in version 23:
>  
> scons build/NULL_MESI_Two_Level/gem5.opt --default=NULL 
> PROTOCOL=MESI_Two_Level –j16
>  
> The program gave me an error: 
>  
> scons build/NULL_MESI_Two_Level/gem5.opt --default=NULL 
> PROTOCOL=MESI_Two_Level –j16
> scons: Reading SConscript files ...
>  
> You're missing the pre-commit/commit-msg hooks. These hook help to ensure your
> code follows gem5's style rules on git commit and your commit messages follow
> our commit message requirements. This script will now install these hooks in
> your .git/hooks/ directory.
> Press enter to continue, or ctrl-c to abort:
> An unexpected error has occurred: PermissionError: [Errno 13] Permission 
> denied: '/.cache'
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.8/dist-packages/pre_commit/error_handler.py", 
> line 73, in error_handler
> yield
>   File "/usr/local/lib/python3.8/dist-packages/pre_commit/main.py", line 367, 
> in main
> store = Store()
>   File "/usr/local/lib/python3.8/dist-packages/pre_commit/store.py", line 71, 
> in __init__
> os.makedirs(self.directory, exist_ok=True)
>   File "/usr/lib/python3.8/os.py", line 213, in makedirs
> makedirs(head, exist_ok=exist_ok)
>   File "/usr/lib/python3.8/os.py", line 223, in makedirs
> mkdir(name, mode)
> PermissionError: [Errno 13] Permission denied: '/.cache'
>  
> During handling of the above exception, another exception occurred:
>  
> Traceback (most recent call last):
>   File "/usr/local/bin/pre-commit", line 8, in 
> sys.exit(main())
>   File "/usr/local/lib/python3.8/dist-packages/pre_commit/main.py", line 433, 
> in main
> raise AssertionError(
>   File "/usr/lib/python3.8/contextlib.py", line 131, in __exit__
> self.gen.throw(type, value, traceback)
>   File "/usr/local/lib/python3.8/dist-packages/pre_commit/error_handler.py", 
> line 81, in error_handler
> _log_and_exit(msg, ret_code, e, traceback.format_exc())
>   File "/usr/local/lib/python3.8/dist-packages/pre_commit/error_handler.py", 
> line 31, in _log_and_exit
> storedir = Store().directory
>   File "/usr/local/lib/python3.8/dist-packages/pre_commit/store.py", line 71, 
> in __init__
> os.makedirs(self.directory, exist_ok=True)
>   File "/usr/lib/python3.8/os.py", line 213, in makedirs
> makedirs(head, exist_ok=exist_ok)
>   File "/usr/lib/python3.8/os.py", line 223, in makedirs
> mkdir(name, mode)
> PermissionError: [Errno 13] Permission denied: '/.cache'
> It is strongly recommended you install the pre-commit hooks before working 
> with gem5. Do you want to continue compilation (y/n)?
> y
> Error: No non-leaf 'build' dir found on target path. 
> /home/nbeser1/gem5-bootcamp-env/gem5/–j16
>  
> However if I run the following:
>  
> python3 `which scons` build/NULL_MESI_Two_Level/gem5.opt --default=NULL 
> 

[gem5-users] Re: Exception when running libtorch simulation in SE mode

2023-07-19 Thread Bobby Bruce via gem5-users
I tried to reproduce this for myself but I failed to do so (using v23.0.0.1, `build/ALL/gem5.opt`).. Attached is a tarball of the files i used. The steps I carried out can be found on the the "README.md" file. I'm not sure what I'm missing but my execution prints "Hello World" successfully.The host was an X86 Ubuntu 20.04.6 OS and everything was compiled if GCC 9.4.0.

reproduction.tar.gz
Description: GNU Zip compressed data

--Dr. Bobby R. BruceRoom 3050,Kemper Hall, UC DavisDavis,CA, 95616 web: https://www.bobbybruce.net

On Jul 18, 2023, at 6:08 PM, Matt Sinclair  wrote:For what it's worth, one of the students working with me (Marco, CC'd) is having the same failure right now for the head of develop (plus this fix: https://github.com/gem5/gem5/pull/99), except for a tiny GPU microbenchmark that definitely is not using PyTorch or any higher level library.We are working on getting a backtrace to understand what's going on for us (and then push a fix as applicable), and it's possible our problems have the same symptom but a different root cause.  But just wanted to chime in that there are multiple cases where this error is happening on develop right now with SE mode.MattOn Tue, Jul 18, 2023 at 7:58 PM Bobby Bruce via gem5-users <gem5-users@gem5.org> wrote:I’m afraid I don’t know exactly what’s causing this error, but just to make sure, the binary you built and as a `CustomResource` executes on your host? This looks like an error coming from PyTorch, not the simulator. That being said, I don’t understand why "build/X86/sim/faults.cc:61: panic: panic condition !FullSystem occurred: fault (General-Protection) detected @ PC “ is occurring after either, that could also be the issue. Personally, I’m always a bit scared linking to dynamic libraries on the host as well,If you want to get around this the annoying advice is to use FS mode. It’s slower, and requires creation of a disk image, but it isn’t nearly as error-prone as SE mode. If your binary works on your host then you should be able to get it to work in FS mode. Using checkpoints and (if you have the right hardware and are using X86) KVM cores can speed things up for you too.Also, as a sidenote: If you’re wanting to simulate PyTorch, don’t you want to simulate a GPU too?
--Dr. Bobby R. BruceRoom 3050,Kemper Hall, UC DavisDavis,CA, 95616 web: https://www.bobbybruce.net

On Jul 14, 2023, at 3:02 AM, Caio Vieira via gem5-users <gem5-users@gem5.org> wrote:
  


  
  

Hi everyone,
  
  
  I'm trying to execute gem5 simulations using libtorch in SE mode.
  However, I get the following error message:
  
  
  --- Error message ---
  
  ...
  
  terminate called after throwing an instance of
  'std::runtime_error'
  
    what():  expected eof but found 'ident' here:
  
  aten::quantized_lstm.inpr input, Tensor[]
  orch.classes.rnn.CellPara[] params, bool has_biases, int
  num_layers, float dropout, bool train, bool bidirectional, bool
  batch_first, *, ScalarType? dtype=None, bool use_dynamic=False) dy
  
  namic=False) -> (Tensor, Tensor, Tenso Tensor, Tensor)
  
    ~ <--- HERE
  
  
  build/X86/sim/syscall_emul.cc:86: warn: ignoring syscall
  rt_sigprocmask(...)
  
    (further warnings will be suppressed)
  
  build/X86/sim/syscall_emul.cc:86: warn: ignoring syscall
  rt_sigaction(...)
  
    (further warnings will be suppressed)
  
  build/X86/sim/faults.cc:61: panic: panic condition !FullSystem
  occurred: fault (General-Protection) detected @ PC
  (0x7fff7a3d5898=>0x7fff7a3d5899).(0=>1)
  
  Memory Usage: 11842716 KBytes
  
  Program aborted at tick 294083905383
  
  --- BEGIN LIBC BACKTRACE ---
  
  ...
  
  
  The simulation fails before the first line of the main function. I
  believe that it is failing to load the libtorch library.
  
  Unfortunately, it is not possible to build libtorch with "-static"
  since their static builds is broken for quiet a long
  
  time: https://github.com/pytorch/pytorch/issues/21737
I've tested with gem5 v22.1.0.0
  and also 22.0.0.2. I've also tested using different GCC versions
  to build the simulated binary.
  
  For anyone interested in reproducing the error, I'm sending a
  "setup.sh" script to create a minimal reproducible environment.
  
  Simply copy and paste the script below and name it as "setup.sh"
  in a new directory, then:
  
  
  source setup.sh
  
  cmake --B build -S .
  
  cmake --build build
  
  ./ config.py build/main 




  Best regards,
  Caio Vieira
  
  --- setup.sh ---
  
  
  #!/bin/bash
  
  
  # Bash script to create mi

[gem5-users] Re: Exception when running libtorch simulation in SE mode

2023-07-18 Thread Bobby Bruce via gem5-users
I’m afraid I don’t know exactly what’s causing this error, but just to make 
sure, the binary you built and as a `CustomResource` executes on your host? 
This looks like an error coming from PyTorch, not the simulator. That being 
said, I don’t understand why "build/X86/sim/faults.cc:61: panic: panic 
condition !FullSystem occurred: fault (General-Protection) detected @ PC “ is 
occurring after either, that could also be the issue. Personally, I’m always a 
bit scared linking to dynamic libraries on the host as well,

If you want to get around this the annoying advice is to use FS mode. It’s 
slower, and requires creation of a disk image, but it isn’t nearly as 
error-prone as SE mode. If your binary works on your host then you should be 
able to get it to work in FS mode. Using checkpoints and (if you have the right 
hardware and are using X86) KVM cores can speed things up for you too.

Also, as a sidenote: If you’re wanting to simulate PyTorch, don’t you want to 
simulate a GPU too?

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Jul 14, 2023, at 3:02 AM, Caio Vieira via gem5-users  
> wrote:
> 
> 
> Hi everyone, 
> 
> I'm trying to execute gem5 simulations using libtorch in SE mode. However, I 
> get the following error message: 
> 
> --- Error message --- 
> ... 
> terminate called after throwing an instance of 'std::runtime_error' 
>   what():  expected eof but found 'ident' here: 
> aten::quantized_lstm.inpr input, Tensor[] orch.classes.rnn.CellPara[] params, 
> bool has_biases, int num_layers, float dropout, bool train, bool 
> bidirectional, bool batch_first, *, ScalarType? dtype=None, bool 
> use_dynamic=False) dy 
> namic=False) -> (Tensor, Tensor, Tenso Tensor, Tensor) 
>   ~ <--- HERE 
> 
> build/X86/sim/syscall_emul.cc:86: warn: ignoring syscall rt_sigprocmask(...) 
>   (further warnings will be suppressed) 
> build/X86/sim/syscall_emul.cc:86: warn: ignoring syscall rt_sigaction(...) 
>   (further warnings will be suppressed) 
> build/X86/sim/faults.cc:61: panic: panic condition !FullSystem occurred: 
> fault (General-Protection) detected @ PC 
> (0x7fff7a3d5898=>0x7fff7a3d5899).(0=>1) 
> Memory Usage: 11842716 KBytes 
> Program aborted at tick 294083905383 
> --- BEGIN LIBC BACKTRACE --- 
> ... 
> 
> The simulation fails before the first line of the main function. I believe 
> that it is failing to load the libtorch library. 
> Unfortunately, it is not possible to build libtorch with "-static" since 
> their static builds is broken for quiet a long 
> time: https://github.com/pytorch/pytorch/issues/21737
> I've tested with gem5 v22.1.0.0 and also 22.0.0.2. I've also tested using 
> different GCC versions to build the simulated binary.
> 
> For anyone interested in reproducing the error, I'm sending a "setup.sh" 
> script to create a minimal reproducible environment. 
> Simply copy and paste the script below and name it as "setup.sh" in a new 
> directory, then: 
> 
> source setup.sh 
> cmake --B build -S . 
> cmake --build build 
> ./ config.py build/main 
> 
> Best regards,
> Caio Vieira
> 
> --- setup.sh --- 
> 
> #!/bin/bash 
> 
> # Bash script to create minimal reproducible environment for libtorch 
> simulation 
> # bug. This script creates necessary files such as a CMakeLists.txt and a 
> minimal 
> # main.cpp. The CMakeLists.txt file downloads and manages libtorch by saving 
> it 
> # in a ""_deps"" folder. Steps to reproduce the bug: 
> # ./ 
> # cmake -B build -S . 
> # cmake --build build 
> # ./ config.py build/main 
> 
> function create_cmake() { 
> cat > CMakeLists.txt <<- \EOF 
> cmake_minimum_required(VERSION 3.22 FATAL_ERROR) 
> 
> # Download and manage libtorch dependency 
> set(DEPENDENCY_DIR "${CMAKE_CURRENT_LIST_DIR}/_deps") 
> 
> file(MAKE_DIRECTORY "${DEPENDENCY_DIR}") 
> if(NOT EXISTS "${DEPENDENCY_DIR}/libtorch") 
> file(DOWNLOAD 
> https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.0.0%2Bcpu.zip
>  
> "${DEPENDENCY_DIR}/libtorch.zip") 
> file(ARCHIVE_EXTRACT 
> INPUT "${DEPENDENCY_DIR}/libtorch.zip" 
> DESTINATION "${DEPENDENCY_DIR}") 
> file(REMOVE "${DEPENDENCY_DIR}/libtorch.zip") 
> endif() 
> set(CMAKE_PREFIX_PATH "${DEPENDENCY_DIR}/libtorch") 
> find_package(Torch REQUIRED) 
> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TORCH_CXX_FLAGS}") 
> 
> project(main) 
> 
> # Create executable 
> add_executable(${CMAKE_PROJECT_NAME} main.cpp) 
> target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC 
> ${TORCH_INCLUDE_DIRS}) 
> target_link_libraries(${CMAKE_PROJECT_NAME} ${TORCH_LIBRARIES}) 
> set_property(TARGET ${CMAKE_PROJECT_NAME} PROPERTY CXX_STANDARD 14) 
> message("Torch Libraries: ${TORCH_LIBRARIES}") 
> EOF 
> } 
> 
> function create_main() { 
> cat > main.cpp <<- \EOF 
> #include  
> #include  
> 
> int main(int argc, char *argv[]) { 
> std::cout << "Hello World" << std::endl; 
> } 
> 

[gem5-users] Re: Possible bug in cache/base.cc

2023-07-18 Thread Bobby Bruce via gem5-users
Thanks for reporting this Elliot. I’ve logged the issue here: 
https://github.com/gem5/gem5/issues/100. 

If possible, do you know the configuration you were running that triggered this 
issue? If so, it would be appreciated if you could share on the GitHub Issue 
page.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Jul 14, 2023, at 12:10 PM, Eliot Moss via gem5-users  
> wrote:
> 
> Dear gem5-ers -
> 
> I've run across something, which unfortunately I cannot reliably repeat, that
> suggests an oversight in the code of src/mem/cache/base.cc.  In particular, it
> appears that a HardPFResp can arrive where the MSHR remembered in the packet's
> senderState no longer has any targets.  This causes this line to fail with an
> assertion error in getTarget():
> 
> const QueueEntry::Target *initial_tgt = mshr->getTarget();
> 
> Presumably some suitable conditionalization on mshr->hasTargets() could be
> used to fix things, unless the problem is that somehow the target(s)
> disappeared when they should not have.  My suspicion is that something to do
> with snooping by another cache caused the target to go away, and the situation
> should just be ignored, but I did not want to attempt a fix along the lines of
> testing hasTargets() without further confirmation.  There is also the question
> of what to do about the stats in this case, there being no obvious basis for
> determining a latency.  [We could change the senderState to include the time
> the prefetch began, though, and use HardPFReq as the command.]
> 
> Regards - Eliot Moss
> ___
> 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: Running the PARSEC benchmark with RAM > 3GB

2023-06-15 Thread Bobby Bruce via gem5-users
I don’t know. fs.py isn’t really regularly tested or maintained. it will be 
deprecated come v23.0 of gem5. I wouldn’t recommend using it but you’re free to 
give it a try if you wish.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Jun 15, 2023, at 12:19 PM, Vincent Abraham via gem5-users 
>  wrote:
> 
> Thank you, I'll try it. Is there also a way to run the PARSEC benchmark 
> through fs.py if I have a disk image loaded with the benchmark?
> 
> On Thu, Jun 15, 2023 at 12:11 PM Bobby Bruce via gem5-users 
> mailto:gem5-users@gem5.org>> wrote:
>> In the standard library the X86 Board currently doesn’t support memory sizes 
>> >3GB. The reason for this is due to restrictions in how we setup the memory 
>> ranges of the system.
>> 
>> If you  look at the code here: 
>> https://github.com/gem5/gem5/blob/55cecfc3e8fb2bdddfd96a850b0fdaca9bcdd0b3/src/python/gem5/components/boards/x86_board.py#L281,
>>  you can see that we hardcode the I/O memory range to start at 0xC000, 
>> with the memory range immediately prior. Memory sizes >3GB will mean it 
>> overlaps the I/O memory range.
>> 
>> We have been meaning to make this more flexible, allowing for higher memory 
>> ranges, but this has yet to be implemented.
>> 
>> If you’re feeling confident, and understand X86 memory ranges, you could 
>> hack this code to create a system >3GB.
>> 
>> --
>> Dr. Bobby R. Bruce
>> Room 3050,
>> Kemper Hall, UC Davis
>> Davis,
>> CA, 95616
>>  
>> web: https://www.bobbybruce.net <https://www.bobbybruce.net/>
>> 
>>> On Jun 15, 2023, at 6:56 AM, Vincent Abraham via gem5-users 
>>> mailto:gem5-users@gem5.org>> wrote:
>>> 
>>> The error has been resolved. Turns out I didn't specify the partition on 
>>> the disk image. But I'm still wondering if there's any code for running the 
>>> benchmark with a system with >3GB main memory.
>>> 
>>> On Wed, Jun 14, 2023 at 4:20 PM Vincent Abraham >> <mailto:vincent@gmail.com>> wrote:
>>>> Also, I'm getting the following error on running the command: 
>>>> build/X86/gem5.opt configs/example/gem5_library/x86-parsec-benchmarks.py 
>>>> --benchmark vips --size simsmall
>>>> 
>>>> Kernel panic - not syncing: VFS: Unable to mount root fs on 
>>>> unknown-block(3,0)
>>>> CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.83 #1
>>>> Hardware name:  , BIOS  06/08/2008
>>>> Call Trace:
>>>>  dump_stack+0x5d/0x79
>>>>  panic+0xe2/0x236
>>>>  mount_block_root+0x2b0/0x2e4
>>>>  ? set_debug_rodata+0xc/0xc
>>>>  prepare_namespace+0x15b/0x191
>>>>  kernel_init_freeable+0x23c/0x24c
>>>>  ? rest_init+0xa0/0xa0
>>>>  kernel_init+0x5/0xf0
>>>>  ret_from_fork+0x35/0x40
>>>> Kernel Offset: disabled
>>>> ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on 
>>>> unknown-block(3,0) ]---
>>>> 
>>>> Any help with how to resolve this would be appreciated. I used 
>>>> gem5-resources to build the disk image for the benchmark and followed the 
>>>> steps mentioned in 
>>>> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/parsec/.
>>>>  I only changed the vm_memory to 16384 and cores to 8 in parsec.json.
>>>> 
>>>> On Wed, Jun 14, 2023 at 11:57 AM Vincent Abraham >>> <mailto:vincent@gmail.com>> wrote:
>>>>> Hi everyone,
>>>>> Is it possible in any way to run the provided x86-parsec-benchmarks.py 
>>>>> script for a system with >3GB of memory? Is there any other way around 
>>>>> this like running the fs.py script for parsec benchmarks?
>>>>> 
>>>>> Thanks,
>>>>> Vincent
>>> ___
>>> gem5-users mailing list -- gem5-users@gem5.org <mailto:gem5-users@gem5.org>
>>> To unsubscribe send an email to gem5-users-le...@gem5.org 
>>> <mailto:gem5-users-le...@gem5.org>
>> 
>> ___
>> gem5-users mailing list -- gem5-users@gem5.org <mailto:gem5-users@gem5.org>
>> To unsubscribe send an email to gem5-users-le...@gem5.org 
>> <mailto: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 mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: Running the PARSEC benchmark with RAM > 3GB

2023-06-15 Thread Bobby Bruce via gem5-users
In the standard library the X86 Board currently doesn’t support memory sizes 
>3GB. The reason for this is due to restrictions in how we setup the memory 
ranges of the system.

If you  look at the code here: 
https://github.com/gem5/gem5/blob/55cecfc3e8fb2bdddfd96a850b0fdaca9bcdd0b3/src/python/gem5/components/boards/x86_board.py#L281,
 you can see that we hardcode the I/O memory range to start at 0xC000, with 
the memory range immediately prior. Memory sizes >3GB will mean it overlaps the 
I/O memory range.

We have been meaning to make this more flexible, allowing for higher memory 
ranges, but this has yet to be implemented.

If you’re feeling confident, and understand X86 memory ranges, you could hack 
this code to create a system >3GB.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Jun 15, 2023, at 6:56 AM, Vincent Abraham via gem5-users 
>  wrote:
> 
> The error has been resolved. Turns out I didn't specify the partition on the 
> disk image. But I'm still wondering if there's any code for running the 
> benchmark with a system with >3GB main memory.
> 
> On Wed, Jun 14, 2023 at 4:20 PM Vincent Abraham  > wrote:
>> Also, I'm getting the following error on running the command: 
>> build/X86/gem5.opt configs/example/gem5_library/x86-parsec-benchmarks.py 
>> --benchmark vips --size simsmall
>> 
>> Kernel panic - not syncing: VFS: Unable to mount root fs on 
>> unknown-block(3,0)
>> CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.83 #1
>> Hardware name:  , BIOS  06/08/2008
>> Call Trace:
>>  dump_stack+0x5d/0x79
>>  panic+0xe2/0x236
>>  mount_block_root+0x2b0/0x2e4
>>  ? set_debug_rodata+0xc/0xc
>>  prepare_namespace+0x15b/0x191
>>  kernel_init_freeable+0x23c/0x24c
>>  ? rest_init+0xa0/0xa0
>>  kernel_init+0x5/0xf0
>>  ret_from_fork+0x35/0x40
>> Kernel Offset: disabled
>> ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on 
>> unknown-block(3,0) ]---
>> 
>> Any help with how to resolve this would be appreciated. I used 
>> gem5-resources to build the disk image for the benchmark and followed the 
>> steps mentioned in 
>> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/parsec/.
>>  I only changed the vm_memory to 16384 and cores to 8 in parsec.json.
>> 
>> On Wed, Jun 14, 2023 at 11:57 AM Vincent Abraham > > wrote:
>>> Hi everyone,
>>> Is it possible in any way to run the provided x86-parsec-benchmarks.py 
>>> script for a system with >3GB of memory? Is there any other way around this 
>>> like running the fs.py script for parsec benchmarks?
>>> 
>>> Thanks,
>>> Vincent
> ___
> 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: [EXT] Re: Question about running the hpca-2023 tutorial

2023-06-09 Thread Bobby Bruce via gem5-users
Hey Nick,

The GUI work was basically just a prototype. We had ambitions to properly 
incorporate it into the project but we lacked the resources to do so. It should 
really be archived until someone wants to revive it. So I’m not surprised it 
doesn’t work. We don’t recommend using it.

The RELEASE-NOTES.md file, in the root of the gem5 repository 
(https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/RELEASE-NOTES.md)
 should highlight all the major changes introduced in gem5 released. API 
changes should be noted there.

A VM should work fine, but if you want to try something more light-weight, you 
could use Docker. The Docker image for the container we ran the Bootcamp in, 
via Codespaces, is gcr.io/gem5-test/gem5-tutorial-env:latest 
. So all you need to do is:

```
docker pull gcr.io/gem5-test/gem5-tutorial-env:latest 

docker run -u $UID:$GID —volume :/gem5 —rm -it 
gcr.io/gem5-test/gem5-tutorial-env:latest 

# from here you’re in the docker container and the gem5 repo is mounted to 
“/gem5”
```

(The sources for this docker image is in the Bootcamp repo, here: 
https://github.com/gem5bootcamp/gem5-bootcamp-env/tree/main/docker).

Kind regards,
Bobby

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Jun 9, 2023, at 6:08 AM, Beser, Nicholas D.  wrote:
> 
> Bobby,
>  
> Thank you for your reply. I am making my way through the Bootcamp 2022 videos 
> and slides. So far everything seems to be working. I had already planned to 
> use visual studio code as a student interface for GPU programming with the 
> Jetson Orin Nano systems, so I will try to use that with the gem5 programming 
> exercises. I have gem5 running on a VM system for my initial checkout, and we 
> try to port it to the Jetson for the class.
>  
> Is there a change document that describes the API changes? I will take a look 
> at the Obtain resources to make sure my examples are current. I don’t recall 
> seeing anything odd yet. 
>  
> I will have a challenge getting a week of viewgraphs down to two lectures, 
> but my plan is to have a basic tutorial, a lecture on concurrency and 
> coherence. and three discussion forums that will allow the student experiment 
> and generate studies. This is an on line class, and I am integrating gem5 
> into a basic outline that follows Patterson and Hennessy’s book on Computer 
> Architecture (A quantitative approach).
>  
> I think the only part of Gem5 that I could not get working was the GUI work. 
> I don’t think it has been updated.
>  
> Nick
>  
> From: Bobby Bruce mailto:bbr...@ucdavis.edu>> 
> Sent: Thursday, June 8, 2023 9:07 PM
> To: The gem5 Users mailing list  >
> Cc: Ayaz Akram mailto:yazak...@ucdavis.edu>>; Thiago 
> Rodrigues mailto:thiagor...@gmail.com>>; Beser, 
> Nicholas D. mailto:nick.be...@jhuapl.edu>>
> Subject: Re: [gem5-users] [EXT] Re: Question about running the hpca-2023 
> tutorial
>  
> APL external email warning: Verify sender bbr...@ucdavis.edu 
>  before clicking links or attachments
>  
> 
> Sorry for a very late reply, but for the sake of clarification:
>  
> Yes, I believe you should have cloned the bootcamp 2022 recurisively. I think 
> both the issues highlighted in this thread were due to running a newer 
> version of gem5 on top of older config scripts and resources which used the 
> older API.
>  
> There wasn’t much that went wrong when we used the 2022 Bootcamp repo with a 
> class of 50 last year. There may be bugs but I don’t think anything should be 
> glaringly broken. I think we did the gem5 Bootcamp with v22.0 of gem5, and 
> v22.1 was released in December of last year, so be careful. There were quite 
> a few API chances between these released. The “Obtain_resources” change was 
> definitely one.
>  
> I’m sorry for all the trouble your having with it. If you run into any 
> additional problems please reach out to me directly.
>  
> --
> Dr. Bobby R. Bruce
> Room 3050,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>  
> web: https://www.bobbybruce.net 
> 
> 
> On Jun 2, 2023, at 6:02 PM, Beser, Nicholas D. via gem5-users 
> mailto:gem5-users@gem5.org>> wrote:
>  
> I installed gem5 prior to downloading the gem5-tutorial-codespace. Is the 
> correct procedure git clone –recursive 
> https://github.com/gem5-hpca-2023/gem5-tutorial-codespace? Should I have done 
> that with the bootcamp 2022?
>  
> I use git to manage my class archive, but I normally keep it very simple.
>  
> Nick
>  
> From: Ayaz Akram mailto:yazak...@ucdavis.edu>> 
> Sent: Friday, June 2, 2023 6:29 PM
> To: The gem5 Users mailing list  >
> Cc: Thiago Rodrigues mailto:thiagor...@gmail.com>>; 
> Beser, Nicholas D. mailto:nick.be...@jhuapl.edu>>
> Subject: Re: 

[gem5-users] Re: [EXT] Re: Question about running the hpca-2023 tutorial

2023-06-08 Thread Bobby Bruce via gem5-users
Sorry for a very late reply, but for the sake of clarification:

Yes, I believe you should have cloned the bootcamp 2022 recurisively. I think 
both the issues highlighted in this thread were due to running a newer version 
of gem5 on top of older config scripts and resources which used the older API.

There wasn’t much that went wrong when we used the 2022 Bootcamp repo with a 
class of 50 last year. There may be bugs but I don’t think anything should be 
glaringly broken. I think we did the gem5 Bootcamp with v22.0 of gem5, and 
v22.1 was released in December of last year, so be careful. There were quite a 
few API chances between these released. The “Obtain_resources” change was 
definitely one.

I’m sorry for all the trouble your having with it. If you run into any 
additional problems please reach out to me directly.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Jun 2, 2023, at 6:02 PM, Beser, Nicholas D. via gem5-users 
>  wrote:
> 
> I installed gem5 prior to downloading the gem5-tutorial-codespace. Is the 
> correct procedure git clone –recursive 
> https://github.com/gem5-hpca-2023/gem5-tutorial-codespace 
> ? Should I have 
> done that with the bootcamp 2022?
>  
> I use git to manage my class archive, but I normally keep it very simple.
>  
> Nick
>  
> From: Ayaz Akram mailto:yazak...@ucdavis.edu>> 
> Sent: Friday, June 2, 2023 6:29 PM
> To: The gem5 Users mailing list  >
> Cc: Thiago Rodrigues mailto:thiagor...@gmail.com>>; 
> Beser, Nicholas D. mailto:nick.be...@jhuapl.edu>>
> Subject: Re: [gem5-users] Re: [EXT] Re: Question about running the hpca-2023 
> tutorial
>  
> APL external email warning: Verify sender yazak...@ucdavis.edu 
>  before clicking links or attachments
>  
> 
> Hi everyone,
>  
> The examples from the tutorial repo 
> (https://github.com/gem5-hpca-2023/gem5-tutorial-codespace 
> ) seem to work for 
> me with the gem5/gem5-resources versions checked out in that repo. I 
> basically cloned the entire repo using the --recursive flag. If you are using 
> a different version of gem5, my guess is that your scripts might need to be 
> updated because of changes in the standard library.
>  
> -Ayaz
>  
>  
> On Fri, Jun 2, 2023 at 12:28 PM Beser, Nicholas D. via gem5-users 
> mailto:gem5-users@gem5.org>> wrote:
> Thiago,
>  
> I have had better luck working through the gem5 bootcamp 2022. I have run 
> into some odd issues that I would love to compare notes with someone who 
> knows the gem5 system. Some of the errors have to do with the directory 
> organization of the gem5-bootcamp-env code from the github. I am running into 
> python errors that suggest that the code is not able to find the python 
> files. As an example when I run:
>  
> build/X86/gem5.opt 
> /home/besernd1/gem5-bootcamp-env/materials/using-gem5/02-stdlib/complete/hello-world-with-unique-cache.py
>  
> I had to make some changes in the unique_cache_hierarchy_complete.py file 
> because the python code could not see liCache.py. When I tried to run the 
> hello-world example, it still does not see the python file. I also have to 
> explicitly define the path to the customResource file, because it does not 
> understand the abbreviated directory path provided.  
>  
> I also ran into a problem with some of the earlier examples. I had to add a 
> line in front of the m5.instantiate():
>  
> board._pre_instantiate()
> m5.instantiate()
>  
> This was not necessary in later examples fro 02-stdlib.
>  
> Part of the problem has to do with the tutorial and bootcamp using the 
> codespaces. I think we need clear instructions on how to do those examples 
> with the basic gem5 installation.
>  
> Nick
> From: Thiago Rodrigues via gem5-users  > 
> Sent: Thursday, June 1, 2023 11:13 AM
> To: The gem5 Users mailing list  >
> Cc: Thiago Rodrigues mailto:thiagor...@gmail.com>>
> Subject: [EXT] [gem5-users] Re: Question about running the hpca-2023 tutorial
>  
> APL external email warning: Verify sender 
> gem5-users-bounces+nick.beser=jhuapl@gem5.org 
>  before clicking 
> links or attachments
>  
> 
> Hello, same problem here.
>  
> I am using the Ubuntu 22.04 LTS and the latest gem5 stable version. I 
> followed the HPCA(23) video tutorial and even used the available git 
> codespace.
>  
> I removed the "resource" related code lines and used a variable  -> binary = 
> "path_to_the_benchmark" <- to set the benchmark, and another error occurred: 
> "Attribute_Error: 'str' object has no attribute 'get_local_path' in the" -> 
> '(86) set_se_binary_workload.py' -< file
>  
> After that I used the get_started scripts (part 1) and the benchmark worked 
> just fine.
>  

[gem5-users] Re: Running a machine learning model on gem5

2023-04-24 Thread Bobby Bruce via gem5-users
I don’t know if it’s possible or not. Syscall-emulation mode is not fully 
“complete”. That is, not all syscalls have been implemented and, therefore, not 
all workloads will work with Syscall-emulation mode.

Beyond this I’d think about what kind of information you want from gem5. 
Syscall-emulation mode runs faster than Full-System mode but you can lose a lot 
of information. It’s not a cost-free speedup. If in doubt, use Full-System 
simulation.

Given machine learning is computationally intensive, I understand the necessity 
for faster simulation (gem5 can easily run for 100k seconds to simulate just 1s 
of a workload run, dependent on what kind of system you're simulating). I would 
recommend figuring out what code you specially want to simulate and consider 
techniques such as checkpointing and KVM fast forwarding (if you’re host 
machine supports this) to focus simulation on smaller regions-of-interest.

> On Apr 22, 2023, at 10:53 AM, saras nanda via gem5-users 
>  wrote:
> 
> Hi Ayaz, thank you for the reply...  is there any possibility to run it in 
> system emulation mode?
> 
> regards
> saras
> 
> On Fri, Apr 21, 2023 at 12:43 PM Ayaz Akram  > wrote:
> Hi Saras,
> 
> If you have a disk image with a machine learning model and relevant libraries 
> installed, you should be able to use it with gem5. I would suggest looking at 
> the examples of full-system simulation with gem5. Secondly, you might want to 
> look at how to modify disk images with QEMU and test your workload on QEMU. 
> If the model works on QEMU, I think theoretically it should work on gem5 as 
> well.
> 
> -Ayaz
> 
> On Thu, Apr 20, 2023 at 2:53 PM saras nanda via gem5-users 
> mailto:gem5-users@gem5.org>> wrote:
> Hi ,
> 
> 
> I am new to gem5. I would like to know if I can run a machine-learning model 
> on gem5. Would gem5 accept external libraries like TensorFlow, PyTorch..etc. 
> please provide me with some first steps to approach this problem of running a 
> machine learning model on gem5.
> 
> regards
> saras
> 
> ___
> 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 mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Re: I really want these files for old x86 gem5

2023-04-24 Thread Bobby Bruce via gem5-users
Which version of gem5 are you using?

Where did you get this disk image? These URLs are invalid.

> On Apr 24, 2023, at 1:50 AM, Xiang Li via gem5-users  
> wrote:
> 
> http://www.m5sim.org/dist/current/x86/x86-system.tar.bz2 
> 
> http://www.m5sim.org/dist/current/x86/config-x86.tar.bz2 
> 
> Hi, I'm using a old version gem5, the img is ubuntu 14.04 and the kernel is 
> vmlinux-4.4.186, but I got trouble when I using the fs model,.
> Run /sbin/init as init process
> random: fast init done
> Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory
> random: init: uninitialized urandom read (12 bytes read)
> init: plymouth-upstart-bridge main process (638) terminated with status 1
> init: plymouth-upstart-bridge main process ended, respawning
> init: plymouth-upstart-bridge main process (648) terminated with status 1
> init: plymouth-upstart-bridge main process ended, respawning
> init: ureadahead main process (641) terminated with status 5
> init: plymouth-upstart-bridge main process (651) terminated with status 1
> init: plymouth-upstart-bridge main process ended, respawning
> init: plymouth-upstart-bridge main process (654) terminated with status 1
> init: plymouth-upstart-bridge main process ended, respawning
> I think it's might be the wrong kernel or the wrong img. In source code, they 
> used `linux-bigswap2.img` and `vmlinux.aarch64.20140821`.
> So could you please send those files? I can't find them in the links above. 
> Thanks!
> ___
> 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: Error: open CFI at the end of file

2023-04-17 Thread Bobby Bruce via gem5-users
Normally errors like this are because you've run out of memory when
building gem5. If you're building with threads, reduce the number of
threads you're using. I normally recommend building on systems with 6GB+ to
be safe.

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

web: https://www.bobbybruce.net


On Mon, Apr 17, 2023 at 3:49 PM Jonathan Kang via gem5-users <
gem5-users@gem5.org> wrote:

> I’m trying to compile the ARM gem5 model:
>
>
>
> # python3 /usr/bin/scons build/ARM/gem5.opt
>
>
>
> However, I’m getting this error:
> {standard input}: Assembler messages:
>
> {standard input}:135661: Warning: end of file not at end of a line;
> newline inserted
>
> {standard input}:135860: Error: unknown pseudo-op: `.l'
>
> {standard input}: Error: open CFI at the end of file; missing .cfi_endproc
> directive
>
> g++: fatal error: Killed signal terminated program cc1plus
>
> compilation terminated.
>
> scons: *** [build/ARM/enums/ArmPciIntRouting.o] Error 1
>
>
>
> Any idea what could be happening?
> ___
> 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: Setting the maxinsts after warm-up period for running SPEC2017 in full-system mode

2023-04-10 Thread Bobby Bruce via gem5-users
I don’t know exactly how you are figuring out the warm-up period and how this 
all this is to fit together but the following may be of help:

If you’re using the gem5 standard library the “simulator” module has a function 
called “schedule_max_insts”. It will exit the simulation loop when any thread 
in any core reaches the specified number of instructions.

If you're not using the standard library you can set the BaseCPU’s 
“max_insts_any_thread” parameter prior to the system’s initialization specify 
when to exit the simulation, or, if after initialization, BaseCPU’s 
“scheduleInstStopAnyThread” function can be used.

--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616
 
web: https://www.bobbybruce.net

> On Apr 10, 2023, at 1:47 PM, Humza Ikram via gem5-users  
> wrote:
> 
> Hi,
> 
> I do not know how to stop execution after a certain number of instructions 
> but perhaps stopping execution after a certain number of ticks will suffice? 
> If that works, you could try using the "m5.scheduleTickExitFromCurrent" 
> function available in src>python>m5>simulate.py.  You could call this 
> function before "processor.switch()". 
> 
> You might also have to  append something like "ExitEvent.SCHEDULED_TICK: 
> handle_exit()" to "ExitEvent.EXIT: handle_exit()," in line ~300 of the same 
> file.
> 
> Hope I helped!
> Humza Ikram
> From: Farbin Fayza via gem5-users 
> Sent: Tuesday, April 11, 2023 1:19 AM
> To: The gem5 Users mailing list 
> Cc: Farbin Fayza 
> Subject: [gem5-users] Setting the maxinsts after warm-up period for running 
> SPEC2017 in full-system mode
>  
> Hello,
> Could anyone tell me how to set the max number of instructions to run after 
> the warm-up period? I'm not sure how to make the relevant change in the 
> x86-spec-cpu2017-benchmarks.py file. Or, is it possible to do this with 
> command-line arguments?
> 
> 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: Enquiry: change CPU type from TIMING to O3CPU in the FS simulation script of x86-npb-benchmarks.py

2022-12-06 Thread Bobby Bruce via gem5-users
Doing this should work just fine. What error were you getting?

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

web: https://www.bobbybruce.net


On Sun, Dec 4, 2022 at 11:06 AM minhui via gem5-users 
wrote:

> Dear BBruce,Ayaz, Hoa and others:
>
>
> With your previous support, I am able to run FS sim with
> x86-npb-benchmarks.py succesfully now.
>
>
> The script defined TIMING CPU after OS boot as shown below.
>
>
> Just wonder Can we use O3CPU instead TIMING type CPU for the simulation?
> If does, how the code should be modified?
>
> I have tried to changed “CPUTypes.TIMING” to “CPUTypes.O3” in class of
> processor, but did not work out.
>
>
> Thanks
>
>
> User: Minhui Shuai
>
>
> processor = SimpleSwitchableProcessor
>
> ( starting_core_type=CPUTypes.*KVM*,
>
> switch_core_type=CPUTypes.*TIMING*,
>
> isa=ISA.X86,
>
> num_cores=2,
>
> )
> ___
> 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: simulation aborted with error when running script: x86-npb-benchmarks.py

2022-12-01 Thread Bobby Bruce via gem5-users
Getting KVM to work in a virtual machine imay be difficult. I can't
remember exactly the procedure to get it working but it's unlikely to work
straight away. I would strongly suggest running on the host machine if
possible

If you have a X86 linux system you may be able to use KVM but it's not
guaranteed. Here is a draft writeup of how to setup your system for gem5 to
run using the KVM cores:
https://gem5-review.googlesource.com/c/public/gem5-website/+/62193 (ignore
my comments, this document is still in review but the content is sound).

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

web: https://www.bobbybruce.net


On Thu, Dec 1, 2022 at 12:56 AM minhui via gem5-users 
wrote:

> a quick update:
>
>
> Gem5 forum said KVM gurantee to work with native Linux machine.
>
>
> But I am runing Gem5 with VM of Ubuntu, so guess there is no solution yet
> for the issue of ‘PerfKvmCounter::attaach failed (2)“ on my machine
>
>
> Best regards
>
>
> Minhui
> ___
> 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: HPCG on RISCV

2022-10-31 Thread Bobby Bruce via gem5-users
You mean this bug? Unfortunately not, I've been very busy with the upcoming
gem5 release and haven't had time to investigate this further.

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

web: https://www.bobbybruce.net


On Mon, Oct 31, 2022 at 1:45 AM Νικόλαος Ταμπουρατζής via gem5-users <
gem5-users@gem5.org> wrote:

> Dear Bobby, Jason, all,
>
> Is there any update about the accuracy of RISC-V FS?
>
> Best regards,
> Nikos
>
>
> Quoting Bobby Bruce :
>
> > Jason and I had a theory that this may be due to the "Rounding Mode" for
> > floating pointing being set incorrectly in FS mode. That's set via a
> macro
> > here:
> >
> https://gem5.googlesource.com/public/gem5/+/refs/tags/v22.0.0.2/src/arch/riscv/fp_inst.hh#36
> >
> > I manually expanded the macro here:
> >
> https://gem5.googlesource.com/public/gem5/+/refs/tags/v22.0.0.2/src/arch/riscv/isa/decoder.isa#1495
> ,
> > inside the "fsqrt_d" definition then compiled "build/ALL/gem5.debug".
> Then
> > used gdb to add a breakpoint in the "Fsqrt_d::execute" function (in the
> > generated "build/ALL/arch/riscv/generated/exec-ns.cc.inc" file).
> >
> > ```
> > gdb build/ALL/gem5.opt
> > break Fsqrt_d::execute
> > run bug-recreation/se-mode-run.py # or `run
> bug-recreation/fs-mode-run.py`
> > ```
> >
> > Stepping through with gdb I the rounding mode is `0` for SE mode and `0`
> > for FS mode as well. So, no luck with that theory.
> >
> > My new theory is that this bug has something to do with thread context
> > switching being implemented incorrectly in RISC-V somehow. I find it
> > strange that the sqrt(1) works fine for a while (i.e. returns `1`) then
> > suddenly starts returning zero after a certain point in the execution. In
> > addition, it's odd that the loop is not returning the same value each
> time
> > despite executing the same code. It'd make sense to me that the thread is
> > being stored and then resumed with some corruption of the floating point
> > data. This would also explain why this bug only occurs in FS mode.
> >
> > I'll try to find time to figure out a good test for this. If anyone has
> any
> > other theories or ideas then let me know.
> >
> > --
> > Dr. Bobby R. Bruce
> > Room 3050,
> > Kemper Hall, UC Davis
> > Davis,
> > CA, 95616
> >
> > web: https://www.bobbybruce.net
> >
> >
> > On Fri, Oct 7, 2022 at 12:50 PM Νικόλαος Ταμπουρατζής <
> > ntampourat...@ece.auth.gr> wrote:
> >>
> >> Dear Jason & Boddy,
> >>
> >> Unfortunately, I have tried my simple example without the sqrt
> >> function and the problem remains. Specifically, I have the following
> >> simple code:
> >>
> >>
> >> #include 
> >> #include 
> >>
> >> int main(){
> >>
> >>  int dim = 1024;
> >>
> >>  double result;
> >>
> >>  for (int iter = 0; iter < 2; iter++){
> >>  result = 0;
> >>  for (int i = 0; i < dim; i++){
> >>  for (int j = 0; j < dim; j++){
> >>  result += i * j;
> >>  }
> >>  }
> >>  printf("Final Result: %lf\n", result);
> >>  }
> >> }
> >>
> >>
> >> In the above code, the correct result is 274341298176.00 (from
> >> RISCV-SE mode and x86), while in FS mode I get sometimes the correct
> >> result and other times a different number.
> >>
> >> Best regards,
> >> Nikos
> >>
> >>
> >> Quoting Jason Lowe-Power :
> >>
> >> > I have an idea...
> >> >
> >> > Have you put a breakpoint in the implementation of the fsqrt_d
> > function? I
> >> > would like to know if when running in SE mode and running in FS mode
> we
> > are
> >> > using the same rounding mode. My hypothesis is that in FS mode the
> > rounding
> >> > mode is set differently.
> >> >
> >> > Cheers,
> >> > Jason
> >> >
> >> > On Fri, Oct 7, 2022 at 12:15 AM Νικόλαος Ταμπουρατζής <
> >> > ntampourat...@ece.auth.gr> wrote:
> >> >
> >> >> Dear Boddy,
> >> >>
> >> >> Thanks a lot for the effort! I looked in detail and I observe that
> the
> >> >> problem is created only using float and double variables (in the case
> >> >> of int it is working properly in FS mode). Specifically, in the case
> >> >> of float the variables are set to "nan", while in the case of double
> >> >> the variables are set to 0.00 (in random time - probably from
> some
> >> >> instruction of simulated OS?). You may use a simple c/c++ example in
> >> >> order to get some traces before going to HPCG...
> >> >>
> >> >> Thank you in advance!!
> >> >> Best regards,
> >> >> Nikos
> >> >>
> >> >>
> >> >> Quoting Bobby Bruce :
> >> >>
> >> >> > Hey Niko,
> >> >> >
> >> >> > Thanks for this analysis. I jumped a little into this today but
> > didn't
> >> >> get
> >> >> > as far as you did. I wanted to find a quick way to recreate the
> >> >> following:
> >> >> > https://gem5-review.googlesource.com/c/public/gem5/+/64211.
> Please
> > feel
> >> >> > free to use this, if it helps any.
> >> >> >
> >> >> > It's very strange to me that this bug hasn't manifested itself
> > before but
> >> >> > it's undeniably there. I'll try to 

[gem5-users] Re: Upcoming gem5 events! Tutorial, Workshop, and Boot Camp!

2022-04-21 Thread Bobby Bruce via gem5-users
Dear all,

This is a friendly reminder that the deadline for submitting a presentation
proposal to the gem5 users' workshop is April 26th. The presentation
proposal submission link is here: https://forms.gle/VZxXsWBniUPGBQdw5

The gem5 users' workshop will be co-located with ISCA '22 (New York City),
to be held on June 18th.

These presentations are an opportunity for users of gem5 to present
gem5-related work. Any work related to gem5 and/or is relevant to the gem5
community is within scope.

More info can be found on our event page: https://www.gem5.org/events
/isca-2022#the-4th-gem5-users-workshop

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

web: https://www.bobbybruce.net


On Tue, Mar 29, 2022 at 6:30 PM Bobby Bruce  wrote:

> Dear all,
>
> We wish to make the computer architecture research community aware of
> several gem5 events occurring over the next 6 months. There will be two
> events co-located at ISCA 2022 (held in New York, June 18th) -- a 3 hour
> tutorial, and a 3 hour workshop. In July, there will be a "gem5 Boot Camp",
> 5 days, July 11 to July 15th, for junior computer architecture researchers
> to learn how to use gem5 in their projects.
>
> Specific event details are shown below. Please relay these details to
> anyone that may be interested.
>
> *ISCA 2022: The gem5 Tutorial*
>
> Date: June 18th 2022 (Morning session)
> Location: ISCA, New York City
> Webpage: https://www.gem5.org/events/isca-2022#the-4th-gem5-tutorial
> Registration: Please keep an eye on the ISCA website for registration
> information https://iscaconf.org/isca2022/
>
> The gem5 tutorial is designed to give computer architecture researchers a
> "crash course" in using gem5. No prior experience is required and the event
> is open to anyone wanting to attend.
>
> The tutorial will be carried out over the course of a 3 hour session with
> attendees working from their own laptops. A tentative schedule is shown
> here:
>
> - First hour: Getting started with gem5.
> This will cover the basics of building a simulation of gem5, from
> compilation to building full-system simulations using the gem5 standard
> library.
>
> - Second hour: Extending gem5
> This will cover how to create your own gem5 simobjects, add your own
> components to the library, and running simulations with the components you
> have created.
>
> - Third hour: Deeper topics
> The last hour will cover more advanced topics such as the gem5 memory
> system and ruby.
>
>
> *ISCA 2022: The gem5 Users' Workshop*
>
> Date: June 18th 2022 (Afternoon session)
> Location: ISCA, New York City
> Webpage: https://www.gem5.org/events/isca-2022#the-4th-gem5-users-workshop
> Registration: Please keep an eye on the ISCA website for registration
> information https://iscaconf.org/isca2022/
> Presentation proposal link: https://forms.gle/VZxXsWBniUPGBQdw5
> Presentation proposal deadline: April 26th (Notifications sent out by May
> 9th).
>
> The gem5 Users' Workshop will start with a 30 minute keynote presentation
> by Prof. Jason Lowe-Power titled "Recent Advancements in Mainline gem5
> v20.0 – v21.2". This will be followed by a series of 15 minutes
> presentations. These presentations are an opportunity for users of gem5 to
> present gem5-related work and foster discussion.
>
> Presentations are solicited on a broad range of topics related to gem5.
> Including, but not limited to:
>
> - New gem5 features and models.
> - Improved models.
> - Validation against real hardware.
> - Software Engineering related to gem5.
> - Experiences using gem5.
> - Tools, visualizations, data analysis tools, etc.
>
> If you wish to present at this year's gem5 Users' workshop, please provide
> a presentation proposal (a 1 page PDF) here:
> https://forms.gle/VZxXsWBniUPGBQdw5. The deadline for submitting a
> presentation proposal is April 26th with acceptance notifications sent out
> by May 9th.
>
> Note: this is an in-person event. Presenters must attend the workshop.
>
> *July 2022: The gem5 Boot Camp*
>
> Dates: July 11th to July 15th 2022
> Location: Davis, California
> Webpage: https://www.gem5.org/events/boot-camp-2022
> Application form: https://forms.gle/3wWPsMDfXyaChmQ68
> Application Deadline: May 18th (Notifications sent out by June 1st)
>
> The gem5 boot camp is for junior computer architecture researchers,
> particularly PhD. students, to learn how to use gem5 in their projects. The
> event will be held over 5 days and will take attendees through all aspects
> of using the gem5 simulation from setting up basic system simulations,
> creating components, learning to interpret gem5 stats, all the through to
> running and modifying simulations comparable to real world systems.
>
> This event is free for all accepted attendees. Registration, accommodation
> and meals will incur no cost. Travel grants will also be available.
>
> Those wishing to attend should register using the following form:
> https://forms.gle/AztSG3mD2BqQ4f967. The 

[gem5-users] Test Email

2022-04-19 Thread Bobby Bruce via gem5-users
This is a test. Please ignore.
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net
___
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] Upcoming gem5 events! Tutorial, Workshop, and Boot Camp!

2022-03-29 Thread Bobby Bruce via gem5-users
Dear all,

We wish to make the computer architecture research community aware of
several gem5 events occurring over the next 6 months. There will be two
events co-located at ISCA 2022 (held in New York, June 18th) -- a 3 hour
tutorial, and a 3 hour workshop. In July, there will be a "gem5 Boot Camp",
5 days, July 11 to July 15th, for junior computer architecture researchers
to learn how to use gem5 in their projects.

Specific event details are shown below. Please relay these details to
anyone that may be interested.

*ISCA 2022: The gem5 Tutorial*

Date: June 18th 2022 (Morning session)
Location: ISCA, New York City
Webpage: https://www.gem5.org/events/isca-2022#the-4th-gem5-tutorial
Registration: Please keep an eye on the ISCA website for registration
information https://iscaconf.org/isca2022/

The gem5 tutorial is designed to give computer architecture researchers a
"crash course" in using gem5. No prior experience is required and the event
is open to anyone wanting to attend.

The tutorial will be carried out over the course of a 3 hour session with
attendees working from their own laptops. A tentative schedule is shown
here:

- First hour: Getting started with gem5.
This will cover the basics of building a simulation of gem5, from
compilation to building full-system simulations using the gem5 standard
library.

- Second hour: Extending gem5
This will cover how to create your own gem5 simobjects, add your own
components to the library, and running simulations with the components you
have created.

- Third hour: Deeper topics
The last hour will cover more advanced topics such as the gem5 memory
system and ruby.


*ISCA 2022: The gem5 Users' Workshop*

Date: June 18th 2022 (Afternoon session)
Location: ISCA, New York City
Webpage: https://www.gem5.org/events/isca-2022#the-4th-gem5-users-workshop
Registration: Please keep an eye on the ISCA website for registration
information https://iscaconf.org/isca2022/
Presentation proposal link: https://forms.gle/VZxXsWBniUPGBQdw5
Presentation proposal deadline: April 26th (Notifications sent out by May
9th).

The gem5 Users' Workshop will start with a 30 minute keynote presentation
by Prof. Jason Lowe-Power titled "Recent Advancements in Mainline gem5
v20.0 – v21.2". This will be followed by a series of 15 minutes
presentations. These presentations are an opportunity for users of gem5 to
present gem5-related work and foster discussion.

Presentations are solicited on a broad range of topics related to gem5.
Including, but not limited to:

- New gem5 features and models.
- Improved models.
- Validation against real hardware.
- Software Engineering related to gem5.
- Experiences using gem5.
- Tools, visualizations, data analysis tools, etc.

If you wish to present at this year's gem5 Users' workshop, please provide
a presentation proposal (a 1 page PDF) here:
https://forms.gle/VZxXsWBniUPGBQdw5. The deadline for submitting a
presentation proposal is April 26th with acceptance notifications sent out
by May 9th.

Note: this is an in-person event. Presenters must attend the workshop.

*July 2022: The gem5 Boot Camp*

Dates: July 11th to July 15th 2022
Location: Davis, California
Webpage: https://www.gem5.org/events/boot-camp-2022
Application form: https://forms.gle/3wWPsMDfXyaChmQ68
Application Deadline: May 18th (Notifications sent out by June 1st)

The gem5 boot camp is for junior computer architecture researchers,
particularly PhD. students, to learn how to use gem5 in their projects. The
event will be held over 5 days and will take attendees through all aspects
of using the gem5 simulation from setting up basic system simulations,
creating components, learning to interpret gem5 stats, all the through to
running and modifying simulations comparable to real world systems.

This event is free for all accepted attendees. Registration, accommodation
and meals will incur no cost. Travel grants will also be available.

Those wishing to attend should register using the following form:
https://forms.gle/AztSG3mD2BqQ4f967. The deadline for applying is May 18th.
Accepted applicants will be notified by June 1st.

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

web: https://www.bobbybruce.net
___
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: riscv-ubuntu 20.04 FS mode

2022-03-18 Thread Bobby Bruce via gem5-users
 command in the gem5 python
> >> >>> script in order to bypass the systemd services.
> >> >>>
> >> >>> Please let me know when your new disk image is available!
> >> >>>
> >> >>> Thanks!
> >> >>>
> >> >>> Best regards,
> >> >>> Nikos
> >> >>>
> >> >>>
> >> >>> Quoting Bobby Bruce :
> >> >>>
> >> >>> > Hey Nikos,
> >> >>> >
> >> >>> > First, you can set your own kernel arguments via the `kernel_args`
> >> >>> > parameter in the `set_kernel_disk_worload` function to do this
> sort
> >> of
> >> >>> > thing, there's no need to modify the source. You can do something
> >> like
> >> >>> this:
> >> >>> >
> >> >>> > ```
> >> >>> > board.set_kernel_disk_workload(
> >> >>> > kernel=Resource(
> >> >>> > "riscv-bootloader-vmlinux-5.10",
> >> >>> > ),
> >> >>> > disk_image=Resource(
> >> >>> > "riscv-ubuntu-20.04-img",
> >> >>> > ),
> >> >>> > kernel_args=get_default_kernel_args() +
> >> >>> ["init=/root/gem5_init.sh'"],
> >> >>> > )
> >> >>> > ```
> >> >>> >
> >> >>> > Anyway, to answer your question: It looks like you made some error
> >> when
> >> >>> > creating your disk image and set things up in a read-only
> partition.
> >> >>> That'd
> >> >>> > be my best guess at this point. You should try to ensure you setup
> >> the
> >> >>> > partitions correctly in the disk image. Given I don't know how you
> >> >>> created
> >> >>> > this new image, I can't help much further.
> >> >>> >
> >> >>> > We should have a new RISCV disk image available by the end of
> today
> >> (it
> >> >>> > took as a bit longer than expected). It still takes some time to
> >> boot,
> >> >>> but
> >> >>> > it's more stable than the one we currently provide.
> >> >>> >
> >> >>> > Out of curiosity, how did you remove your systemd processes? How
> are
> >> you
> >> >>> > building this disk image? With what OS are you booting?
> >> >>> >
> >> >>> > Kind regards,
> >> >>> > Bobby
> >> >>> > --
> >> >>> > Dr. Bobby R. Bruce
> >> >>> > Room 3050,
> >> >>> > Kemper Hall, UC Davis
> >> >>> > Davis,
> >> >>> > CA, 95616
> >> >>> >
> >> >>> > web: https://www.bobbybruce.net
> >> >>> >
> >> >>> >
> >> >>> > On Mon, Mar 14, 2022 at 4:04 AM Νικόλαος Ταμπουρατζής <
> >> >>> > ntampourat...@ece.auth.gr> wrote:
> >> >>> >>
> >> >>> >> Dear all, Bobby and Hoa,
> >> >>> >>
> >> >>> >> I add this command (self.workload.command_line += '
> >> >>> >> init=/root/gem5_init.sh') in 169 line of
> >> >>> >> gem5/src/python/gem5/components/boards/kernel_disk_workload.py
> and I
> >> >>> >> build the gem5. Using this command, the gem5 is able to boot
> after
> >> 10
> >> >>> >> minutes (without a large number of systemd services). However,
> when
> >> it
> >> >>> >> boots and read the gem5_init.sh, I get the following:"cannot
> create
> >> >>> >> /tmp/script: Read-only file system". And of course, nothing can
> be
> >> >>> >> written in the filesystem. How can I resolve this?
> >> >>> >>
> >> >>> >> Thank you in advance!!!
> >> >>> >>
> >> >>> >> Best regards,
> >> >>> >> Nikos
> >> >>> >>
> >> >>> >>
> >> >>> >> Quoting Νικόλαος Ταμπουρατζής via gem5-users <
> gem5-users@gem5.org>:
> >> >&

[gem5-users] Re: Gem5 FS mode exit after booting

2022-03-17 Thread Bobby Bruce via gem5-users
First, please in future just copy and paste the text/error messages.
Screenshots are inefficient and make email threads such as this difficult
for future users to search.

Nikos is correct, your boot is working as intended, but I'll expand the
answer to help you in your work.

I notice you're using gem5 v21.0.0.0. This version of gem5 is a year old
and we've made significant improvements to the tool since then. The current
release of gem5 is v21.2.1.0. I strongly recommend you use this version.
You can get this by cloning the repo and compiling what you find at the
HEAD of the "stable" branch.

I know this is very confusing but the files under
http://gem5.org/dist/current/ are legacy files and were only known to work
for gem5 v19 (sidenote: this is totally my fault for calling this directory
"current" and due to various links being passed around since then, it's
stuck). The files you really want will be under http://gem5.org/dist/v21-2
for the v21.2 release, or http://gem5.org/dist/v21-0 for the v21.0 release
you're using.

The easiest way to do an x86 FS boot in v21.2 would be to do the following:

```
scons build/X86/gem5.opt -j `nproc`
./build/X86/gem5.opt configs/example/gem5_library/x86-ubuntu-run.py
```

This will automatically download the kernel and the disk image you need to
run the simulation. It will also exit after boot. The only thing you need
to keep in mind here is this uses the X86DemoBoard, which holds no
guarantees to be representative of real-world targets.

You can do some limit stuff after boot if you want, you can change the
x86-ubuntu-run.py line to something like:

```
board.set_kernel_disk_workload(

kernel=Resource("x86-linux-kernel-5.4.49"),

disk_image=Resource("x86-ubuntu-18.04-img"),
readfile_contents="echo 'hello'",
)
```
This will print "Hello" after boot instead of exiting. If you want
something more substantial you'll need to create your own disk image. We
provide some, most of of which have example scripts you can find under
"configs/example/gem5_library".  More information on using the gem5
standard library can be found here:
https://www.gem5.org/documentation/gem5-stdlib/overview

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

web: https://www.bobbybruce.net


On Thu, Mar 17, 2022 at 11:41 AM Eliot Moss via gem5-users <
gem5-users@gem5.org> wrote:

>
> ... and I'll just add that often folks want to have gem5 simulate the boot
> sequence and then take a checkpoint.  That checkpoint can be used over and
> over to run from that point in the simulation, skipping the time taken to
> boot.  In one of my setups this save 15-20 mins for each run.
>
> Regards - Eliot Moss
> ___
> 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: riscv-ubuntu 20.04 FS mode

2022-03-14 Thread Bobby Bruce via gem5-users
; >>> > We should have a new RISCV disk image available by the end of today
> (it
> >>> > took as a bit longer than expected). It still takes some time to
> boot,
> >>> but
> >>> > it's more stable than the one we currently provide.
> >>> >
> >>> > Out of curiosity, how did you remove your systemd processes? How are
> you
> >>> > building this disk image? With what OS are you booting?
> >>> >
> >>> > Kind regards,
> >>> > Bobby
> >>> > --
> >>> > Dr. Bobby R. Bruce
> >>> > Room 3050,
> >>> > Kemper Hall, UC Davis
> >>> > Davis,
> >>> > CA, 95616
> >>> >
> >>> > web: https://www.bobbybruce.net
> >>> >
> >>> >
> >>> > On Mon, Mar 14, 2022 at 4:04 AM Νικόλαος Ταμπουρατζής <
> >>> > ntampourat...@ece.auth.gr> wrote:
> >>> >>
> >>> >> Dear all, Bobby and Hoa,
> >>> >>
> >>> >> I add this command (self.workload.command_line += '
> >>> >> init=/root/gem5_init.sh') in 169 line of
> >>> >> gem5/src/python/gem5/components/boards/kernel_disk_workload.py and I
> >>> >> build the gem5. Using this command, the gem5 is able to boot after
> 10
> >>> >> minutes (without a large number of systemd services). However, when
> it
> >>> >> boots and read the gem5_init.sh, I get the following:"cannot create
> >>> >> /tmp/script: Read-only file system". And of course, nothing can be
> >>> >> written in the filesystem. How can I resolve this?
> >>> >>
> >>> >> Thank you in advance!!!
> >>> >>
> >>> >> Best regards,
> >>> >> Nikos
> >>> >>
> >>> >>
> >>> >> Quoting Νικόλαος Ταμπουρατζής via gem5-users :
> >>> >>
> >>> >> > Dear Bobby and Hoa,
> >>> >> >
> >>> >> > Thank you for your advice! It is working properly using the
> >>> >> > CustomDiskImageResource (including the following command: from
> >>> >> > gem5.resources.resource import Resource, CustomDiskImageResource).
> >>> >> >
> >>> >> > Is there any news about booting faster of
> `riscv-ubuntu-20.04-img`?
> >>> >> > I am able to emulate the image using qemu
> >>> >> > (http://resources.gem5.org/resources/riscv-ubuntu), but I do not
> >>> >> > know what services I need to disable in order to boot faster the
> >>> >> > image!
> >>> >> >
> >>> >> > Best regards,
> >>> >> > Nikolaos Tampouratzis
> >>> >> >
> >>> >> >
> >>> >> > Quoting Bobby Bruce via gem5-users :
> >>> >> >
> >>> >> >> Hey Nikos,
> >>> >> >>
> >>> >> >> I'm not sure I know exactly how to remove all these annoying
> systemd
> >>> >> >> services. Currently Hoa is assigned this task:
> >>> >> >> https://gem5.atlassian.net/browse/GEM5-1177
> >>> >> >>
> >>> >> >> @Hoa can you make this a top priority for you? I think 6+ hours
> for
> >>> a
> >>> > boot
> >>> >> >> is a bit too much. I'm sure there must be a way to modify this
> disk
> >>> > image
> >>> >> >> to make it faster.
> >>> >> >>
> >>> >> >> To answer your second question, this should work:
> >>> >> >>
> >>> >> >> ```
> >>> >> >>
> >>> >> >> image = CustomDiskImageResource(
> >>> >> >>local_path = "path/to/your/disk/image/here",
> >>> >> >>disk_root_partition = "1", # This is the partition in the disk
> >>> > image to
> >>> >> >> use. 'None' if there is no disk image
> >>> >> >> )
> >>> >> >&

[gem5-users] Re: riscv-ubuntu 20.04 FS mode

2022-03-14 Thread Bobby Bruce via gem5-users
Just remembered: If you're wanting to bi-pass large parts of the Ubuntu OS
like this, you may just want to use the "riscv-disk-image" (
http://dist.gem5.org/dist/v21-2/images/riscv/busybox/riscv-disk.img.gz), an
example usage of which can be found in
"configs/example/gem5_library/riscv-fs.py":

```
./build/RISCV/gem5.opt configs/example/gem5_library/riscv-fs.py
```

This disk image is based on BusyBox, which is very light-weight. The source
for building this image is found here:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/riscv-fs

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

web: https://www.bobbybruce.net


On Mon, Mar 14, 2022 at 11:12 AM Bobby Bruce  wrote:

> Oh I see, I understand now. I thought you managed to disable some systemd
> jobs (something I think Hoa struggled with), but you're just bypassing them
> by setting init to a script.
>
> Nice, I'll let you know when the new image is available. I'll see if I can
> reproduce the error you found with the READ-ONLY problem on the new image.
>
> --
> Dr. Bobby R. Bruce
> Room 3050,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>
> web: https://www.bobbybruce.net
>
>
> On Mon, Mar 14, 2022 at 11:10 AM Νικόλαος Ταμπουρατζής <
> ntampourat...@ece.auth.gr> wrote:
>
>> Dear Boddy,
>>
>> Thank you very much for the clarifications! I used the pre-build disk
>> image from gem5 resources
>> (https://github.com/gem5/gem5-resources/tree/stable/src/riscv-ubuntu),
>> and I add the "init=/root/gem5_init.sh" command in the gem5 python
>> script in order to bypass the systemd services.
>>
>> Please let me know when your new disk image is available!
>>
>> Thanks!
>>
>> Best regards,
>> Nikos
>>
>>
>> Quoting Bobby Bruce :
>>
>> > Hey Nikos,
>> >
>> > First, you can set your own kernel arguments via the `kernel_args`
>> > parameter in the `set_kernel_disk_worload` function to do this sort of
>> > thing, there's no need to modify the source. You can do something like
>> this:
>> >
>> > ```
>> > board.set_kernel_disk_workload(
>> > kernel=Resource(
>> > "riscv-bootloader-vmlinux-5.10",
>> > ),
>> > disk_image=Resource(
>> > "riscv-ubuntu-20.04-img",
>> > ),
>> > kernel_args=get_default_kernel_args() +
>> ["init=/root/gem5_init.sh'"],
>> > )
>> > ```
>> >
>> > Anyway, to answer your question: It looks like you made some error when
>> > creating your disk image and set things up in a read-only partition.
>> That'd
>> > be my best guess at this point. You should try to ensure you setup the
>> > partitions correctly in the disk image. Given I don't know how you
>> created
>> > this new image, I can't help much further.
>> >
>> > We should have a new RISCV disk image available by the end of today (it
>> > took as a bit longer than expected). It still takes some time to boot,
>> but
>> > it's more stable than the one we currently provide.
>> >
>> > Out of curiosity, how did you remove your systemd processes? How are you
>> > building this disk image? With what OS are you booting?
>> >
>> > Kind regards,
>> > Bobby
>> > --
>> > Dr. Bobby R. Bruce
>> > Room 3050,
>> > Kemper Hall, UC Davis
>> > Davis,
>> > CA, 95616
>> >
>> > web: https://www.bobbybruce.net
>> >
>> >
>> > On Mon, Mar 14, 2022 at 4:04 AM Νικόλαος Ταμπουρατζής <
>> > ntampourat...@ece.auth.gr> wrote:
>> >>
>> >> Dear all, Bobby and Hoa,
>> >>
>> >> I add this command (self.workload.command_line += '
>> >> init=/root/gem5_init.sh') in 169 line of
>> >> gem5/src/python/gem5/components/boards/kernel_disk_workload.py and I
>> >> build the gem5. Using this command, the gem5 is able to boot after 10
>> >> minutes (without a large number of systemd services). However, when it
>> >> boots and read the gem5_init.sh, I get the following:"cannot create
>> >> /tmp/script: Read-only file system". And of course, nothing can be
>> >> written in the filesystem. How can I resolve this?
>> >>
>> >> Thank you in advance!!!
>> >>
>> >> Best regards,
>> >> Nikos
>> >>
>> >>
>> >> Quoting Νικόλαος Ταμπουρατζής via gem5-users :
>> >>

[gem5-users] Re: riscv-ubuntu 20.04 FS mode

2022-03-14 Thread Bobby Bruce via gem5-users
Oh I see, I understand now. I thought you managed to disable some systemd
jobs (something I think Hoa struggled with), but you're just bypassing them
by setting init to a script.

Nice, I'll let you know when the new image is available. I'll see if I can
reproduce the error you found with the READ-ONLY problem on the new image.

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

web: https://www.bobbybruce.net


On Mon, Mar 14, 2022 at 11:10 AM Νικόλαος Ταμπουρατζής <
ntampourat...@ece.auth.gr> wrote:

> Dear Boddy,
>
> Thank you very much for the clarifications! I used the pre-build disk
> image from gem5 resources
> (https://github.com/gem5/gem5-resources/tree/stable/src/riscv-ubuntu),
> and I add the "init=/root/gem5_init.sh" command in the gem5 python
> script in order to bypass the systemd services.
>
> Please let me know when your new disk image is available!
>
> Thanks!
>
> Best regards,
> Nikos
>
>
> Quoting Bobby Bruce :
>
> > Hey Nikos,
> >
> > First, you can set your own kernel arguments via the `kernel_args`
> > parameter in the `set_kernel_disk_worload` function to do this sort of
> > thing, there's no need to modify the source. You can do something like
> this:
> >
> > ```
> > board.set_kernel_disk_workload(
> > kernel=Resource(
> > "riscv-bootloader-vmlinux-5.10",
> > ),
> > disk_image=Resource(
> > "riscv-ubuntu-20.04-img",
> > ),
> > kernel_args=get_default_kernel_args() + ["init=/root/gem5_init.sh'"],
> > )
> > ```
> >
> > Anyway, to answer your question: It looks like you made some error when
> > creating your disk image and set things up in a read-only partition.
> That'd
> > be my best guess at this point. You should try to ensure you setup the
> > partitions correctly in the disk image. Given I don't know how you
> created
> > this new image, I can't help much further.
> >
> > We should have a new RISCV disk image available by the end of today (it
> > took as a bit longer than expected). It still takes some time to boot,
> but
> > it's more stable than the one we currently provide.
> >
> > Out of curiosity, how did you remove your systemd processes? How are you
> > building this disk image? With what OS are you booting?
> >
> > Kind regards,
> > Bobby
> > --
> > Dr. Bobby R. Bruce
> > Room 3050,
> > Kemper Hall, UC Davis
> > Davis,
> > CA, 95616
> >
> > web: https://www.bobbybruce.net
> >
> >
> > On Mon, Mar 14, 2022 at 4:04 AM Νικόλαος Ταμπουρατζής <
> > ntampourat...@ece.auth.gr> wrote:
> >>
> >> Dear all, Bobby and Hoa,
> >>
> >> I add this command (self.workload.command_line += '
> >> init=/root/gem5_init.sh') in 169 line of
> >> gem5/src/python/gem5/components/boards/kernel_disk_workload.py and I
> >> build the gem5. Using this command, the gem5 is able to boot after 10
> >> minutes (without a large number of systemd services). However, when it
> >> boots and read the gem5_init.sh, I get the following:"cannot create
> >> /tmp/script: Read-only file system". And of course, nothing can be
> >> written in the filesystem. How can I resolve this?
> >>
> >> Thank you in advance!!!
> >>
> >> Best regards,
> >> Nikos
> >>
> >>
> >> Quoting Νικόλαος Ταμπουρατζής via gem5-users :
> >>
> >> > Dear Bobby and Hoa,
> >> >
> >> > Thank you for your advice! It is working properly using the
> >> > CustomDiskImageResource (including the following command: from
> >> > gem5.resources.resource import Resource, CustomDiskImageResource).
> >> >
> >> > Is there any news about booting faster of `riscv-ubuntu-20.04-img`?
> >> > I am able to emulate the image using qemu
> >> > (http://resources.gem5.org/resources/riscv-ubuntu), but I do not
> >> > know what services I need to disable in order to boot faster the
> >> > image!
> >> >
> >> > Best regards,
> >> > Nikolaos Tampouratzis
> >> >
> >> >
> >> > Quoting Bobby Bruce via gem5-users :
> >> >
> >> >> Hey Nikos,
> >> >>
> >> >> I'm not sure I know exactly how to remove all these annoying systemd
> >> >> services. Currently Hoa is assigned this task:
> >> >> https://gem5.atlassian.net/browse/GEM5-1177
> >> >>
&g

[gem5-users] Re: riscv-ubuntu 20.04 FS mode

2022-03-14 Thread Bobby Bruce via gem5-users
Hey Nikos,

First, you can set your own kernel arguments via the `kernel_args`
parameter in the `set_kernel_disk_worload` function to do this sort of
thing, there's no need to modify the source. You can do something like this:

```
board.set_kernel_disk_workload(
kernel=Resource(
"riscv-bootloader-vmlinux-5.10",
),
disk_image=Resource(
"riscv-ubuntu-20.04-img",
),
kernel_args=get_default_kernel_args() + ["init=/root/gem5_init.sh'"],
)
```

Anyway, to answer your question: It looks like you made some error when
creating your disk image and set things up in a read-only partition. That'd
be my best guess at this point. You should try to ensure you setup the
partitions correctly in the disk image. Given I don't know how you created
this new image, I can't help much further.

We should have a new RISCV disk image available by the end of today (it
took as a bit longer than expected). It still takes some time to boot, but
it's more stable than the one we currently provide.

Out of curiosity, how did you remove your systemd processes? How are you
building this disk image? With what OS are you booting?

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

web: https://www.bobbybruce.net


On Mon, Mar 14, 2022 at 4:04 AM Νικόλαος Ταμπουρατζής <
ntampourat...@ece.auth.gr> wrote:
>
> Dear all, Bobby and Hoa,
>
> I add this command (self.workload.command_line += '
> init=/root/gem5_init.sh') in 169 line of
> gem5/src/python/gem5/components/boards/kernel_disk_workload.py and I
> build the gem5. Using this command, the gem5 is able to boot after 10
> minutes (without a large number of systemd services). However, when it
> boots and read the gem5_init.sh, I get the following:"cannot create
> /tmp/script: Read-only file system". And of course, nothing can be
> written in the filesystem. How can I resolve this?
>
> Thank you in advance!!!
>
> Best regards,
> Nikos
>
>
> Quoting Νικόλαος Ταμπουρατζής via gem5-users :
>
> > Dear Bobby and Hoa,
> >
> > Thank you for your advice! It is working properly using the
> > CustomDiskImageResource (including the following command: from
> > gem5.resources.resource import Resource, CustomDiskImageResource).
> >
> > Is there any news about booting faster of `riscv-ubuntu-20.04-img`?
> > I am able to emulate the image using qemu
> > (http://resources.gem5.org/resources/riscv-ubuntu), but I do not
> > know what services I need to disable in order to boot faster the
> > image!
> >
> > Best regards,
> > Nikolaos Tampouratzis
> >
> >
> > Quoting Bobby Bruce via gem5-users :
> >
> >> Hey Nikos,
> >>
> >> I'm not sure I know exactly how to remove all these annoying systemd
> >> services. Currently Hoa is assigned this task:
> >> https://gem5.atlassian.net/browse/GEM5-1177
> >>
> >> @Hoa can you make this a top priority for you? I think 6+ hours for a
boot
> >> is a bit too much. I'm sure there must be a way to modify this disk
image
> >> to make it faster.
> >>
> >> To answer your second question, this should work:
> >>
> >> ```
> >>
> >> image = CustomDiskImageResource(
> >>local_path = "path/to/your/disk/image/here",
> >>disk_root_partition = "1", # This is the partition in the disk
image to
> >> use. 'None' if there is no disk image
> >> )
> >>
> >> board.set_kernel_disk_workload(
> >>kernel = Resource("riscv-bootloader-vmlinux-5.10"),
> >>disk_image = image,
> >> )
> >>
> >> ```
> >>
> >>
> >>
> >> Dr. Bobby R. Bruce
> >> Room 3050,
> >> Kemper Hall, UC Davis
> >> Davis,
> >> CA, 95616
> >>
> >> web: https://www.bobbybruce.net
> >>
> >>
> >> On Sat, Feb 12, 2022 at 7:19 AM Νικόλαος Ταμπουρατζής via gem5-users <
> >> gem5-users@gem5.org> wrote:
> >>
> >>> Dear all,
> >>>
> >>> I have successfully emulated the riscv-ubuntu.img through qemu! The
> >>> problem was that I use Ubuntu 20.04 and it requires the Hirsute’s
> >>> version of u-boot-qemu (wget
> >>>
> >>>
http://mirrors.kernel.org/ubuntu/pool/main/u/u-boot/u-boot-qemu_2021.01+dfsg-3ubuntu9_all.deb
)
> >>> and not the standard through the apt
> >>> install.
> >>>
> >>> Now I have two questions:
> >>>
> >>> 1) How can I disable the huge number of services in order to speedup
> 

[gem5-users] Re: gem5 + DGPU (GCN3) build error

2022-03-03 Thread Bobby Bruce via gem5-users
I think, based on the error I'm seeing here, your build is creating tmp
files in the container, which are deleted after DDNMark is built and the
docker container is discarded. These are, for some reason, needed in the
run and cannot be found. Did you follow the README here for DNNMark and
follow it exactly?
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/gpu/DNNMark/.
I admit building and running the GPU code can be tricky as we're heavily
dependent on the docker images and things can easily go wrong.

Matt or Kyle: do either of you have any idea what's going wrong here?

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

web: https://www.bobbybruce.net


On Wed, Mar 2, 2022 at 4:46 PM David Fong via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
>
>
> I built gem5 + DGPU (GCN3) (gfx900) and ran DNNMark with this command-line
>
>
>
> [gem5-resources]  docker run --rm -v ${PWD}:${PWD}
> -v${PWD}/cachefiles:/root/.cache/miopen/2.9.0 -w ${PWD}
> gcr.io/gem5-test/gcn-gpu:v21-2 python3 generate_cachefiles.py
> cachefiles.csv --gfx-version=gfx900 --num-cus=4
>
>
>
> [gem5-gpu-dnn] docker run --rm -v ${PWD}:${PWD} -v
> ${PWD}/gem5/gem5-resources/src/gpu/DNNMark/cachefiles:/root/.cache/miopen/2.9.0
> -w ${PWD} gcr.io/gem5-test/gcn-gpu:v21-2 gem5/build/GCN3_X86/gem5.opt
> gem5/configs/example/apu_se.py --dgpu --gfx-version=gfx900 -n3
> --benchmark-root=gem5/gem5-resources/src/gpu/DNNMark/build/benchmarks/test_fwd_softmax
> -cdnnmark_test_fwd_softmax --options="-config
> gem5/gem5-resources/src/gpu/DNNMark/config_example/softmax_config.dnnmark
> -mmap gem5/gem5-resources/src/gpu/DNNMark/mmap.bin"
>
>
>
> and got this error message :
>
>
>
> build/GCN3_X86/sim/syscall_emul.cc:683: warn: fcntl: unsupported command 6
>
> build/GCN3_X86/sim/mem_state.cc:443: info: Increasing stack size by one
> page.
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mprotect(...)
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mprotect(...)
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mprotect(...)
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mprotect(...)
>
> sh: 1: Cannot fork
>
> MIOpen Error: /root/driver/MLOpen/src/hipoc/hipoc_program.cpp:195: Cant
> find file:
> /tmp/miopen-MIOpenSoftmax.cl-9c04-5b2f-4076-0450/MIOpenSoftmax.cl.o
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mbind(...)
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mbind(...)
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mbind(...)
>
> build/GCN3_X86/sim/syscall_emul.cc:74: warn: ignoring syscall mbind(...)
>
> MIOpen Error: 7 at
> /home/dfong/work/ext_ips/gem5-gpu-dnn/gem5/gem5-resources/src/gpu/DNNMark/core/include/dnn_wrapper.h485Ticks:
> 571357584000
>
> Exiting because  exiting with last active thread context
>
>
>
> Am I missing a step in compilation process or some other settings ?
>
>
>
> 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: CHI

2022-03-03 Thread Bobby Bruce via gem5-users
Which gitlab repository was this? I don't believe we maintain one
officially. The github repo is a mirror of
https://gem5.googlesource.com/public/gem5 so should be up-to-date.

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

web: https://www.bobbybruce.net


On Thu, Mar 3, 2022 at 2:30 AM Javed Osmany via gem5-users <
gem5-users@gem5.org> wrote:

> Hello
>
>
>
> Just an update …
>
>
>
> Previously I had cloned the latest gem5 version (21.2.1.0) from a gitlab
> repository (as I was having proxy issues in accessing github). Something
> must have gone wrong in the cloning, since that was causing the problem
> with the CHI protocol compilation.
>
>
>
> I am now able to download the latest gem5 (21.2.1.0) directly from github
> and am now able to successfully compile it for the CHI protocol.
>
>
>
> Regards
>
> JO
>
>
>
> *From:* Javed Osmany
> *Sent:* 02 March 2022 15:44
> *To:* gem5 users mailing list 
> *Cc:* Javed Osmany 
> *Subject:* RE: CHI
>
>
>
> Hello
>
>
>
> So I thought the reason why my previous command line options were not
> being parsed in the latest version of gem5 (21..2.1.0) could be because the
> CHI.py and CHI_config.py files were not being compiled when generating the
> executable gem5.opt binary.
>
>
>
> So I tried the following command:
>
>
>
> rm -rf build/ARM
>
> scons -j4 build/ARM/gem5.opt --default=ARM PROTOCOL=CHI
>
>
>
> The above command terminates with:
>
>
>
> Building in /home/j00533938/gitlab/gem5-21.2.1.0/gem5/build/ARM
>
> Using saved variables file
> /home/j00533938/gitlab/gem5-21.2.1.0/gem5/build/variables/ARM
>
>
>
> scons: *** Invalid value for option PROTOCOL: CHI.  Valid values are:
> ['GPU_VIPER', 'GPU_VIPER_Baseline', 'GPU_VIPER_Region', 'GPU_RfO',
> 'MOESI_AMD_Base', 'MESI_Two_Level', 'MESI_Three_Level', 'MI_example',
> 'MOESI_CMP_directory', 'MOESI_CMP_token', 'MOESI_hammer',
> 'Garnet_standalone', 'None', 'MSI']
>
>
>
> Thus it looks like CHI is not supported in this latest version of gem5 ??
>
>
>
> So looking in build_opts/ARM we have:
>
>
>
> j00533938@lhrpbig12:~/gitlab/gem5-21.2.1.0/gem5/build_opts$ more ARM
>
> TARGET_ISA = 'arm'
>
> CPU_MODELS = 'AtomicSimpleCPU,TimingSimpleCPU,O3CPU,MinorCPU'
>
> *PROTOCOL = 'MOESI_CMP_directory'*
>
>
>
>
>
> *Is CHI protocol not supported in the latest gem5 release?*
>
>
>
> Tks in advance
>
>
>
> JO
>
>
>
> *From:* Javed Osmany
> *Sent:* 02 March 2022 15:00
> *To:* gem5 users mailing list 
> *Cc:* Javed Osmany 
> *Subject:* CHI
>
>
>
> Hello
>
>
>
> I am using the latest version of gem5 (21.2.1.0).
>
>
>
> Previously, when using gem5 version 21.0.0.0, in the function “def
> define_options(parser)” (in CHI.py), I added some command line options as
> such:
>
>
>
> def define_options(parser):
>
> parser.add_option("--chi-config", action="store", type="string",
>
>   default=None,
>
>   help="NoC config. parameters and bindings. "
>
>"Required for CustomMesh topology")
>
> ## Add command line options specifically for the [Big, Middle, Little]
>
> ## Cluster.
>
> parser.add_option("--verbose", action="store", type="string",
>
>   default="false",
>
>   help="Disable/Enable verbose printing for debugging")
>
> parser.add_option("--num-clusters", action="store", type="string",
>
>   default=0,
>
>   help="Number of Clusters in the system")
>
>
>
> I was then able to specify the options when running as:
>
>
>
> ./build/ARM/gem5.opt
> --outdir=m5out_parsec_blackscoles_1_clust_little_4_cpu_all_shared_l2
> configs/example/se_kiri
>
> n_custom.py --ruby --topology=Pt2Pt --cpu-type=DerivO3CPU --num-cpus=4
> --num-dirs=1 --num-l3caches=1 --verbose=true --num-clusters=0 …..
>
>
>
> This then worked okay. The new command line options I added was recognised
> okay.
>
>
>
> Now with gem5 21.2.1.0, I have added the same options to the
> define_options(parser) function (in CHI.py) as such:
>
>
>
> def define_options(parser):
>
> parser.add_argument("--chi-config", action="store", type=str,
>
>   default=None,
>
>   help="NoC config. parameters and bindings. "
>
>"Required for CustomMesh topology")
>
> ## Add command line options specifically for the [Big, Middle, Little]
>
> ## Cluster.
>
> parser.add_option("--verbose", action="store", type="string",
>
>   default="false",
>
>   help="Disable/Enable verbose printing for debugging")
>
> parser.add_option("--num-clusters", action="store", type="string",
>
>   default=0,
>
>   help="Number of Clusters in the system")
>
>  :
>
>  :
>
>
>
>
>
> But the following command does not work anymore:
>
>
>
> ./build/ARM/gem5.opt
> --outdir=m5out_parsec_blackscoles_1_clust_little_4_cpu_all_shared_l2
> 

[gem5-users] Re: gem5 cpu-tests and benchmarks documentation

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

Having some better web-portal to list our resources is on our TODO list.
For now there's no official list. You can find stuff in our gem5 resources
repo: https://gem5.googlesource.com/public/gem5-resources/. There's a file
'resources.json' that the gem5 standard library reads to determine where
resources are, and where their sources exist with the repo, that might help
you find things. You can also search this repository for sources. The
README's typically contain links to pre-built resources if they exist. It's
far from a great solution, but that's how we do things for now.
gem5-resources is fairly new and we've still got a bit to workout.

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

web: https://www.bobbybruce.net


On Tue, Mar 1, 2022 at 3:39 PM David Fong via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
>
>
> Is there documentation on website that lists the groups of tests and
> benchmarks  that are precompiled and can be downloaded for each CPU type
> (like x86, arm) ?
>
>
>
> Like these cmd-lines to get Bubblesort for each CPU type ? (x86,arm)
>
>
>
> wget dist.gem5.org/dist/v21-2/test-progs/cpu-tests/bin/x86/Bubblesort
>
> wget dist.gem5.org/dist/v21-2/test-progs/cpu-tests/bin/arm/Bubblesort
>
>
>
> I found that there are some specific cpu-tests from this webpage like
> above but no additional information for more tests
>
>
>
> https://www.gem5.org/documentation/learning_gem5/part1/extending_configs
>
>
>
> 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: Writing checkpoint fails

2022-02-28 Thread Bobby Bruce via gem5-users
Majid, Does this fix work for you?

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

web: https://www.bobbybruce.net


On Fri, Feb 18, 2022 at 11:32 AM Bobby Bruce  wrote:

> Hey Majid,
>
> I made Gabe aware of this, he has an explanation noted in the breaking
> commit: https://gem5-review.googlesource.com/c/public/gem5/+/49105.
>
> Gabe suggests you try this commit and see if it works for you:
> https://gem5-review.googlesource.com/c/public/gem5/+/56929
>
> --
> 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:52 AM Majid Jalili via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> This is the commit breaking the simulation:
>>
>>
>> https://github.com/gem5/gem5/commit/d0b7de0f870d22f7d271ad0c698567b24d38fe80
>>
>> I am still trying to figure out what needs to be fixed. Any help would be
>> appreciated!
>>
>> On Tue, Feb 15, 2022 at 1:59 PM Majid Jalili  wrote:
>>
>>> Hi,
>>>
>>> I am trying to take simpoint for some SPEC 17 applications, using the
>>> command below in fs mode:
>>>
>>> sudo build/X86/gem5.opt -d lbm_checkpoint ./configs/example/fs.py
>>> --caches --l2cache -n 1 --disk-image
>>> /home/cc/disks/disks/linux-x86.spec.img --kernel
>>> /home/cc/disks/binaries/vmlinux-4.19.83
>>>  
>>> --take-simpoint-checkpoints=./simpoints/lbm.simpoints,./simpoints/lbm.weights,1,2000
>>>  --cpu-type=X86KvmCPU --mem-size=16GB --script ./script/lbm.rcS
>>>
>>> Kernel: 4.19.83
>>> gem5 version [DEVELOP-FOR-v22.0]
>>> Branch: develop
>>>
>>> The Linux boots up successfully and launches the application. However,
>>> as soon as it starts writing the checkpoint I see the followings:
>>>
>>> Writing checkpoint
>>> gem5.opt: build/X86/cpu/regfile.hh:75: const Reg&
>>> gem5::RegFile::reg(size_t) const [with Reg = gem5::VecRegContainer<8>;
>>> size_t = long unsigned int]: Assertion `sizeof(Reg) == _regBytes && idx <
>>> _size' failed.
>>>
>>> Here you can find the values inside the assert statement causing the
>>> simulation to break:
>>> sizeof(Reg):16
>>>  _regBytes: 8
>>>  idx: 0
>>>  _size:1
>>>
>>> Any help would be appreciated!
>>> Majid
>>>
>>> ___
>> 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-22 Thread Bobby Bruce via gem5-users
SNQeTgeb23lMT8=>
> [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`
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__gem5.googlesource.com_public_gem5-2Dresources-2560=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=fSLta2q59ciWgJVuX5G8Qw_e0q6y8U_ezhIuph8IRY8=>
> 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
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.bobbybruce.net=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=1d9i6quzd9ZcvGg1XJgLYTZye85bicMaY5aihOey9xs=>
>
>
>
>
>
> 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
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.gem5.org_documentation_gem5-2Dstdlib_overview=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=eSlpqdCMZ0MQaU6uWmL6HLshxvwDW_rT1yOkyrY4pJM=XrODO-sPqMN8yjZ4qLcyRP0EbgeB1S1OBBi8JNt8kZc=>
>
>
>
> 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/
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__gem5.googlesource.com_public_gem5-2Dresources_-2B_refs_tags_v21.1.0.2_=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=eSlpqdCMZ0MQaU6uWmL6HLshxvwDW_rT1yOkyrY4pJM=f9_9A5mxEZUWXFac_JuBcUfXrqeK_ftZV6TlL4NPvF8=>.
> 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
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.bobbybruce.net=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=eSlpqdCMZ0MQaU6uWmL6HLshxvwDW_rT1yOkyrY4pJM=6mPnQPGS3as3czVrVGttKGiUN5cpEbfDNx7kDkWIoWI=>
>
>
>
>
>
> On

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

2022-02-22 Thread Bobby Bruce via gem5-users
r 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/
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__gem5.googlesource.com_public_gem5-2Dresources_-2B_refs_heads_stable_src_linux-2Dkernel_=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=BmadL2P06_Iw_mLWfCrwa7hmk8z4-RRTD8e1dgzLTqQ=>,
> 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/
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__gem5.googlesource.com_public_gem5-2Dresources_-2B_refs_heads_stable_src_npb_=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=yVlWNLG-5-vk2dxXGoXP3q2QL16v1zOASo-I1chpndI=>.
> 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
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__dist.gem5.org_dist_v21-2D2_kernels_x86_static_vmlinux-2D5.4.49=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=hU_V0lbovOD8_TpfRSF_rFEk_FKNrlRtI3TqfUPExHI=>
>
> http://dist.gem5.org/dist/v21-2/images/x86/ubuntu-18-04/npb.img.gz
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__dist.gem5.org_dist_v21-2D2_images_x86_ubuntu-2D18-2D04_npb.img.gz=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=wSX3jnoWqQ_ZdGyCQi9bU1kDHZckRSNQeTgeb23lMT8=>
> [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`
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__gem5.googlesource.com_public_gem5-2Dresources-2560=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=fSLta2q59ciWgJVuX5G8Qw_e0q6y8U_ezhIuph8IRY8=>
> 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
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.bobbybruce.net=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=4io_xViB2fRjXPrYZBmeetGZsI5IqD4Aq_nVt8zMABA=1d9i6quzd9ZcvGg1XJgLYTZye85bicMaY5aihOey9xs=>
>
>
>
>
>
> 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 l

[gem5-users] Re: Writing checkpoint fails

2022-02-18 Thread Bobby Bruce via gem5-users
Hey Majid,

I made Gabe aware of this, he has an explanation noted in the breaking
commit: https://gem5-review.googlesource.com/c/public/gem5/+/49105.

Gabe suggests you try this commit and see if it works for you:
https://gem5-review.googlesource.com/c/public/gem5/+/56929

--
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:52 AM Majid Jalili via gem5-users <
gem5-users@gem5.org> wrote:

> This is the commit breaking the simulation:
>
>
> https://github.com/gem5/gem5/commit/d0b7de0f870d22f7d271ad0c698567b24d38fe80
>
> I am still trying to figure out what needs to be fixed. Any help would be
> appreciated!
>
> On Tue, Feb 15, 2022 at 1:59 PM Majid Jalili  wrote:
>
>> Hi,
>>
>> I am trying to take simpoint for some SPEC 17 applications, using the
>> command below in fs mode:
>>
>> sudo build/X86/gem5.opt -d lbm_checkpoint ./configs/example/fs.py
>> --caches --l2cache -n 1 --disk-image
>> /home/cc/disks/disks/linux-x86.spec.img --kernel
>> /home/cc/disks/binaries/vmlinux-4.19.83
>>  
>> --take-simpoint-checkpoints=./simpoints/lbm.simpoints,./simpoints/lbm.weights,1,2000
>>  --cpu-type=X86KvmCPU --mem-size=16GB --script ./script/lbm.rcS
>>
>> Kernel: 4.19.83
>> gem5 version [DEVELOP-FOR-v22.0]
>> Branch: develop
>>
>> The Linux boots up successfully and launches the application. However, as
>> soon as it starts writing the checkpoint I see the followings:
>>
>> Writing checkpoint
>> gem5.opt: build/X86/cpu/regfile.hh:75: const Reg&
>> gem5::RegFile::reg(size_t) const [with Reg = gem5::VecRegContainer<8>;
>> size_t = long unsigned int]: Assertion `sizeof(Reg) == _regBytes && idx <
>> _size' failed.
>>
>> Here you can find the values inside the assert statement causing the
>> simulation to break:
>> sizeof(Reg):16
>>  _regBytes: 8
>>  idx: 0
>>  _size:1
>>
>> Any help would be appreciated!
>> Majid
>>
>> ___
> 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 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
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.gem5.org_documentation_gem5-2Dstdlib_overview=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=eSlpqdCMZ0MQaU6uWmL6HLshxvwDW_rT1yOkyrY4pJM=XrODO-sPqMN8yjZ4qLcyRP0EbgeB1S1OBBi8JNt8kZc=>
>
>
>
> 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/
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__gem5.googlesource.com_public_gem5-2Dresources_-2B_refs_tags_v21.1.0.2_=DwMFaQ=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM=OkH-8nM02VdNPRt_miVO36vI9580zW1SgNQ4MzWRfqc=eSlpqdCMZ0MQaU6uWmL6HLshxvwDW_rT1yOkyrY4pJM=f9_9A5mxEZUWXFac_JuBcUfXrqeK_ftZV6TlL4NPvF8=>.
> 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
> Roo

[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: riscv-ubuntu 20.04 FS mode

2022-02-14 Thread Bobby Bruce via gem5-users
Hey Nikos,

I'm not sure I know exactly how to remove all these annoying systemd
services. Currently Hoa is assigned this task:
https://gem5.atlassian.net/browse/GEM5-1177

@Hoa can you make this a top priority for you? I think 6+ hours for a boot
is a bit too much. I'm sure there must be a way to modify this disk image
to make it faster.

To answer your second question, this should work:

```

image = CustomDiskImageResource(
local_path = "path/to/your/disk/image/here",
disk_root_partition = "1", # This is the partition in the disk image to
use. 'None' if there is no disk image
)

board.set_kernel_disk_workload(
kernel = Resource("riscv-bootloader-vmlinux-5.10"),
disk_image = image,
)

```



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

web: https://www.bobbybruce.net


On Sat, Feb 12, 2022 at 7:19 AM Νικόλαος Ταμπουρατζής via gem5-users <
gem5-users@gem5.org> wrote:

> Dear all,
>
> I have successfully emulated the riscv-ubuntu.img through qemu! The
> problem was that I use Ubuntu 20.04 and it requires the Hirsute’s
> version of u-boot-qemu (wget
>
> http://mirrors.kernel.org/ubuntu/pool/main/u/u-boot/u-boot-qemu_2021.01+dfsg-3ubuntu9_all.deb)
> and not the standard through the apt
> install.
>
> Now I have two questions:
>
> 1) How can I disable the huge number of services in order to speedup
> the gem5 boot process through qemu?
>
> 2) When I execute the following: "./build/RISCV/gem5.opt
> configs/example/gem5_library/riscv-ubuntu-run.py", it downloads
> automatically the riscv-ubuntu-20.04-img. How can I set another image?
> The --disk-image option is not working.
>
>
> Thank you in advance!!!
> Best regards,
> Nikos
>
>
> Quoting Νικόλαος Ταμπουρατζής via gem5-users :
>
> > Dear Hoa,
> >
> > Thank you very much for your information! I try to emulate the
> > ubuntu-image through qemu (following this tutorial:
> > http://resources.gem5.org/resources/riscv-ubuntu) and I get the
> > following TFTP error:
> >
> > I appreciate any help!!
> >
> > Best regards,
> > Nikos
> >
> >
> > cossim@cossim-virtual-machine:~/riscv-ubuntu$
> > ./qemu/build/qemu-system-riscv64 -machine virt -nographic \
> >> -m 16384 -smp 8 \
> >> -bios /usr/lib/riscv64-linux-gnu/opensbi/generic/fw_jump.elf \
> >> -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf \
> >> -device virtio-net-device,netdev=eth0 \
> >> -netdev user,id=eth0,hostfwd=tcp::-:22 \
> >> -drive file=ubuntu.img,format=raw,if=virtio
> >
> > OpenSBI v0.9
> >_  _
> >   / __ \  / |  _ \_   _|
> >  | |  | |_ __   ___ _ __ | (___ | |_) || |
> >  | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
> >  | |__| | |_) |  __/ | | |) | |_) || |_
> >   \/| .__/ \___|_| |_|_/|/_|
> > | |
> > |_|
> >
> > Platform Name : riscv-virtio,qemu
> > Platform Features : timer,mfdeleg
> > Platform HART Count   : 8
> > Firmware Base : 0x8000
> > Firmware Size : 156 KB
> > Runtime SBI Version   : 0.2
> >
> > Domain0 Name  : root
> > Domain0 Boot HART : 5
> > Domain0 HARTs : 0*,1*,2*,3*,4*,5*,6*,7*
> > Domain0 Region00  : 0x8000-0x8003 ()
> > Domain0 Region01  : 0x-0x (R,W,X)
> > Domain0 Next Address  : 0x8020
> > Domain0 Next Arg1 : 0x8220
> > Domain0 Next Mode : S-mode
> > Domain0 SysReset  : yes
> >
> > Boot HART ID  : 5
> > Boot HART Domain  : root
> > Boot HART ISA : rv64imafdcsu
> > Boot HART Features: scounteren,mcounteren,time
> > Boot HART PMP Count   : 16
> > Boot HART PMP Granularity : 4
> > Boot HART PMP Address Bits: 54
> > Boot HART MHPM Count  : 0
> > Boot HART MHPM Count  : 0
> > Boot HART MIDELEG : 0x0222
> > Boot HART MEDELEG : 0xb109
> >
> >
> > U-Boot 2021.01+dfsg-3ubuntu0~20.04.4 (Sep 21 2021 - 15:55:38 +)
> >
> > CPU:   rv64imafdcsu
> > Model: riscv-virtio,qemu
> > DRAM:  16 GiB
> > In:uart@1000
> > Out:   uart@1000
> > Err:   uart@1000
> > Net:   eth0: virtio-net#0
> > Hit any key to stop autoboot:  0
> >
> > Device 0: 1af4 VirtIO Block Device
> > Type: Hard Disk
> > Capacity: 13824.0 MB = 13.5 GB (28311552 x 512)
> > ... is now current device
> > Scanning virtio 0:1...
> > Found /boot/extlinux/extlinux.conf
> > Retrieving file: /boot/extlinux/extlinux.conf
> > 755 bytes read in 4 ms (183.6 KiB/s)
> > U-Boot menu
> > 1:Ubuntu 20.04.3 LTS 5.11.0-1017-generic
> > 2:Ubuntu 20.04.3 LTS 5.11.0-1017-generic (rescue target)
> > Enter choice: 1:  Ubuntu 20.04.3 LTS 5.11.0-1017-generic
> > Retrieving file: /boot/initrd.img-5.11.0-1017-generic
> > 170008555 bytes read in 728 ms (222.7 MiB/s)
> > Retrieving file: /boot/vmlinuz-5.11.0-1017-generic
> > 25258496 bytes read in 

[gem5-users] gem5 v21.2.1 released!

2022-02-08 Thread Bobby Bruce via gem5-users
Dear all,

A minor release, consisting of bug fixes and small improvements to v21.2 of
gem5, is now available. Users can obtain this release by pulling the latest
changes from the "stable" branch of the gem5 repository:
https://gem5.googlesource.com/public/gem5.

A short list outlining the changes in this release can be found in our
release notes:
https://gem5.googlesource.com/public/gem5/+/refs/tags/v21.2.1.0/RELEASE-NOTES.md
.

Thank you to everyone who made this release possible.

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

web: https://www.bobbybruce.net
___
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: Regarding network on chip in gem5

2022-01-26 Thread Bobby Bruce via gem5-users
Hey Sravani,

The Learning gem5 tutorials are probably the best place to start:
https://www.gem5.org/documentation/learning_gem5/introduction/

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

web: https://www.bobbybruce.net


On Sun, Jan 23, 2022 at 11:30 PM Sravani Sravanam 20PHD7041 via gem5-users <
gem5-users@gem5.org> wrote:

> Sir,
> I am sravani sravanam a research scholar at vit-ap university. My research
> area is NETWORK-ON-CHIP. as I am a beginner I don't know how to learn gem5
> and how can I use gem5 for my research work. please give me some insights
> and path, so that I can learn and use gem5.
> thanking you sir
> sravani sravanam
> ___
> 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: gem5: SPEC Tutorial

2022-01-19 Thread Bobby Bruce via gem5-users
Hey James,

Have you followed the README here?
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/spec-2017/.
I believe this is all you need to create a SPEC disk image.

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

web: https://www.bobbybruce.net


On Wed, Jan 12, 2022 at 5:51 PM jamesbondtia--- via gem5-users <
gem5-users@gem5.org> wrote:

> I am working on this tutorial : Run SPEC CPU 2017 / SPEC CPU 2006
> Benchmarks in Full System Mode with gem5art and I am wondering if someone
> could help  and tell me the changes I should make for packer to produce the
> spec2017 image as an .img extension?
> ___
> 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: some problem about util/tlm in gem5v20.1.0.5

2021-12-27 Thread Bobby Bruce via gem5-users
Also, in looking into this problem I encountered the following bug:

https://gem5.atlassian.net/browse/GEM5-1141

i haven't dived much deeper than what's logged in the Jira.

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

web: https://www.bobbybruce.net


On Mon, Dec 27, 2021 at 3:07 PM Bobby Bruce  wrote:

> You are right, the instructions provided in the utils/tlm/README will not
> generate the gem5.sc file.
>
> @gabe: How do you go about doing this?
>
> --
> Dr. Bobby R. Bruce
> Room 3050,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>
> web: https://www.bobbybruce.net
>
>
> On Mon, Dec 20, 2021 at 11:19 PM lin via gem5-users 
> wrote:
>
>> Hi
>> I read the README in util/tlm and follow the  following command:
>> >cd ../..
>> >scons build/ARM/gem5.opt
>> >scons --with-cxx-config --without-python --without-tcmalloc
>> build/ARM/libgem5_opt.so
>> >cd util/tlm
>>
>> Then I run the command:
>>
>> >../../build/ARM/gem5.opt conf/tlm_slave.py
>>
>> It report that:
>>
>>   fatal: Can't find port handler type 'tlm_master', just like the README 
>> said.
>>
>> But when I run the following command:
>>
>> >build/examples/master_port/gem5.sc m5out/config.ini -e 100
>>
>>
>> The error is that
>>
>> bash:build/examples/master_port/gem5.sc :No such file or directory.
>>
>>
>> How can I solve this problem?
>>
>> Thanks!
>>
>> ___
>> 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: some problem about util/tlm in gem5v20.1.0.5

2021-12-27 Thread Bobby Bruce via gem5-users
You are right, the instructions provided in the utils/tlm/README will not
generate the gem5.sc file.

@gabe: How do you go about doing this?

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

web: https://www.bobbybruce.net


On Mon, Dec 20, 2021 at 11:19 PM lin via gem5-users 
wrote:

> Hi
> I read the README in util/tlm and follow the  following command:
> >cd ../..
> >scons build/ARM/gem5.opt
> >scons --with-cxx-config --without-python --without-tcmalloc
> build/ARM/libgem5_opt.so
> >cd util/tlm
>
> Then I run the command:
>
> >../../build/ARM/gem5.opt conf/tlm_slave.py
>
> It report that:
>
>   fatal: Can't find port handler type 'tlm_master', just like the README said.
>
> But when I run the following command:
>
> >build/examples/master_port/gem5.sc m5out/config.ini -e 100
>
>
> The error is that
>
> bash:build/examples/master_port/gem5.sc :No such file or directory.
>
>
> How can I solve this problem?
>
> Thanks!
>
> ___
> 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] gem5 v21.2 released!

2021-12-27 Thread Bobby Bruce via gem5-users
Dear all,

gem5 v21.2.0.0 has officially been released.

You can use  `git clone https://gem5.googlesource.com/public/gem5`
 to obtain the latest release
and consult the RELEASE-NOTES.md for a high-level overview of significant
changes:
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/RELEASE-NOTES.md

A special thank you to all our contributors for making this possible. We
had 790 commits from 33 unique contributors over the past few months. We
look forward to your continued support in our v22.0 release!

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

web: https://www.bobbybruce.net
___
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: Guest Binaries for X86

2021-12-23 Thread Bobby Bruce via gem5-users
If it's X86 only, I'd strongly recommend using packer: http://packer.io. If
you look into the gem5 resources' README files you'll see examples of us
using it to build our benchmark disk images.

We provide some pre-build Linux kernels which will work with gem5 also.

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

web: https://www.bobbybruce.net


On Thu, Dec 23, 2021 at 12:51 PM jamesbondtia--- via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Bobby
>
> Thank you for the resources; I will look into those and see if they help.
> Currently, I am trying to create an X86 disk image to run my benchmark to
> test the performance of a defense I am working on, but I just haven't been
> able to do it so far.
> ___
> 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: Guest Binaries for X86

2021-12-22 Thread Bobby Bruce via gem5-users
Hey James,

What sort of things are you trying to run on X86? gem5 resources provides
some benchmarking applications: https://resources.gem5.org (this website is
a bit of a work-in-progress which we hope to revamp as part of the next
release, but you can view the raw sources here:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable).
For example, if you want to run some PARSEC benchmark application in gem5,
look here:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/parsec/.
We provide a parsec disk image, prebuilt, here:
http://dist.gem5.org/dist/v21-1/images/x86/ubuntu-18-04/parsec.img.gz.

If you're looking for a quick and easy way to setup and run X86
simulations, checkout our new gem5 standard library work. Right now it's
still on gem5's develop branch but will be part of  gem5 v21.2 (to be
released at some point over the next couple of days). If you want to have a
look at this, get the develop branch:

```
git clone -b develop https://gem5.googlesource.com/public/gem5
cd gem5
```

then look in the `configs/example/gem5_library` directory to see scripts
which use the standard library to build simulations and obtain resources
(such as disk images and sources). Feel free to play around with this. As a
very simple example, try:

```
scons build/X85/gem5.opt -j`nproc`
./build/X86/gem5.opt configs/example/gem5_library/x85-ubuntu-run.py
```

This will boot a 18.04 Ubuntu OS to login then exit the simulation.

If you have any questions about this, feel free to reachout out and ask.

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

web: https://www.bobbybruce.net


On Wed, Dec 22, 2021 at 2:30 PM jamesbondtia--- via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Gabe,
>
> Thanks for the reply. Is this a possible addition for future updates?
> ___
> 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: Reg v21.2 release

2021-11-10 Thread Bobby Bruce via gem5-users
Our current target date is December 21st for the v21.2 release. The staging
branch will be created at the beginning of next month.
--Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Wed, Nov 10, 2021 at 9:17 AM Gabriel Busnot via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
> I am not aware of a roadmap for any new version on the gem5 website yet.
> But you can still use the develop branch of the public gem5 repository.
> This is where the latest patches are pushed on a day-to-day basis before
> making their way to stable upon releases. I believe this branch to be very
> usable as commits go through a unit testing and code review procedure...
> And if you face a bug, feel free to contribute with a jira issue and even a
> patch that will make it to the next release ;).
>
> Best,
> Gabriel
> ___
> 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: Working X86 multi-core full system config with caches?

2021-10-28 Thread Bobby Bruce via gem5-users
Hey Antoine,

First of all, multi-core TimingSimple with classic caches will not work,
you have to use Ruby or run a single-core simulation.

I think we have something in development which can help you out. You can
run a full-system X86 Ubuntu simulation with the Ruby MESI Two Level
protocol with the following:

```
git clone https://gem5.googlesource.com/public/gem5
cd gem5
git checkout develop
scons build/X86_MESI_Two_Level/gem5.opt -j`nproc`
./build/X86_MESI_Two_Level/gem5.opt
configs/example/gem5_library/x86-ubuntu-run.py
```

If you have KVM on your system this will boot Ubuntu with KVM then run a
very simple script using the Timing Simple CPU. If you don't have KVM then
you can alter the simulation at line 94 in the
`configs/example/gem5_library/x86-ubuntu-run.py` file, and just run the
whole boot with the Timing Simple CPU.

The `x86-ubuntu-run.py` script builds upon our gem5 Python Library, which
is still under development, but you can look into it (under
`src/python/gem5`) to see how it all fits together and works. The
`x86-ubuntu-run.py` script itself should be relatively self-explanatory,
but please do not hesitate to get back to me if there's something you don't
understand.

Getting a full-system setup working is _tough_ if building a simulation
from scratch which is part of the reason we're moving more towards
providing a library for such things.

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

web: https://www.bobbybruce.net


On Thu, Oct 28, 2021 at 10:55 AM Antoine Kaufmann via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Everyone,
>
> Do we have any known-working configurations for x86 multi-core full system
> simulations with caches?
>
> We have successfully been using single core configs for more than a year
> now,
> but our attempts at anything multi-core have so far not been successful,
> with
> problems ranging from gem5 crashing to Linux getting stuck at boot.
>
> We have been using the TimingSimple CPU and tried both classic and ruby
> with
> various protocols.
>
> Does anyone have pointers to working configurations? Or is this something
> that
> is known to be fundamentally broken?
>
> Thanks in advance,
> Antoine
>
> --
> Antoine Kaufmann
> 
> ___
> 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: Wrong stats in gem5 v21.1

2021-10-06 Thread Bobby Bruce via gem5-users
I'm pretty sure the issues you are experiencing were fixed in the latest
hotfix release: v21.1.0.2. You can get this by pulling the latest version
from the gem5 repo's stable branch:
https://gem5.googlesource.com/public/gem5/

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

web: https://www.bobbybruce.net


On Sat, Sep 18, 2021 at 12:45 AM Vincent R. via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Meng,
>
> probably no coincidence. I also observe this with all my statistic outputs
> since upgrading to 21.1, both in example and customized configurations.
> It seems that scalar statistics are not affected, but vector and histogram
> stats are.
>
> I noticed this a few days ago and saw your mail when myself trying to find
> people observing the same.
> So far, nothing I've tried fixed this issue.
>
> Best regards,
> Vincent
>
>
> Chen Meng via gem5-users:
>
> Is there anyone who also encountered this issue? Or it's just a
> coincidence?
>
> I have tested both copy without any modification to source code.
>
> If you have some hints or tips, please help me.
>
> ___
> 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 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] gem5 v21.1.0.2 hotfix release: Fix Vector statistics

2021-09-22 Thread Bobby Bruce via gem5-users
Dear all,

The stable branch of the gem5 repository now contains the v21.1.0.2 hotfix
release. This release fixes a bug which was causing some vector statistics
in gem5 to break. We encourage gem5 users to pull the latest version of
gem5 from the repo's stable branch.

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

web: https://www.bobbybruce.net
___
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: gem5 GCN GPU docker error

2021-09-22 Thread Bobby Bruce via gem5-users
Just jumping in here,

I can confirm I can't build the image anymore. I had assumed this was just
a problem on my end before reading these emails. However, the image hosted
at http://gcr.io/gem5-test/gcn-gpu should be the most up-to-date version of
this Docker prior to this build error being introduced. It should work.

I've updated the website script here:
https://gem5-review.googlesource.com/c/public/gem5-website/+/50807.
Apologies, our documentation could definitely do with some tidying up :).

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

web: https://www.bobbybruce.net


On Wed, Sep 22, 2021 at 10:02 AM Imad Al Assir via gem5-users <
gem5-users@gem5.org> wrote:

> Dear Matt,
>
> Many thanks for catching this error! It did indeed solve the problem; I
> was able to successfully run square and other applications from hip-samples
> on both, the manually built dockerfile with everything related to rocBLAS
> and MIOpen commented, and the pre-built docker image which I believe has
> rocBLAS and MIOpen installed (based on its size).
>
> Many thanks again,
> Imad
>
> On Sep 22 2021, at 6:48 pm, Poremba, Matthew 
> wrote:
>
>
> [AMD Official Use Only]
>
>
>
> Hi Imad,
>
>
>
>
>
> Yes, the docker seems to have broken in the past few days.
>
>
>
> Regarding the benchmark not completing, please change your command to use
> 3 CPUs:
>
>
>
>
>
> docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources \
>
> -w /gem5 gcr.io/gem5-test/gcn-gpu \
>
> build/GCN3_X86/gem5.opt configs/example/apu_se.py -n3 \
>
> --benchmark-root=/gem5-resources/src/gpu/square/bin \
>
> -c square
>
>
>
> ROCm 4.0 requires 3 CPUs to run now.  I thought we had updated the
> README.md and website before gem5 21.1 release to reflect this but looks
> like they are not up to date.
>
>
>
>
>
> -Matt
>
>
>
> *From:* Imad Al Assir via gem5-users 
> *Sent:* Wednesday, September 22, 2021 9:31 AM
> *To:* Matt Sinclair 
> *Cc:* gem5 users mailing list ; Kyle Roarty <
> kroa...@wisc.edu>; Imad Al Assir 
> *Subject:* [gem5-users] Re: gem5 GCN GPU docker error
>
>
> [CAUTION: External Email]
>
> Hello,
> Thank you for your reply. I was simply following the documentation on the
> gem5 website:
> https://www.gem5.org/documentation/general_docs/gpu_models/GCN3
> 
> In other words, to build the image, I used:
>  docker build -t gcn-gpu .
>
>
> This command didn't complete and was interrupted by the error I pasted in
> the previous mail.
>
>
> I was also using the command in the documentation to compile square:
> docker run --rm -v $PWD/gem5-resources:$PWD/gem5-resources -w
> $PWD/gem5-resources/src/gpu/square gcr.io/gem5-test/gcn-gpu make square
>
>
> NOT "make gfx8-apu", as written in the documentation, which caused an
> error: "no rule to make target 'gfx8-apu' ", and I assumed was a typo.
>
>
> To run it, I also used the command in the doc:
> docker run --rm -v $PWD/gem5:/gem5 -v $PWD/gem5-resources:/gem5-resources \
> -w /gem5 gcr.io/gem5-test/gcn-gpu \
> build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2 \
> --benchmark-root=/gem5-resources/src/gpu/square/bin \
> -c square
>
>
> Note that in these commands, I modified the path of square to '
> gem5-resources/src/gpu/square' instead of 'gem5-resources/src/square',
> because that's where I found the code for it.
> Also note that I tried downloading the pre-built binary of square (from
> the gem5-resources website: http://resources.gem5.org/README
> ),
> but the result was the same: application running indefinitely.
>
>
> Thanks again for your help,
> Imad
>
>
> PS: If it helps, here are the last things printed when running square in
> gem5 in the pre-built docker image:
>
>
> [...] just warnings
>
>
> gem5 Simulator System.  http://gem5.org
> gem5 is copyrighted software; use the --copyright option for details.
>
>
> gem5 version 21.1.0.1
> gem5 compiled Sep 21 2021 14:52:55
> gem5 started Sep 22 2021 15:26:26
> gem5 executing on 8d532399b09e, pid 1
> command line: build/GCN3_X86/gem5.opt configs/example/apu_se.py -n2
> 

[gem5-users] Re: Access to gem5 101 course

2021-09-22 Thread Bobby Bruce via gem5-users
Yip, dead link for me as well. I'll see what we can do.

The Learning gem5 Tutorial should be sufficient though if you're new to
gem5.
--
Dr. Bobby R. Bruce
Room 3050,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Mon, Sep 20, 2021 at 10:16 AM Scott Blankenberg via gem5-users <
gem5-users@gem5.org> wrote:

> Dear all,
>
> Can anyone still access the gem5 101 course at :
> https://www.gem5.org/documentation/learning_gem5/gem5_101/#:~:text=Branch%20prediction%20and%20predication%20are%20two%20common%20techniques,how%20to%20incorporate%20gem5%20into%20your%20research%20process
> .
>
> When I click the links I get a page not found error.
>
> Thanks,
>
> Scott Blankenberg
> ___
> 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: regarding ERRORS in building of X86 ISA

2021-09-08 Thread Bobby Bruce via gem5-users
Sravani,

You have been posting very frequently to this mailing list asking for help
and, on at least two occasions, have ignored the feedback given to you.
While we want to help new gem5 users, we cannot hold your hand through
every problem. In case you are unaware, the gem5-users list is maintained
by volunteers within the gem5 community who kindly give up their time to
help others. Please keep this in mind before going directly to this list
for assistance.

Furthermore, if there are future questions to be asked, please copy and
paste the text of the error messages you receive rather than take a
screenshot.

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

web: https://www.bobbybruce.net


On Wed, Sep 8, 2021 at 12:14 AM Sravani Sravanam 20PHD7041 via gem5-users <
gem5-users@gem5.org> wrote:

> sir,
> i am sravani sravanam, a phd scholar in vit-ap university.in using gem5 i
> first CREATED THE ENVIRONMENT by using
> https://www.gem5.org/documentation/general_docs/building link.and then i
> tried to build X86 ISA.but i am getting error like
> scons: *** No SConstruct file found.
> File "/usr/lib/scons/SCons/Script/Main.py", line 940, in _main
> and i am attaching the screenshot of it.please check it.
> I am running gem5 in a virtual machine on my laptop.is it ok sir?
> please help me
> thank you
> sravani sravanam
> vit-ap university.
> ___
> 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] gem5 v21.1.0.1 hotfix release: Fix for 'deprecated attribute' warning

2021-09-08 Thread Bobby Bruce via gem5-users
Dear all,

The stable branch of the gem5 repository now contains the v21.1.0.1 hotfix
release. This release fixes a bug where the build output was being flooded
with "'deprecated' attribute directive ignored" warnings, as reported here:
https://gem5.atlassian.net/browse/GEM5-1063. While this bug never broke the
gem5 build, it was making reading the build output hard and was causing
confusion.

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

web: https://www.bobbybruce.net
___
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] gem5 v21.1 released!

2021-07-28 Thread Bobby Bruce via gem5-users
Dear all,

gem5 v21.1.0.0 has officially been released.

You can use  `git clone https://gem5.googlesource.com/public/gem5`
 to obtain the latest release
and consult the RELEASE-NOTES.md for a high-level overview of significant
changes:
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/RELEASE-NOTES.md

A special thank you to all our contributors for making this possible. We
had 780 commits from 48 unique contributors over the past few months. It's
quite an achievement. We look forward to your continued support in our
v21.2 release!

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

web: https://www.bobbybruce.net
___
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] gem5 Minor release: v21.0.1

2021-06-23 Thread Bobby Bruce via gem5-users
Dear all.

We're happy to announce our first minor release: version 21.0.1!

This release consists entirely of bug fixes for v21.0 users. More
information on exactly what has been fixed can be found here:
https://gem5.googlesource.com/public/gem5/+/refs/tags/v21.0.1.0/RELEASE-NOTES.md#version-21_0_1_0

As always, you can obtain the latest release of gem5 by pulling from the
repo's stable branch: https://gem5.googlesource.com/public/gem5/

We wish to give a special thanks to all the gem5 developers who have made
this possible, and to the gem5 community for making us aware of problems
and possible improvements to the project.

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

web: https://www.bobbybruce.net
___
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: KVM patch for FS mode and PARSEC on gem5-21

2021-06-09 Thread Bobby Bruce via gem5-users
The "Fix KVM on Intel platforms" patch is on stable, it was added here:
https://gem5-review.googlesource.com/c/public/gem5/+/12278

The other patch your cherry-picking I'm less sure of, but I dont think it's
a relevant problem anymore from what I can ascertain.

I apologize that the gem5art documentation is using such an old version of
gem5. Have you managed to get this working with the stable branch (version
21.0)? I'm not aware of any reason why it shouldn't work.

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

web: https://www.bobbybruce.net


On Wed, Jun 9, 2021 at 7:06 AM Rajesh Shashi Kumar via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
> I'm attempting to run PARSEC benchmarks in FS mode on gem5-v21.0. I have
> encountered an issue with KVM on Intel machine. I believe the same was
> addressed by this patch
>  recommended
> earlier in the mailing list
> 
> .
>
> panic: KVM: Failed to enter virtualized mode (hw reason: 0x8021)
>
> Most of the tutorials on gem5art
>  in
> gem5 documentation recommend using gem5-v20.1, but I noticed that applying
> the patch on 20.1 or 21 is not a trivial merge. For the time being, I've
> been able to use this specific commit tag described in gem5art-experiments
> .
>
> git clone https://gem5.googlesource.com/public/gem5cd gem5
> git checkout *d40f0bc579fb8b10da7181*
> git remote add darchr https://github.com/darchr/gem5
> git fetch darchr*git cherry-pick 
> 6450aaa7ca9e3040fb9eecf69c51a01884ac370c**git cherry-pick 
> 3403665994b55f664f4edfc9074650aaa7ddcd2c*
> scons build/X86/gem5.opt -j8
>
> At this point, I have two questions:
>
>1. Is the KVM patch necessary on gem5-v21?
>2. In case someone has encountered a similar issue previously, were
>you able to find a way to merge the patch on newer gem5 releases
>
> Thank you for your time.
>
> Regards,
> Rajesh Shashi Kumar
> ___
> 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: 答复: Re: SPEC2017 in FS mode

2021-05-25 Thread Bobby Bruce via gem5-users
FYI: Hoa has a fix for this, reported here:
https://gem5.atlassian.net/browse/GEM5-996.

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

web: https://www.bobbybruce.net


On Mon, May 24, 2021 at 4:22 AM Hoa Nguyen via gem5-users <
gem5-users@gem5.org> wrote:

> Hi Victor,
>
> I see the problem now.
>
> In install-spec2017 script line 21
> (
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/spec-2017/disk-image/spec-2017/install-spec2017.sh#21
> ),
> we replace the default gcc_dir so that specmake will use
> Ubuntu-installed gcc rather than spec's one.
> More specifically, it will replace
> gcc_dir = "/opt/rh/devtoolset-7/root/usr"
> by
> gcc_dir = "/usr"
>
> However, in your SPEC 2017 disc, it comes with devtoolset-9 and not
> devtoolset-7.
>
> So, one way to fix that is to change "devtoolset-7" in the line 21 to
> "devtoolset-9".
>
> Regards,
> Hoa Nguyen
>
> On 5/20/21, Victor Kariofillis via gem5-users  wrote:
> > Hi Hoa,
> >
> > Thanks for the help. I'm able now to look into why the builds fail.
> >
> > The gcc and gfortran commands are not found, which is weird since in
> > *install-spec2017.sh* there is a command for installing them. In the
> > terminal, I can clearly see that it is executed.
> >
> > qemu: build-essential is already the newest version (12.4ubuntu1).
> >> qemu: gfortran is already the newest version (4:7.4.0-1ubuntu2.3).
> >> qemu: 0 upgraded, 0 newly installed, 0 to remove and 176 not upgraded.
> >>
> >
> > But when it's time to build spec benchmarks they fail.
> >
> > specmake: /opt/rh/devtoolset-9/root/usr/bin/gfortran: Command not found
> >>
> >
> > Thanks
> >
> > On Thu, 20 May 2021 at 21:01, Liyichao via gem5-users <
> gem5-users@gem5.org>
> > wrote:
> >
> >> Hi Hoa:
> >> Is the spec-2017 img just for X86?
> >>
> >>  Does it support for AARCH64?Does it support for running with
> KVM+O3?
> >>
> >>
> >> -邮件原件-
> >> 发件人: Hoa Nguyen via gem5-users [mailto:gem5-users@gem5.org]
> >> 发送时间: 2021年5月19日 19:09
> >> 收件人: gem5 users mailing list 
> >> 抄送: Hoa Nguyen 
> >> 主题: [gem5-users] Re: SPEC2017 in FS mode
> >>
> >> Hi Victor,
> >>
> >> I'm not sure what caused the errors of building the spec benchmarks.
> >>
> >> Also, I'm not sure how to prevent the vm from being closed after the
> >> builds fail. However, there are a few steps can be done to exterminate
> >> the
> >> disk image after the builds fail:
> >> - In the file src/spec-2017/disk-image/spec-2017/install-spec2017.sh,
> >> the last line "rm -f /home/gem5/spec2017/result/*" should be removed to
> >> keep the log generated by spec during benchmark compilation time.
> >> - When running packer, you can run "./packer build -on-error=abort
> >> spec-2017/spec-2017.json" to keep the disk image if the disk image
> >> building
> >> process fails.
> >> - After that, you can mount the disk image and check the log file
> >> generated by spec.
> >>
> >> packer fails due to "output directory already exists". In this case,
> >> you'll need to remove the "spec-2017/spec-2017-image" folder before
> >> starting packer again.
> >>
> >> Regards,
> >> Hoa Nguyen
> >>
> >> On 5/17/21, Victor Kariofillis via gem5-users 
> >> wrote:
> >> > Hi,
> >> >
> >> > I've tried running the SPEC2017 benchmarks in FS mode of gem5 using
> >> > the instructions/files provided by the gem5 resources page.
> >> >
> >> >
> https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stabl
> >> > e/src/spec-2017
> >> >
> >> > I've also followed the step by step instructions in the git repo for
> >> > gem5-art.
> >> >
> >> > https://github.com/darchr/gem5art-experiments/blob/master/README.md
> >> >
> >> > Everything works as intended until the benchmarks are supposed to be
> >> built.
> >> > All of them fail with one of the two following errors:
> >> >
> >> > 1) Error with make!
> >> > 2) Error with fdo_make_pass1!
> >> >
> >> > First of all, why is this happening? Secondly, the vm closes after the
> >> > builds fail. I don't have the opportunity to check the make.out files
> >> > that have more information about the errors. Is there a way to prevent
> >> > the connection from closing or reopening it again? Running it again
> >> > with packer fails due to the directory existing already.
> >> >
> >> > I'd appreciate any help,
> >> > Victor
> >> >
> >> ___
> >> 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 mailing list -- gem5-users@gem5.org
> To unsubscribe send an email to gem5-users-le...@gem5.org
> 

[gem5-users] Re: Building Gem5 on Ubuntu 20.04 - Failure RESOLVED (and symbols)

2021-05-25 Thread Bobby Bruce via gem5-users
Just out of curiosity, you compiled gem5.opt with LTO and found it has
debug symbols?

gem5.fast doesn't have debug symbols, that's expected.

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

web: https://www.bobbybruce.net


On Tue, May 25, 2021 at 8:56 AM Eliot Moss via gem5-users <
gem5-users@gem5.org> wrote:

> Thank you, Gabe, and everyone, for your patience.  I followed up Gabe's
> intuition that this was probably an LTO process running out of memory.  I
> increased my virtual machine's memory from 4Gb to 24Gb and the builds went
> through.
>
> A side note: gem5.opt and gem5.fast.unstripped have symbols, gem.fast does
> not.
>
> Considering the build time from scratch, LTO does not add much.  That
> would be
> somewhat different in the case of, say, editing one source file and
> rebuilding.  LTO on my machine seems to take something like 5-10 mins.
>
> Best wishes - Eliot
> ___
> 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: Building Gem5 on Ubuntu 20.04

2021-05-24 Thread Bobby Bruce via gem5-users
In regards to debug symbols on the stable branch: All i can say for sure is
the debug symbols are being stripped right now with LTO enabled by default,
and they aren't stripped if you pass `--no-lto`. I wouldn't have expected
LTO to work this way, but this is our observation and one of the reason's
we're going to disable it by default.

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

web: https://www.bobbybruce.net


On Mon, May 24, 2021 at 1:43 PM Gabe Black  wrote:

> I don't think LTO strips debug symbols... But yes, LTO does significantly
> increase link time if your machine doesn't have lots of cores to
> parallelize the link. It slows it down in general, but with gcc you can
> parallelize the link with LTO where you can't without LTO for some reason,
> and that outweighs the other overhead if you have enough cores to throw at
> it.
>
> Especially when running in a virtual machine, you might just be running
> out of memory. LTO will use more ram, and if you run out things will fail
> in potentially strange ways.
>
> It sounds like you have a workaround for now so this may be a moot point,
> but in general, when you report compiler errors (or errors in general) it's
> very helpful to provide the error output instead of just describing the
> errors. That provides a lot of helpful detail which can make diagnosing the
> problem much easier.
>
> Gabe
>
> On Mon, May 24, 2021 at 1:07 PM Bobby Bruce via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Thanks for the report Eliot. In this case there's no need to file a bug
>> report as we're about to produce a minor release of gem5 that will off LTO
>> by default. I'm not familiar with this particular problem you are facing,
>> but we've found we need to turn it off for other reasons (1. It increases
>> links times for some users to unacceptable levels and 2. LTO strips debug
>> symbols which you'll need if you want to run tools such as GDB).
>>
>> I'm hoping we can ship the minor release sometime this week!
>>
>> --
>> Dr. Bobby R. Bruce
>> Room 3050,
>> Kemper Hall, UC Davis
>> Davis,
>> CA, 95616
>>
>> web: https://www.bobbybruce.net
>>
>>
>> On Mon, May 24, 2021 at 12:43 PM Eliot Moss via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> Dear Gem5-ers:
>>>
>>> I have been trying to build Gem5 out of the box, for x86, on a VirtualBox
>>> virtual machine set up for 64-bit Ubuntu 20.04 ("focal").  I can do
>>>
>>> scons build/X86/gem5.opt
>>>
>>> but it will succeed only if I disable link time optimization LTO using
>>> --no-lto.  I've tried various versions GCC - 7, 8, 9, and 10 - and all
>>> produce the same result.  (I think the key thing is probably something in
>>> binutils, but I don't know what version to try to obtain, and this
>>> version of
>>> Ubuntu does not readily offer anything other than 2.34.)
>>>
>>> Searching the web about this general problem mostly produces the
>>> "solution" of
>>> disabling LTO.  So, where should we / I file a bug report?  By turning
>>> on LTO
>>> reporting, I have found that the proximal cause is that decoder.o does
>>> not
>>> have a .debug_str section and yet there are a huge number of references
>>> to
>>> things that should be there (labels, I guess - the decode *would* have a
>>> lot
>>> of those!).
>>>
>>> Regards - Eliot
>>> ___
>>> 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 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: Building Gem5 on Ubuntu 20.04

2021-05-24 Thread Bobby Bruce via gem5-users
Thanks for the report Eliot. In this case there's no need to file a bug
report as we're about to produce a minor release of gem5 that will off LTO
by default. I'm not familiar with this particular problem you are facing,
but we've found we need to turn it off for other reasons (1. It increases
links times for some users to unacceptable levels and 2. LTO strips debug
symbols which you'll need if you want to run tools such as GDB).

I'm hoping we can ship the minor release sometime this week!

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

web: https://www.bobbybruce.net


On Mon, May 24, 2021 at 12:43 PM Eliot Moss via gem5-users <
gem5-users@gem5.org> wrote:

> Dear Gem5-ers:
>
> I have been trying to build Gem5 out of the box, for x86, on a VirtualBox
> virtual machine set up for 64-bit Ubuntu 20.04 ("focal").  I can do
>
> scons build/X86/gem5.opt
>
> but it will succeed only if I disable link time optimization LTO using
> --no-lto.  I've tried various versions GCC - 7, 8, 9, and 10 - and all
> produce the same result.  (I think the key thing is probably something in
> binutils, but I don't know what version to try to obtain, and this version
> of
> Ubuntu does not readily offer anything other than 2.34.)
>
> Searching the web about this general problem mostly produces the
> "solution" of
> disabling LTO.  So, where should we / I file a bug report?  By turning on
> LTO
> reporting, I have found that the proximal cause is that decoder.o does not
> have a .debug_str section and yet there are a huge number of references to
> things that should be there (labels, I guess - the decode *would* have a
> lot
> of those!).
>
> Regards - Eliot
> ___
> 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: Assertion failed when running MESI_Three_Level_HTM protocol

2021-05-04 Thread Bobby Bruce via gem5-users
Hey Taiyu,

MESI_Three_Level_HTM should be used with ARM not X86. I'm not sure if this
is the source of the error you're receiving, but you should try again with
ARM.

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

web: https://www.bobbybruce.net


On Sun, May 2, 2021 at 7:54 PM Taiyu Zhou via gem5-users <
gem5-users@gem5.org> wrote:

> Hi guys!
>
> I build gem5 with command “scons build/X86_MSI/gem5.opt --default=X86
> PROTOCOL=MESI_Three_Level_HTM SLICC_HTML=True”.
>
> And I use the test program from “
> https://www.gem5.org/documentation/learning_gem5/part3/running/“.
>
> Then I run command “./build/X86_MSI/gem5.opt configs/example/se.py --ruby
> --cpu-type=TimingSimpleCPU -n 4 -c ./bench/ruby_test”.
>
> But gem5 reports a Assertion failed. The error message gem5 reports is
> below:
>
> gem5 version 21.0.0.0
> gem5 compiled May  2 2021 05:11:38
> gem5 started May  2 2021 05:25:55
> gem5 executing on node145, pid 4
> command line: ./build/X86_MSI/gem5.opt configs/example/se.py --ruby
> --cpu-type=TimingSimpleCPU -n 1 -c ./bench/ruby_test
>
> warn: network.slave is deprecated. `slave` is now called `in_port`
> warn: requestToL2.master is deprecated. `master` is now called `out_port`
> warn: network.slave is deprecated. `slave` is now called `in_port`
> warn: responseToL2.master is deprecated. `master` is now called `out_port`
> warn: network.slave is deprecated. `slave` is now called `in_port`
> warn: unblockToL2.master is deprecated. `master` is now called `out_port`
> warn: network.master is deprecated. `master` is now called `out_port`
> warn: requestFromL2.slave is deprecated. `slave` is now called `in_port`
> warn: network.master is deprecated. `master` is now called `out_port`
> warn: responseFromL2.slave is deprecated. `slave` is now called `in_port`
> warn: network.slave is deprecated. `slave` is now called `in_port`
> warn: DirRequestFromL2Cache.master is deprecated. `master` is now called
> `out_port`
> warn: network.slave is deprecated. `slave` is now called `in_port`
> warn: L1RequestFromL2Cache.master is deprecated. `master` is now called
> `out_port`
> warn: network.slave is deprecated. `slave` is now called `in_port`
> warn: responseFromL2Cache.master is deprecated. `master` is now called
> `out_port`
> warn: network.master is deprecated. `master` is now called `out_port`
> warn: unblockToL2Cache.slave is deprecated. `slave` is now called `in_port`
> warn: network.master is deprecated. `master` is now called `out_port`
> warn: L1RequestToL2Cache.slave is deprecated. `slave` is now called
> `in_port`
> warn: network.master is deprecated. `master` is now called `out_port`
> warn: responseToL2Cache.slave is deprecated. `slave` is now called
> `in_port`
> warn: network.master is deprecated. `master` is now called `out_port`
> warn: requestToDir.slave is deprecated. `slave` is now called `in_port`
> warn: network.master is deprecated. `master` is now called `out_port`
> warn: responseToDir.slave is deprecated. `slave` is now called `in_port`
> warn: network.slave is deprecated. `slave` is now called `in_port`
> warn: responseFromDir.master is deprecated. `master` is now called
> `out_port`
> warn: sys_port_proxy.slave is deprecated. `slave` is now called `in_ports`
> warn: dir_cntrl0.memory is deprecated. The request port for Ruby memory
> output to the main memory is now called `memory_out_port`
> warn: sequencer.slave is deprecated. `slave` is now called `in_ports`
> warn: sequencer.slave is deprecated. `slave` is now called `in_ports`
> warn: sequencer.slave is deprecated. `slave` is now called `in_ports`
> warn: sequencer.slave is deprecated. `slave` is now called `in_ports`
> warn: sequencer.master is deprecated. `master` is now called
> `interrupt_out_port`
> warn: sequencer.master is deprecated. `master` is now called
> `interrupt_out_port`
> warn: sequencer.slave is deprecated. `slave` is now called `in_ports`
> Global frequency set at 1 ticks per second
> warn: No dot file generated. Please install pydot to generate the dot file
> and pdf.
> warn: DRAM device capacity (8192 Mbytes) does not match the address range
> assigned (512 Mbytes)
> 0: system.remote_gdb: listening for remote gdb on port 7000
> gem5.opt: build/X86_MSI/base/statistics.hh:938: void
> Stats::VectorBase::doInit(Stats::size_type) [with Derived =
> Stats::Vector; Stor = Stats::StatStor; Stats::size_type = unsigned int]:
> Assertion `!storage && "already initialized"' failed.
> Program aborted at tick 0
> --- BEGIN LIBC BACKTRACE ---
> ./build/X86_MSI/gem5.opt(_Z15print_backtracev+0x2c)[0x56229bdf01bc]
> ./build/X86_MSI/gem5.opt(_Z12abortHandleri+0x48)[0x56229bdf0288]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7f379421e980]
> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f3793e59fb7]
> /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f3793e5b921]
> /lib/x86_64-linux-gnu/libc.so.6(+0x3048a)[0x7f3793e4b48a]
> 

[gem5-users] Re: TimingCPU's IPC

2021-04-26 Thread Bobby Bruce via gem5-users
Could you give a bit more info about your configuration here? To be honest,
it looks like the CPU is just running at 1GHz instead of 2. Is that
possible?

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

web: https://www.bobbybruce.net


On Fri, Apr 23, 2021 at 3:52 AM Liyichao via gem5-users 
wrote:

> Hi All:
>
>  As I know, Atomic or Timing CPU’s IPC is 1 IPC, but when I test a
> program in SE mode with –debug-flags=Exec, in the debug output file, I find
> that one instruction’s tick is incremented by 1000, my cpu frequency is 2
> GHz. Does that mean that the IPC is 0.5(cycle=1000/500)?
>
> Is the 1IPC is calculated under 1GHz?
>
>
>
>
> ___
> 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: ARM and opening a file

2021-04-20 Thread Bobby Bruce via gem5-users
Hey Majid,

Are you running in FS or SE mode? If you're running in SE mode, I don't
find this too surprising as not all System calls are currently supported.

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

web: https://www.bobbybruce.net


On Wed, Apr 14, 2021 at 8:16 PM Majid Jalili via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
> When I was running SPEC CPU 2017, in particular 505.mcf_r, I noticed that
> if gem5 should open a file, it will not make any progress. I dig into mcf
> code and found when the read_min function is called the simulation freezes.
> Then I started running a simple benchmark as follows, that just prints the
> content of a file:
>
> https://www.geeksforgeeks.org/c-program-print-contents-file/
>
> For this example, I also run into the same problem. I tried X86 and
> everything works just fine
>
> Repo:  I tried both dev and stable
> gcc: aarch64-linux-gnu-gcc-7 aarch64-linux-gnu-gcc-5
>
> Any help is great!
>
>
> ___
> 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: Converting KVM-taken checkpoint to atomic-needed checkpoint

2021-04-12 Thread Bobby Bruce via gem5-users
Hey Majid,

The short answer is yes, this use-case should be supported.

You can use the `--restore-with-cpu` option to restore to the Atomic CPU.

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

web: https://www.bobbybruce.net


On Fri, Apr 9, 2021 at 2:29 PM Majid Jalili via gem5-users <
gem5-users@gem5.org> wrote:

> Hi,
>
> Is it practically possible to convert the KVM-taken checkpoint such that I
> can restore it with Atomic CPU? This is particularly important because I
> have to use KVM to take my checkpoints on an ARM machine and then transfer
> them to my X86 cluster to run the checkpoints.
> I cannot avoid KVM on ARM, because my simpoints are very long, and I
> cannot continue my simulation on ARM host because it is slow and not free.
>
> ___
> 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: The sim_insts in stats.txt under O3 type seems to be wrong

2021-04-12 Thread Bobby Bruce via gem5-users
Hey Charlie,

I don't think there's any bug here. The debug out file is not one
instruction per line. Certain operations may be over two lines, for
example. We don't expect the number of lines in this file to equal the
number of simulated instructions so you can't compare these side-by-side.

Kind regards,
Bobby


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

web: https://www.bobbybruce.net


On Wed, Apr 7, 2021 at 7:32 PM Liyichao via gem5-users 
wrote:

> Hi all:
>
>  When I use se mode to execute an ELF under O3 type with Exec
> debug flags, the sim_insts in stats.txt is different with the lines of Exec
> debug output file.
>
>  Sim_ints is 94189557, but Exec debug output file has 472187507 lines.
> I have test the same ELF on my aarch64 server with “perf stat -e r11 -e
> r8:k -e r8:u ./redis_0327”, the r8:u is userspace instrution counts, the
> result is:
>
> 1,514,293,116 r11
> 820,116,727 r8:k
> 429,128,196 r8:u
>
> Is the count of sim_insts was wrong?It seems that the sim_insts is about a
> fifth less than the actual count of instructions.
>
>
>
>
>
> My gem5 versiont is 20.0.0.3, my command is
>
> “./build/ARM/gem5.opt --debug-flags=Exec
> --debug-file=./new_o3_debug_out.txt configs/example/se.py
> --cpu-type=DerivO3CPU --cpu-clock=2.6GHz --sys-clock=2.6GHz --caches
> --l2cache --mem-size=8GB
> --nvmain-config=../../nvmain_public/Config/template_DRAM_2933.config -c
> ./redis_0327”
>
>
>
> Stats.txt:
>
> final_tick 144144768845 # Number of ticks from beginning of simulation
> (restored from checkpoints and never reset)
> host_inst_rate 18845 # Simulator instruction rate (inst/s)
> host_mem_usage 8562280 # Number of bytes of host memory used
> host_op_rate 24546 # Simulator op (including micro ops) rate (op/s)
> host_seconds 4998.02 # Real time elapsed on the host
> host_tick_rate 28840391 # Simulator tick rate (ticks/s)
> sim_freq 1 # Frequency of simulated ticks
> sim_insts 94189557 # Number of instructions simulated
> sim_ops 122680518 # Number of ops (including micro ops) simulated
> sim_seconds 0.144145 # Number of seconds simulated
> sim_ticks 144144768845 # Number of ticks simulated
>
>
>
> Exec debug output file:
>
> cat m5out/new_o3_debug_out.txt |wc -l
> 472187507
>
>
> --
>
> 李翼超(Charlie)
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> [image: Company_logo]
>
> 部门:计算系统与组件开发部 [云与计算BG]
>
> 手 机:15858232899
> 电子邮件:liyic...@huawei.com
>
> 地址:中国(China)-杭州(Hangzhou)-滨江区江淑路360号华为杭州研发中心Z4# [3-A06]
> --
>
>  本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above.
> Any use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>
> ___
> 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] gem5 v21.0 released!

2021-03-26 Thread Bobby Bruce via gem5-users
Dear all,

gem5 v21.0.0.0 has officially been released.

Using `git clone https://gem5.googlesource.com/public/gem5` will get you
the latest version.

There have been a lot of changes since v20.1, which we have highlighted in
our release-notes:
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/RELEASE-NOTES.md.
Please familiarize yourself with these changes, particularly API changes
which may impact how you interact with gem5.

We wish to thank everyone who has contributed to the release of gem5 21.0.
It is very much appreciated. We look forward to your continued support in
the development of gem5 v21.1!

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

web: https://www.bobbybruce.net
___
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: [gem5-dev] Some gem5 infrastructure down

2021-03-17 Thread Bobby Bruce via gem5-users
Hey all,

Thanks for your patience. Our Google Cloud infrastructure is now back
online. I'll go through Gerrit momentarily to re-start the tests that
failed due to this unexpected downtime.

A couple of hours down over the course of a year... not too bad, all things
considered :)

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

web: https://www.bobbybruce.net


On Wed, Mar 17, 2021 at 4:07 PM Jason Lowe-Power via gem5-dev <
gem5-...@gem5.org> wrote:

> Hi all,
>
> We're having an issue with the billing for our Google cloud
> infrastructure. There may be intermittent issues with gem5 infrastructure
> for a little while. We hope to get this resolved within a few hours.
>
> Cheers,
> Jason
> ___
> gem5-dev mailing list -- gem5-...@gem5.org
> To unsubscribe send an email to gem5-dev-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] gem5 v20.1.0.5 Hotfix Release

2021-03-17 Thread Bobby Bruce via gem5-users
Dear all,

The gem5 v20.1.0.5 hotfix release is now available on the stable branch:
https://gem5.googlesource.com/public/gem5/. This fixes a number of bugs
identified over recent weeks. As always, we advise gem5 users pull the
latest version from the stable branch to keep up-to-date with the latest
fixes and improvements.

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

web: https://www.bobbybruce.net
___
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] gem5 v20.1.0.4 Hotfix Release

2021-02-22 Thread Bobby Bruce via gem5-users
Dear all,

A bug was identified in gem5 v20.1 that resulted in gem5 failing to compile
with scons 4.0.1 and 4.1.0: https://gem5.atlassian.net/browse/GEM5-916

As such a hotfix (v20.1.0.4) has been released. This fix can be obtained by
pulling the latest version of gem5 via the git stable branch. The fix will
ensure gem5 functions correctly on the latest scons release.

Special thanks to Hoa Nguyen for finding and fixing this bug!

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

web: https://www.bobbybruce.net
___
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] gem5 v20.1.0.3 Hotfix Release

2021-02-03 Thread Bobby Bruce via gem5-users
Dear all,

Last month a bug was identified where booting Linux stalled under certain
circumstances when using the ARM ISA:
https://gem5.atlassian.net/browse/GEM5-901. A fix was found and has been
applied as a new hotfix release to v20.1. We would advise users to pull the
latest gem5 release to avoid any errors.

Special thanks to Adrian Herrera for bringing this bug to our attention and
developing a fix!

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

web: https://www.bobbybruce.net
___
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: Error in HMC Simulation

2021-02-01 Thread Bobby Bruce via gem5-users
Hey Veronia,

Thanks for bringing this to our attention. The issue is we're starting to
move from Python 2 to Python 3 and this appears to be another teething
problem. In Python 2 the `i/4` at line 270 will floor to an int. In Python3
it will return a float (obviously not a valid index for a list).

I'll look into fixing this on our develop branch, but I believe this can be
fixed by changing this to `i//4`. I.e.: ` mem_ctrls[i].port =
xbar[i//4].master`.

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

web: https://www.bobbybruce.net


On Mon, Feb 1, 2021 at 11:38 AM Veronia Bahaa via gem5-users <
gem5-users@gem5.org> wrote:

> Hello,
> I am new to gem5. When I try to run the gem5 using HMC configurations
> build/ARM/gem5.opt configs/example/hmc_hello.py
> or
> build/ARM/gem5.opt configs/example/hmctest.py
>
> I get this error
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "build/ARM/python/m5/main.py", line 457, in main
> exec(filecode, scope)
>   File "configs/example/hmc_hello.py", line 63, in 
> MemConfig.config_mem(options, system)
>   File "/home/veronia/gem5/configs/common/MemConfig.py", line 270, in
> config_mem
> mem_ctrls[i].port = xbar[i/4].master
> TypeError: list indices must be integers or slices, not float
>
> Thanks,
> Veronia
> ___
> 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: Moby/AsimBench benchmarks

2021-01-27 Thread Bobby Bruce via gem5-users
Salvador,

The gem5 project isn't currently supporting the AsimBench marks. Our
supported benchmarks can be found here:
http://www.gem5.org/documentation/general_docs/gem5_resources . I'm afraid
I'm not personally aware of anyone who has a version of AsimBench/Mobi that
is known to work with gem5.

If you do find anything, please let me know. It may be worth including in
our officially supported benchmark set.

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

web: https://www.bobbybruce.net


On Tue, Jan 5, 2021 at 8:20 AM Salvador Petit via gem5-users <
gem5-users@gem5.org> wrote:

> Hi all,
>
> I'am looking for the AsimBench (renamed to Moby) benchmarks. However, they
> are not available anymore at http://www.gem5.org/AsimBench. The links in
> http://old.gem5.org/AsimBench.html do not work also.
>
> Please, do you know about an alternative repository?
>
> Thank you very much,
> Salva
>
> --
> Salvador Petit Martí
> Profesor
> Edificio 1G - Despacho 3N20
> Departamento de informática de sistemas y computadores (DISCA)
> Escuela técnica superior de ingeniería informática (ETSINF)
> Universidad Politécnica de Valencia (UPV)
> 46022 Valencia - SPAIN
> Tfno.  +34963877007 Ext. 85709
> Fax  +34963877579
> http://www.disca.upv.es/spetit
> ___
> 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: ARMv8-A inorder processor in gem5

2021-01-04 Thread Bobby Bruce via gem5-users
gem5 can be quite resource intensive when compiling. 9 threads may be too
much for your laptop to handle. Have you tried reducing the number of
threads? To be safe, you could try running with two threads (using `-j2`)
and see what happens.

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

web: https://www.bobbybruce.net

Please consider making a submission to GI@ICSE '21:
http://geneticimprovementofsoftware.com/gi2021icse.html


On Mon, Jan 4, 2021 at 1:53 PM javad mozaffari via gem5-users <
gem5-users@gem5.org> wrote:

> Hello,
> I want to use gem5 to simulate arm processor but I have problem and I hope
> you can help me.i download gem5 and when i want to install with scons
> build/ARM/gem5.opt -j9 my ubuntu is freezing and i have to restart my
> laptop but In several attempts i install x86. i don't know what the problem
> is.
>
> Thanks
> ___
> 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: Invitation to complete the gem5 Survey 2020!

2020-12-21 Thread Bobby Bruce via gem5-users
This is a friendly reminder that you still have time to complete the 2020
gem5 survey if you have not already done so. This is a great chance to give
the gem5 project feedback which we will use to decide where to allocate
resources over the course of the next year. It only takes 10 minutes and is
entirely anonymous. The survey is open to both gem5 users and gem5
developers.

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

web: https://www.bobbybruce.net

Please consider making a submission to GI@ICSE '21:
http://geneticimprovementofsoftware.com/gi2021icse.html


On Fri, Dec 4, 2020 at 5:56 PM Bobby Bruce  wrote:

> Dear all,
>
> To all those willing, I wish to extend an invitation to participate in
> this year's gem5 survey. The purpose of this survey is to provide valuable
> feedback to the gem5 community as to which areas of the project we should
> focus on over the next year and beyond. This survey may be completed by
> anyone with a stake in gem5, from our developers to users, beginner or
> expert.
>
> Participating in this survey should take around 10 minutes to complete.
> Doing so is voluntary, and we assure you that all responses are
> confidential. Any results shared with the community will be published in
> the aggregate, without any connection to the individual. So please, feel
> free to be candid in your responses.
>
> To start the survey, please click the link below:
> https://ucdavis.co1.qualtrics.com/jfe/form/SV_4YgmHgpz3LzPkfb
>
> Thank you for your participation in this year's survey!
>
> Kind regards,
> Bobby
> --
> Dr. Bobby R. Bruce
> Room 2235,
> Kemper Hall, UC Davis
> Davis,
> CA, 95616
>
> web: https://www.bobbybruce.net
>
> Please consider making a submission to GI@ICSE '21:
> http://geneticimprovementofsoftware.com/gi2021icse.html
>
___
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] Invitation to complete the gem5 Survey 2020!

2020-12-04 Thread Bobby Bruce via gem5-users
Dear all,

To all those willing, I wish to extend an invitation to participate in this
year's gem5 survey. The purpose of this survey is to provide valuable
feedback to the gem5 community as to which areas of the project we should
focus on over the next year and beyond. This survey may be completed by
anyone with a stake in gem5, from our developers to users, beginner or
expert.

Participating in this survey should take around 10 minutes to complete.
Doing so is voluntary, and we assure you that all responses are
confidential. Any results shared with the community will be published in
the aggregate, without any connection to the individual. So please, feel
free to be candid in your responses.

To start the survey, please click the link below:
https://ucdavis.co1.qualtrics.com/jfe/form/SV_4YgmHgpz3LzPkfb

Thank you for your participation in this year's survey!

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

web: https://www.bobbybruce.net

Please consider making a submission to GI@ICSE '21:
http://geneticimprovementofsoftware.com/gi2021icse.html
___
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: Need Help For Applying a Patch

2020-11-19 Thread Bobby Bruce via gem5-users
Hey Srikrishna,

I had a look into this for you. Turns out we still had an old gem5
mercurial repo hanging around for us to see where this patch goes. To apply
this patch on our git repo you'll need to checkout revision
6498ccddb2f13a6fac6a210372b1aa86873507b9, then use `git apply` with the
`--whitespace=fix` and `--reject` flags.

Going completely from beginning to end:

```
git clone https://gem5.googlesource.com/public/gem5
git checkout 6498ccddb2f13a6fac6a210372b1aa86873507b9
cd gem5
wget
https://raw.githubusercontent.com/farzadfch/gem5-cache-partitioning/master/cache-part.patch
git apply --reject --whitespace=fix cache-part.patch
```

Though, i wish to warn here -- this revision of the repository is *very*
old. It's from 2014, and therefore incredibly out-of-date. There will be
definitely be bugs and missing features, not mention almost zero
documentation if you get stuck. Proceed with caution.

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

web: https://www.bobbybruce.net

Please consider making a submission to GI@ICSE '21:
http://geneticimprovementofsoftware.com/gi2021icse.html


On Thu, Nov 19, 2020 at 4:37 AM Gabe Black via gem5-users <
gem5-users@gem5.org> wrote:
>
> gem5 does not use mercurial any more and hasn't for a while, and so using
hg commands probably won't work. You should be able to apply the patches
using the normal "patch" command, or even with git using the "git am"
command, but if your patches are really old (likely if they're geared
towards mercurial) then they likely won't apply cleanly.
>
> Gabe
>
> On Wed, Nov 18, 2020 at 6:59 PM Srikrishna Vasudev via gem5-users <
gem5-users@gem5.org> wrote:
>>
>> Hello everyone!
>> I am trying to implement a patch, but for some reason I am unable to do
it. I feel like I might be missing a step in between somewhere.
>> I am using the instructions given in this site to import the patch:
https://synergy.ece.gatech.edu/tools/garnet/mercurial-patches-for-gem5garnet/
>> I want to implement this patch:
https://github.com/farzadfch/gem5-cache-partitioning
>> In the patches folder I have made a txt file name series and and I have
also copied the patch there. I use the echo command to write the name of
the patch in the series txt file as it is written in the instructions. But
when I use the hg qpush command it shows the message "no patch in series".
>> I have tried using a different patch as well, but it also shows the same
message.
>> I am new to gem5 and all the stuff related to it, so I might be making
some mistake.
>> Kindly help me out guys!
>> Thank you.
>>
>> With regards
>> Srikrishna Vasudev
>>
>>
>>
>> ___
>> 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 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] gem5 v20.1.0.2 Hotfix Release

2020-11-16 Thread Bobby Bruce via gem5-users
Dear all,

We've fixed two bugs as part of a hotfix release for gem5 v20.1.

A "ValueError: invalid literal for int() with base..." error was being
thrown in certain circumstances due to a non-integer being passed to
"MemorySize" via a division. This has been fixed.

An assertion in Stats was being triggered due to a name collision between
two ThreadStateStats Objects. This has also been fixed.

As always, we advise users to pull the latest release of gem5.

Kind regards,
Bobby

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

web: https://www.bobbybruce.net
___
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: How to display the microop in the reorder buffer for gem5?

2020-11-13 Thread Bobby Bruce via gem5-users
Hey,

I think the method that may help you here is `disassemble` in
static_inst.hh:
https://gem5.googlesource.com/public/gem5/+/refs/tags/v20.1.0.1/src/cpu/static_inst.hh#340.
I imagine, what you want to do is something like `print
(*address).disassemble()`.

It may also be worth looking into the gem5 debug flags such as `ROB`,
`Fetch` and `DynInst`. More information on how to use Debug flags can be
found here: http://www.gem5.org/documentation/learning_gem5/part2/debugging/

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

web: https://www.bobbybruce.net


On Sun, Oct 18, 2020 at 11:26 PM 1258289086--- via gem5-users <
gem5-users@gem5.org> wrote:

> When debugging gem5, I want to know what microops are in the reorder
> buffer, instruction queue or decoding queue? Is there any way to do it?
> When debugging with gdb, when I use p queuename, the display is similar to
>
>  {std::queue wrapping: std::deque with 8 elements = {{data = 0x23e5d700},
> {data = 0x23ead180}, {
>   data = 0x23e722c0}, {data = 0x2460a580}, {data = 0x37ecc00},
> {data = 0x23ef2580}, {data = 0x23eb8ec0}, {
>   data = 0x23ec2b00}}, std::queue wrapping: std::deque with 0
> elements,  std::queue wrapping: std::deque with 0 elements, std::queue
> wrapping: std::deque with 0 elements}
>
> But I want it to show specific micro-operations such as mov add.
> ___
> 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: The latest gem5 did not compile successfully

2020-11-13 Thread Bobby Bruce via gem5-users
Hey,

These warnings are fine (I get them), they won't affect what you're trying
to do. The compilation was successful.

I see Hoa is already handling your  "When gem5 is debugged, how to judge
the current position of data?" question (
https://www.mail-archive.com/gem5-users@gem5.org/msg18709.html).

As for the question on the microops,
https://www.mail-archive.com/gem5-users@gem5.org/msg18497.html, I'll reply
in-thread.

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

web: https://www.bobbybruce.net


On Thu, Nov 12, 2020 at 5:42 PM yujiecui--- via gem5-users <
gem5-users@gem5.org> wrote:

> Thank you for your reply. I put the latest version of gem5 into a
> directory that is not adjacent to the old version of gem5, and compiled
> successfully. But there are some warnings:*** Summary of Warnings ***
> Warning: Your compiler doesn't support incremental linking and lto at the
> same time, so lto is being disabled. To force lto on
>  anyway, use the --force-lto option. That will disable partial
> linking.
> Warning: Header file  not found.
>  This host has no libpng library.
>  Disabling support for PNG framebuffers.
>
> Can you look at these two questions for me? I'm learning the details of
> CPU and cache with gem5.
>
> https://lists.gem5.org/archives/list/gem5-users@gem5.org/message/KETUHK7XKH6NUR46SYGSYEQZBRSELWN7/
>
>
> https://lists.gem5.org/archives/list/gem5-users@gem5.org/message/PGN6GAEQLXW2EBPXB5WW5ZNU2KTY2KTK/
> ___
> 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: The latest gem5 did not compile successfully

2020-11-12 Thread Bobby Bruce via gem5-users
Hey Yujiecui,

Sorry to hear you're having trouble compiling. It doesn't sound like you're
anything wrong based on what you described. One thing that's always worth
trying when having compilation issues with gem5 is deleting the "build"
directory and starting from scratch. Sometimes the build system gets
confused if there is older compiled code still around when making a fresh
compilation.

If this doesn't work, could you give me a little information?:

- What compiler are you using? We support GCC and Clang. Of those, what
version?
- What OS are you using?
- When you say the latest version, do you mean, the HEAD of the stable
branch (v20.1.0.1 at the time of writing)?
- What's the exact compilation command you are using? I assume `scons
build/X86/gem5.opt` based on your email, though I'd like to make sure.

Kind regards,
Bobby

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

web: https://www.bobbybruce.net


On Thu, Nov 12, 2020 at 4:23 AM yujiecui--- via gem5-users <
gem5-users@gem5.org> wrote:

> I just downloaded the latest gem5. Then compiled it using the scons build
> / x86 / gem5. Opt command. But there was an error
>
> build / x86 / SystemC / channel/ messages.cc:83 :1: error: 'sc_ gem5' does
> not name a type
> Sc_ gem5::DefaultReportMessages predefinedMessages{
> ^
> scons: *** [build/X86/systemc/channel/messages.o] Error 1
> scons: building terminated because of errors.
>
> The old version of gem5 can compile normally. The old version of gem5 I
> used scons 2.4.1. I used scons 3.0.1 for the latest version.
>
> Does anyone know why?
> ___
> 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] gem5 v20.1.0.1 Hotfix Release [Garnet Network Model]

2020-11-06 Thread Bobby Bruce via gem5-users
Dear all,

In the gem5 v20.1.0.0 release there was a bug in the Garnet Network Stats,
which adversely affected the overall behavior of the Garnet Network Model.
The bug, and related fix, are discussed here:
https://gem5-review.googlesource.com/c/public/gem5/+/36416. On November
6th, we applied this fix to the stable branch, marking the release of gem5
v20.1.0.1.

Those using the Garnet Network Model are strongly encouraged to pull this
largest release from the gem5 stable branch :
https://gem5.googlesource.com/public/gem5

Kind regards,
Bobby

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

web: https://www.bobbybruce.net
___
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: How to enable dist-gem5 on GEM5 20.0.0.3 on ARM64

2020-11-03 Thread Bobby Bruce via gem5-users
Hey Liyichao,

I'm sorry to somewhat avoid answering the question (I don't know enough
about dist-gem5 to comment), but dist-gem5 is grossly under-tested and
hasn't had any decent maintenance in a while, so it really comes with no
guarantees, and it wouldn't surprise me at all if it doesn't work exactly
as intended.

In short, I'd proceed with caution. You may need to play around with the
code to get what you want.

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

web: https://www.bobbybruce.net


On Fri, Oct 30, 2020 at 11:14 PM Liyichao via gem5-users <
gem5-users@gem5.org> wrote:

> Hi All:
>
>
>
>  Any one use dist-gem5 to bootup successfully on GEM5 20.0.0.3 on
> ARM64?
>
>
>
>  In dist-gem5 website, the example only shows for arm32, and the
> kernel/img/boot_emm/vexpress_emm is just matched for arm32.
>
>
>
>
>
>  I want to use the latest 4.14 kernel and
> aarch64-ubuntu-trusty-headless.img from GEM5 website with KVM bootup, how
> to enable it?
>
>
> --
>
> 李翼超(Charlie)
>
>
>
> 华为技术有限公司 Huawei Technologies Co., Ltd.
>
> [image: Company_logo]
>
> 部门:计算系统与组件开发部 [云与计算BG]
>
> 手 机:15858232899
> 电子邮件:liyic...@huawei.com
>
> 地址:中国(China)-杭州(Hangzhou)-滨江区江淑路360号华为杭州研发中心Z4# [3-A06]
> --
>
>  本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above.
> Any use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>
> ___
> 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: Need help in building gem5

2020-10-26 Thread Bobby Bruce via gem5-users
Hey Raghul,

I sorry can't tell immediately from this information what's wrong with your
process, but I'd advise trying the following steps:

1) Ensure HDF5 is set up correctly on your system. Perhaps you're using an
old version? Try reinstalling it and see if that works.

2) If you haven't already done so, try deleting the `build` directory and
recompiling. Sometimes our build system gets confused if there's compiled
resources already around.

3) If you everything worked for you 2 months ago, try checking out gem5 20
--- `git checkout v20.0.0.0`.

4) HDF5 is an optional dependency. Depending on what you're doing, you
could remove it from your system and run gem5 without it.

Kind regards,
Bobby

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

web: https://www.bobbybruce.net


On Sat, Oct 24, 2020 at 8:34 PM Shivakumar,Raghul via gem5-users <
gem5-users@gem5.org> wrote:

> Hello All,
>
>
>
> I am trying to build gem5. I cloned the “stable” branch of gem5 from
> Github. I am getting below errors when trying to build.
>
> What is wrong with my build process? I was able to successfully build gem5
> 2 months ago, but now I am getting these errors.
>
> GCC – 5.2.0
>
> SCONS – 3.1.2
>
>
>
>
>
> Thanks,
>
> Raghul 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 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: Some Question About Cache in Gem5

2020-10-19 Thread Bobby Bruce via gem5-users
Hey,

I'm not sure I understand exactly what you're asking. I assume you're
learning from the "learning gem5" tutorial (here :
http://www.gem5.org/documentation/learning_gem5/introduction/)? If so,
could you point us towards the exact part that's confusing you?

Kind regards,
Bobby

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

web: https://www.bobbybruce.net


On Sun, Oct 18, 2020 at 6:27 AM 522808087--- via gem5-users <
gem5-users@gem5.org> wrote:

> hi,all.I am learning gem5,I know the Cache is heriarchy level,but  i can't
> distinguishhow the message was deliver between L1Cache and L2 Cache(eg.When
> L1 miss,find the blk in L2).Do you someone Know? Best wish.
> ___
> 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: gem5 full system emulation is slow - want suggestions to fasten bootup

2020-10-16 Thread Bobby Bruce via gem5-users
Hey Krishnan,

I know very little about Ciro Santili's scripts, so I struggle to see what
you're doing. I suspect in this example you are _just_ booting the kernel
with literally nothing else (and possibly on the Atomic CPU?). This will be
faster than a complete OS boot, but I normally run on the assumption people
want to do a bit more in their simulations than just to boot the kernel.

Given what you're saying I think you need to do some research and
understand the difference between the kernel, and an OS like Ubuntu, and
what you actually want to boot, run, and test using gem5. Booting the
kernel is just the first part in booting a modern OS like Ubuntu. The
latter will obviously take longer than the former but they are two
different things. It's apples and oranges.

I wouldn't focus too much on reducing simulation time. I think you need to
think about what you actually want to simulate, what data you want to
gather, and work from there. The simulation time is going to be dependent
on how accurate you need a simulation to be, and what you are simulating.
Bigger workloads are obviously going to take longer.

We provide some boot tests which may be of benefit to you:
https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/boot-exit/README.md.
I'll outline below how to use them. They may be of benefit in your research:

```
git clone https://gem5.googlesource.com/public/gem5
cd gem5
git clone https://gem5.googlesource.com/public/gem5-resources
wget http://dist.gem5.org/dist/v20-1/kernels/x86/static/vmlinux-5.4.49
#This is the Linux Kernel.
wget
http://dist.gem5.org/dist/v20-1/images/x86/ubuntu-18-04/boot-exit.img.gz
#This is the disk image (it is ubuntu 18.04).
gzip -d boot-exit.img.gz
scons build/X86/gem5.opt # Use the -j flag to specify the number of cores
for faster compilation.


# The following runs the simulation. It takes the format `
gem5-resources/src/boot-exit/configs/run_exit.py vmlinux-5.4.49
boot-exit.img`
#  : `kvm`, `atomic`, `simple`, or `o3` --- As discussed before,
I think you want to use `simple`.
# : `classic`, `MI_example`, `MESI_Two_Level`, or
`MOESI_CMP_directory`
# : number of CPUs
# : `init` or `systemd` --- This will make a big difference to
simulation time, though `init` boots the kernel and literally nothing else.
The simulation will exit after kernel initialization. `systemd` continues
running the simulation to runlevel 5 and the user is logged in. As you can
imagine, the latter here is a much larger task than the former.

./builds/X86/gem5.opt gem5-resources/src/boot-exit/configs/run_exit.py
vmlinux-5.4.49 boot-exit.img simple classic 4 init
```

I hope this has been helpful.

kind regards,
Bobby
--
Dr. Bobby R. Bruce
Room 2235,
Kemper Hall, UC Davis
Davis,
CA, 95616

web: https://www.bobbybruce.net


On Fri, Oct 16, 2020 at 6:11 AM krishnan gosakan via gem5-users <
gem5-users@gem5.org> wrote:
>
> Hi Bobby,
> Thank you for your response. You have mentioned that linux takes longer
to boot. I just want to confirm if it is linux or ubuntu which is making
the boot time longer.
> I just found a GitHub repo (
https://github.com/cirosantilli/linux-kernel-module-cheat) which uses
buildroot instead of ubuntu and in my machine it takes only 5 or 6 minutes
to boot.
> So, if ubuntu (or linux) is the cause for slower boot, then can you
suggest any other way to speed up the booting process.
>
> Also, thank you for clarifying my doubt regarding KVM CPU. I was puzzled
why there is no stats after running kvm. So, I will be using
TimingSimpleCPU for my work. Thank you for suggesting this.
>
> On Fri, Oct 16, 2020 at 5:31 AM Gambord, Ryan 
wrote:
>>
>> Krishnan,
>>
>> I am having some trouble with getting X86KvmCPU to run on my server.
Could you share the commit hash you are using successfully?
>>
>> Ryan Gambord
>> 
>>
>>
>>
>> On Thu, Oct 15, 2020 at 1:49 AM krishnan gosakan via gem5-users <
gem5-users@gem5.org> wrote:
>>>
>>> [This email originated from outside of OSU. Use caution with links and
attachments.]
>>>
>>> Hi all.
>>> I hope everyone is doing good. I recently started working with gem5
simulator. I am trying to do some modification to the page table walker
(pagetable_walker). My problem is that booting linux under full system
emulation is very slow. It takes nearly 30 to 40 minutes to boot. I am
using AtomicSimpleCPU. I just want to know if this is the normal case for
this cpu type.
>>>
>>> I also tried with X86KvmCPU and I used the following command,
>>> $gem5_dir/build/X86/gem5.opt $gem5_config_dir/example/fs.py --kernel
$linux_dir/vmlinux --disk-image $cur_dir/qemu-image.img --caches --l2cache
--cpu-type X86KvmCPU --fast-forward 10
>>>
>>> This was faster than atomic simple cpu but the problem here is that all
stats are cleared up at the end. I shall attach an example stat file with
this email. In the stat file attached, you may see all the tlb stats
cleared. I wish to know the reason why stats are cleared in examples/fs.py
>>>
>>> I just want to 

[gem5-users] Re: SE Mode crashing with multithread workload

2020-10-15 Thread Bobby Bruce via gem5-users
Hey Farhad,

I've added a Jira ticket about this bug:
https://gem5.atlassian.net/browse/GEM5-798.

I'm afraid to say we don't have a solution right now, but we suspect it may
be similar to this bug: https://gem5.atlassian.net/browse/GEM5-332. You can
see the comments on this bug for more information.

Now that it's on Jira, and a known bug in gem5, we hope we can get to the
bottom of this and fix it in a future release. Keep track of the Jira
ticket for progress on this issue.

We are sorry for the inconvenience this is causing you, but as far as I
know, no one has a solution at this point in time.

Kind regards,
Bobby

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

web: https://www.bobbybruce.net


On Thu, Oct 15, 2020 at 8:00 AM Farhad Yusufali via gem5-users <
gem5-users@gem5.org> wrote:

> Hi all,
>
> Just following up on this. Any help would be appreciated!
>
> Thanks,
> Farhad
>
> --
> *From:* Farhad Yusufali
> *Sent:* October 13, 2020 9:37 PM
> *To:* gem5-users@gem5.org 
> *Subject:* SE Mode crashing with multithread workload
>
> Hi all,
>
> My gem5 version is fa70478413e4650d0058cbfe81fd5ce362101994. I'm trying
> to run a multithreaded workload in SE mode, but it's crashing. Here is my
> very simple workload:
>
> *#include* 
>
> *#include* 
>
> *using* *namespace* std;
>
>
> int sum[4];
>
>
> void* *thread*(void* sum) {
>
>   *for* (int i = 0; i < 1000; i++)
>
> *((int*)sum) += i;
>
>
>   *return* 0;
>
> }
>
>
> int *main*() {
>
>   sum[0] = sum[1] = sum[2] = sum[3] = 0;
>
>   pthread_t threads[4];
>
>
>   *for* (int tid = 0; tid < 4; tid++)
>
>   pthread_create([tid], NULL, thread, [tid]);
>
>
>   *for* (int tid = 0; tid < 4; tid++)
>
>   pthread_join(threads[tid], NULL);
>
>
>   cout << sum [0] << " " << sum[1] << " " << sum[2] << " " << sum[3] <<
> endl;
>
>   *return* 0;
>
> }
>
>
>
> When I run it with:
>
> build/X86/gem5.opt --debug-flags=PseudoInst configs/example/se.py
> --cmd=./multi --num-cpus=4 --ruby --cpu-type=DerivO3CPU
>
> I get:
> panic: panic condition !clobber occurred: EmulationPageTable::allocate:
> addr 0x7778d000 already mapped
>
> I found an existing thread that discusses this but no update was posted:
> https://www.mail-archive.com/gem5-users@gem5.org/msg17926.html
>
> Was this ever resolved?
>
> Thanks,
> Farhad
> ___
> 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: gem5 full system emulation is slow - want suggestions to fasten bootup

2020-10-15 Thread Bobby Bruce via gem5-users
Yes, I did :).

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

web: https://www.bobbybruce.net


On Thu, Oct 15, 2020 at 1:48 PM Gabe Black  wrote:

> I think you mean the TimingSimpleCPU, not the AtomicTimingCPU.
>
> Gabe
>
> On Thu, Oct 15, 2020 at 1:41 PM Bobby Bruce via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Hey Krishnan,
>>
>> Linux does take about 45 minutes or so to run using AtomicSimpleCPU.
>> You're not doing anything wrong in this regard. I'm afraid there's no
>> information I can give you on making it faster. Anything to make this
>> significantly faster, would be sacrificing the accuracy of simulation. This
>> a problem, across the board, for architecture simulators.
>>
>> KVMCPU is certainly faster but, given what else you've been saying, you
>> wish to do real simulations and gather statistics. The KVMCPU is not the
>> right tool for this. It doesn't simulate anything. It doesn't have timing
>> information. AtomicSimpleCPU is also not suitable. I'd recommend using the
>> AtomicTimingCPU, which will give you a decent simulation and stats output.
>>
>> Kind regards,
>> Bobby
>> --
>> Dr. Bobby R. Bruce
>> Room 2235,
>> Kemper Hall, UC Davis
>> Davis,
>> CA, 95616
>>
>> web: https://www.bobbybruce.net
>>
>>
>> On Thu, Oct 15, 2020 at 1:50 AM krishnan gosakan via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> Hi all.
>>> I hope everyone is doing good. I recently started working with gem5
>>> simulator. I am trying to do some modification to the page table walker
>>> (pagetable_walker). My problem is that booting linux under full system
>>> emulation is very slow. It takes nearly 30 to 40 minutes to boot. I am
>>> using AtomicSimpleCPU. I just want to know if this is the normal case for
>>> this cpu type.
>>>
>>> I also tried with X86KvmCPU and I used the following command,
>>> $gem5_dir/build/X86/gem5.opt $gem5_config_dir/example/fs.py --kernel
>>> $linux_dir/vmlinux --disk-image $cur_dir/qemu-image.img --caches --l2cache
>>> --cpu-type X86KvmCPU --fast-forward 10
>>>
>>> This was faster than atomic simple cpu but the problem here is that all
>>> stats are cleared up at the end. I shall attach an example stat file with
>>> this email. In the stat file attached, you may see all the tlb stats
>>> cleared. I wish to know the reason why stats are cleared in examples/fs.py
>>>
>>> I just want to know if there is any way to fasten boot up with an atomic
>>> simple cpu or is this normal? My work is basically to change the kernel,
>>> compile it, run under gem5 and check the stats.
>>> Any kind of suggestions are most appreciated.
>>> Thank you.
>>> --
>>> Regards,
>>> Krishnan.
>>> ___
>>> 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 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: gem5 full system emulation is slow - want suggestions to fasten bootup

2020-10-15 Thread Bobby Bruce via gem5-users
Hey Krishnan,

Linux does take about 45 minutes or so to run using AtomicSimpleCPU. You're
not doing anything wrong in this regard. I'm afraid there's no information
I can give you on making it faster. Anything to make this significantly
faster, would be sacrificing the accuracy of simulation. This a problem,
across the board, for architecture simulators.

KVMCPU is certainly faster but, given what else you've been saying, you
wish to do real simulations and gather statistics. The KVMCPU is not the
right tool for this. It doesn't simulate anything. It doesn't have timing
information. AtomicSimpleCPU is also not suitable. I'd recommend using the
AtomicTimingCPU, which will give you a decent simulation and stats output.

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

web: https://www.bobbybruce.net


On Thu, Oct 15, 2020 at 1:50 AM krishnan gosakan via gem5-users <
gem5-users@gem5.org> wrote:

> Hi all.
> I hope everyone is doing good. I recently started working with gem5
> simulator. I am trying to do some modification to the page table walker
> (pagetable_walker). My problem is that booting linux under full system
> emulation is very slow. It takes nearly 30 to 40 minutes to boot. I am
> using AtomicSimpleCPU. I just want to know if this is the normal case for
> this cpu type.
>
> I also tried with X86KvmCPU and I used the following command,
> $gem5_dir/build/X86/gem5.opt $gem5_config_dir/example/fs.py --kernel
> $linux_dir/vmlinux --disk-image $cur_dir/qemu-image.img --caches --l2cache
> --cpu-type X86KvmCPU --fast-forward 10
>
> This was faster than atomic simple cpu but the problem here is that all
> stats are cleared up at the end. I shall attach an example stat file with
> this email. In the stat file attached, you may see all the tlb stats
> cleared. I wish to know the reason why stats are cleared in examples/fs.py
>
> I just want to know if there is any way to fasten boot up with an atomic
> simple cpu or is this normal? My work is basically to change the kernel,
> compile it, run under gem5 and check the stats.
> Any kind of suggestions are most appreciated.
> Thank you.
> --
> Regards,
> Krishnan.
> ___
> 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: FS mode partial reset stats

2020-10-06 Thread Bobby Bruce via gem5-users
Hey Maxime,

As far as I can tell, this is not expected behavior and may be a bug. To
properly log this, and recreate it, could I bother you for a few more
pieces of information?:

- What version of gem5 are you using?

- What OS are you using and what compiler did you compile with (probably
not relevant but good for us to know).

- As much as you're willing to disclose, what are you running exactly? If
you can, it'd be good if you could provide your config and the exact gem5
command you are using.

Kind regards,
Bobby

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

web: https://www.bobbybruce.net


On Tue, Oct 6, 2020 at 8:54 AM maxime.france-pillois--- via gem5-users <
gem5-users@gem5.org> wrote:

> Hi all,
>
> Running an ARM cpu based system in Full System mode, I want to reset stats
> during simulation using M5Ops " m5 reset_stats".
> While almost all stat counters are resetted, some seem to keep there
> previous values. Among them, all system.cpu.dcache stats.
> Is this behavior expected? And if it is, can you tell me what stats are
> not resetted by the m5 op reset_stats?
> Thanks,
>
> Maxime
> ___
> 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: How to use custom gpu models with gem5 ?

2020-10-06 Thread Bobby Bruce via gem5-users
We have a SystemC interface in gem5.  I'm afraid to say it's not very well
documented but that's what you'd want to use.

Please feel free to get back to us with specific usage questions.

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

web: https://www.bobbybruce.net


On Tue, Oct 6, 2020 at 8:07 AM hgedek--- via gem5-users 
wrote:

> Hi all,
>
> I'm working at a gpu company and we have our gpu modelling. We were using
> qemu based platform to test our models but we wish to start to use gem5. In
> our platform we can integrate our model using tlm (systemc) or a custom
> interface developed based on qemu interface.
>
> So, what is the correct method for gem5 ? I wish to learn and start from
> one point as soon as possible so we can start to use gem5.
>
> Thanks
> ___
> 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] gem5 v20.1 released!

2020-09-30 Thread Bobby Bruce via gem5-users
Dear all,

gem5 v20.1.0.0 has officially been released!

Using `git clone https://gem5.googlesource.com/public/gem5` will get you
the latest version. Please note that HEAD now points towards our new
`stable` branch, where gem5 v20.2 exists. The old master branch will be
fully removed soon.

There have been a lot of changes since gem5 v20.0, which we have
highlighted in our release-notes:
https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/RELEASE-NOTES.md.
Please familiarize yourself with these changes, particularly API changes
which may impact how you interact with gem5.

Jason Lowe-Power has written a blog post about gem5 20.1,
http://www.gem5.org/project/2020/10/01/gem5-20-1.html, which goes into
detail about what has been included in this release, and provides a
leaderboard ranking community members by code contributions and number
reviews.

We'd also like to remind the community of our paper "The gem5 simulator:
Version 20.0+" (available at https://arxiv.org/abs/2007.03152), which has
recently been updated. It outlines gem5 development since its initial
release 9 years ago

We wish to thank everyone who has contributed to the release of gem5 20.1.
It is very much appreciated. We look forward to your continued support in
the development of gem5 20.2!

Kind regards,
Bobby

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

web: https://www.bobbybruce.net
___
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: GCN3 docker file missing

2020-08-31 Thread Bobby Bruce via gem5-users
Yes, the gem5-resources was wrong, but I think this commit fixes the issues
here? https://gem5-review.googlesource.com/c/public/gem5-resources/+/33555

It has just been merged, so if you pull the latest version I think this
should compile.

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

web: https://www.bobbybruce.net


On Mon, Aug 31, 2020 at 11:26 AM Matt Sinclair via gem5-users <
gem5-users@gem5.org> wrote:

> Kyle, can you please fix this (the Makefile) for square?  Or update the
> instructions in the way Dan described above?
>
> Matt
>
> On Mon, Aug 31, 2020 at 11:51 AM Daniel Gerzhoy via gem5-users <
> gem5-users@gem5.org> wrote:
>
>> Looks like that command needs to be updated, or the makefile.
>>
>> Try the command without "square" at the end (" docker run --rm -v
>> $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
>> 
>> make ")
>> If you look in the makefile the first rule is "gfx8-apu" not "square" so
>> you could also change the command to be "make gfx8-apu"
>>
>> You are failing to compile with g++ because you need to use hipcc (the
>> hip compiler), which if you look at the makefile it is doing for you (along
>> with the important --amdgpu-target=gfx801 flag.
>>
>> Hope this helps,
>>
>> Dan
>>
>> On Mon, Aug 31, 2020 at 11:46 AM Samaksh Sethi via gem5-users <
>> gem5-users@gem5.org> wrote:
>>
>>> Ok so I forgot to mention that the gem5-resources repository (
>>> https://gem5.googlesource.com/public/gem5-resources/) doesn't have the
>>> makefile in the main folder, it's actually in gem5-resources>>src>>square,
>>> so I can't just run the command (docker run --rm -v
>>> $PWD/gem5-resources:/gem5-resources -w /gem5-resources/src/square 
>>> 
>>> make square) directly or it just says ""make: *** No rule to make
>>> target 'square'.  Stop.""
>>>
>>> About square.out, I'm unable to make that too directly with gcc/g++
>>> because of the error that I'm getting which is the same as when I run docker
>>> run --rm -v $PWD/gem5-resources:/gem5-resources -w
>>> /gem5-resources/src/square  make square ""square.cpp:24:29:
>>> fatal error: hip/hip_runtime.h: No such file or directory compilation
>>> terminated."" I can't find the file myself too, I did look in the makefile
>>> folder (gem5-resources>>src>>square), I couldn't find the sources.mk
>>> file and so I couldn't find any $INCLUDE tag, so I couldn't understand
>>> where to look.
>>>
>>> Lastly, about docker files, I tried using the method you suggested with
>>> docker run -it  bash, let me know if there's a better method or
>>> any other options I should also be using. Also, about the --rm docker
>>> option, what exactly does that remove, the docker image I created/compiled
>>> with docker build -t  (approx 3.1GB) or just this instance of
>>> the image? because if it deletes the compiled image, then it would be
>>> really time consuming to recompile it everytime I need to test a change
>>> (eg-running make square multiple times). Also let me know if I'm using the
>>> terms image/container/instance correctly or not.
>>> ___
>>> 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 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] gem5 v20.0.0.3 Hotfix Release

2020-07-04 Thread Bobby Bruce via gem5-users
Dear all,

On July 1st we were made aware of a bug within gem5-20.0, reported by Hsuan
Hsu here: https://gem5.atlassian.net/browse/GEM5-658. The bug resulted in
gem5 crashing when calling m5ops, using the ARM ISA. Thankfully the source
of this bug was found and fixed (here:
https://gem5-review.googlesource.com/c/public/gem5/+/30914). Last night, on
July 3rd, a hotfix was pushed to the master branch, thereby officially
releasing gem5 v20.0.0.3. Anyone wanting this fixed version of gem5 should
pull the latest revision of gem5 from the master branch.

Thank you to everyone in the gem5 community who helped identify and fix
this issue.

Kind regards,
Bobby

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

web: https://www.bobbybruce.net
___
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: Address incrementing by 8 instead of 4 for int when SimpleMemory is configured as SPM

2020-06-17 Thread Bobby Bruce via gem5-users
Is the problem you are facing in the gem5 code or your guest-code running
in the simulation?

This looks to be a problem in the guest-code. You're calling pointer++
twice, which should, naturally, increment the address by 8. Based on this
information, I do not know why the first incrementation fails to print the
correct address.

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

web: https://www.bobbybruce.net


On Tue, Jun 16, 2020 at 3:26 PM Muhammad Aamir via gem5-users <
gem5-users@gem5.org> wrote:

> Hi everyone,
>
> I have made a system that includes a scratchpad memory(using the class
> Simple Memory as SPM) at the same level as a level 2 cache. The problem
> that am facing is that I can read and write to it in increments of 8 rather
> than 4 for type int, i.e. Pointer++ gives wrong value at an address work
> while Pointer = Pointer + 2 gives me the correct data of a location.
>
> (Pointer++ doesnot cause the address to be incremented unless I call it
> two times)
>
> Would someone kindly guide me as to why this is the case and a
> possible solution. One reason(which is possibly wrong) that I may have, is
> that I cannot use the SimpleMemory class directly, and I have to derive
> another class from it to use it?
>
>
> Attach is a screenshot, when i store an array in the Scratchpad memory. As
> you can see the address is not being incremented for every ++
>
>
> https://drive.google.com/file/d/11arSjlXx1veBTwdmwANl3VhZqLjbIyuh/view?usp=sharing
>
>
> Any help would be highly appreciated.
>
> Thanks
> ___
> 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] [Suggestion] Replace gem5-users mailing-list with Discourse

2020-06-09 Thread Bobby Bruce via gem5-users
Dear all,

In an effort to better support the gem5 community, there has been a
suggestion that we drop the gem5-users mailing list and replace it with
Discourse, https://www.discourse.org/about, a web-based discussion
platform. I'm writing this email to propose this to the community and ask
for feedback on the matter.

We have noticed that using mailing lists as our primary communication
platform is problematic. Sending an email to a list can be daunting
experience, requiring an etiquette many are not accustom to. I'm sure I'm
not the only one who feels like they are unduly bothering a large number of
people when posting to a list (like I'm doing right now :) ). This is, of
course, an unfortunate hurdle for many to get over when they encounter
problems using gem5, particularly those new to the project. I've come to
believe mailing lists are simply not a very good technology for fostering
community engagement and helping those who are running into difficulties.
Mailing lists are also difficult to search, and lack proper formatting
mechanisms to neatly display attributes such as code and output logs.

Looking around at alternative technologies available, Discourse appears to
be a suitable replacement. For those unaware, Discourse is (essentially) a
revamp of messaging forums. It is an increasingly popular platform for
users and developers in open source projects to communicate with one
another (see LLVM's discourse as an example: https://llvm.discourse.group).
All-in-all, I think it's a well-designed product and contains all the
features we'd expect and need to get our work done. I can see no immediate
downsides to using it, though feedback from the community on the matter
would be greatly appreciated, particularly from those who have used
Discourse before. Dissenting opinions on the whole idea of moving away from
the gem5-user's mailing list are also welcome.

So, let me know what you think! :)

Please note, regardless as to any decision made, we will continue the use
of the gem5-dev mailing list for technical discussions for the foreseeable
future.

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

web: https://www.bobbybruce.net
___
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: benchmark exits with last active thread context

2020-06-08 Thread Bobby Bruce via gem5-users
Hey Shougang,

Can you provide us with a few more details?:

- The version of gem5 you are using.
- The exact command you are executing.
- The benchmarks used (and where they may be obtained, if possible).
- The exact output, including error, you received.

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

web: https://www.bobbybruce.net


On Sun, Jun 7, 2020 at 11:28 AM Shougang Yuan via gem5-users <
gem5-users@gem5.org> wrote:

> Hi, All,
>
> I am trying to run some benchmarks with gem5, and it always exits with the
> last active thread context. But actually, the program has never been
> executed. Any hints about this? THanks a lot.
>
> Best regards.
> Shougang
> ___
> 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: How Increase ROI time at gem5?

2020-06-08 Thread Bobby Bruce via gem5-users
Furat,

It's been several years since I've played with the PARSEC suite, but some
applications can be run (or built?) in a way that increases or decreases
their execution time. I know, for example, bodytrack can be tweaked to be
slower or faster given depending on how accurate you want your tracking to
be. This may be an avenue to increase your ROI times. Alternatively, you
could increase the test size. Are the simmedium test instances too big too
run?

Please let me know if this answers your question.

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

web: https://www.bobbybruce.net


On Tue, Jun 2, 2020 at 1:16 PM Furat Al-Obaidy via gem5-users <
gem5-users@gem5.org> wrote:

> Hi ,
>
> My inquiry , when i ruuning PARSEC benchmarks such as bodytrack always
> gave me same ROI  at simsmall =0.73sec! for bloackholes,
> how can increase the time ROI to more than five seconds for example ,
> please ? my gem5 commands :
>
> *./build/x86/gem5.opt configs/example/fs.py --num-cpus=16 -b *bodytrack* 
> --cpu-type=TimingSimpleCPU
> --caches --l2cache --l2_size=512kB --l1i_size=32kB --l1d_size=32kB
> --l1d_assoc=4 --l1i_assoc=4 --l2_assoc=16 --num-l2caches=1
> --kernel=/home/fur/newgem5/full_system_images_x86/binaries/vmlinux_2.6.27-gcc_4.3.4
> --take-checkpoints=80,500 -W 500
> --checkpoint-at-end *
>
>  I appreciate your help .
>
> best regards,
>
> --
> *Mr.Furat Al-Obaidy *
> *Electrical & Computer Engineering Department*
> *Ryerson University-Canada.*
>
>
>
>
> ___
> 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

  1   2   >