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 <[email protected]>
Sent: Thursday, June 1, 2023 11:13 AM
To: The gem5 Users mailing list <[email protected]>
Cc: Thiago Rodrigues <[email protected]>
Subject: [EXT] [gem5-users] Re: Question about running the hpca-2023 tutorial
APL external email warning: Verify sender
[email protected]<mailto:[email protected]>
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.
The new Python API is very friendly but I could not use it.
Em qua., 31 de mai. de 2023 às 10:31, Beser, Nicholas D. via gem5-users
<[email protected]<mailto:[email protected]>> escreveu:
I was reviewing the tutorial with the hope that I could setup something similar
for a class that I am teaching at Johns Hopkins Whiting School of Engineering.
Is there a way of running this locally on my linux system. I have gem5
installed, and it runs the basic routines described in the getting started
documentation. When I try to run the tutorial I get the following error:
~/gem5$ build/X86/gem5.opt ../gem5-tutorial-codespace/materials/hello-world.py
gem5 Simulator System. https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 version 22.1.0.0
gem5 compiled May 30 2023 13:05:58
gem5 started May 31 2023 09:12:10
gem5 executing on besernd1-vm5, pid 862230
command line: build/X86/gem5.opt
../gem5-tutorial-codespace/materials/hello-world.py
ImportError: cannot import name 'obtain_resource' from
'gem5.resources.resource' (unknown location)
At:
../gem5-tutorial-codespace/materials/hello-world.py(6): <module>
build/X86/python/m5/main.py(597): main
The github link: https://github.com/gem5-hpca-2023/gem5-tutorial-codespace does
not give precise instructions on integrating any changes required back into
gem5. I was wondering if there was a clearer procedure.
Thank-you,
Nick Beser
_______________________________________________
gem5-users mailing list -- [email protected]<mailto:[email protected]>
To unsubscribe send an email to
[email protected]<mailto:[email protected]>
--
Me. Thiago R. B. S Soares
Professor do Instituto Federal do Piauí - IFPI
Campus São Raimundo Nonato
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]