darchr / gem5 Goto Github PK
View Code? Open in Web Editor NEWFork of main gem5 repo: https://gem5.googlesource.com/public/gem5/
License: BSD 3-Clause "New" or "Revised" License
Fork of main gem5 repo: https://gem5.googlesource.com/public/gem5/
License: BSD 3-Clause "New" or "Revised" License
I did this. gem5 is clearly getting the 4 bytes I want, but verilator is not applying the signal.... either something is wrong with my chisel or .....idk. need more time on this.
We need to add a way to allow users to see why the test is failing. For instance, we might want to change the following code in memory_tests/simple-run.py:
if exit_event.getCause() != "maximum number of loads reached":
exit(1)
to
if exit_event.getCause() != "maximum number of loads reached":
if testlib.verbose: print("Test failed for reason " + exit_event.getCause())
exit(1)
We need to add new workloads (considering they increase the coverage of tests) in the testing infrastructure. Few examples: compression and llvm benchmarks.
Write tests that evaluate simulated performance of various parts, in order to spot unexpected changes to simulated behavior resulting from code changes.
To fix the 410.bwaves spec benchmark error while running it with LTAGE predictor.
config script:
1.Use Spec_run.py and spec_processes.py
2.Set branchPredictor to LTAGE in the spec_run.py.
Run script
1.Use run_gem5_experiments.sh.
2.Set workload: by making variable bms = 410.bwaves : The used executables and input files
3. Set (cpu): cpus to any of this or all of this: DefaultO3.O3_W256, O3_W2K.
4. Set memory : SingleCycle
See https://travis-ci.com/darchr/gem5/jobs/172481481
I think this is the problem: https://stackoverflow.com/questions/45070588/c11-put-time-is-not-a-member-of-std-on-modern-g
This would be a good first commit for @rutuoza99 or @takekoputa! Though, before you get started, search gerrit to make sure that it hasn't already been fixed.
You can create a new branch (e.g., bugfix/fix-clang-build), try your fix, then push to darchr/gem5. This will kick off a travis build that will be available here: https://travis-ci.com/darchr/gem5.
Feel free to respond to this post if you have any questions!
FlexCPU currently behaves as if there is an infinite (or at least as large as inflightInsts buffer) buffer between all stages. This prevents us from modelling any pipeline stalls from downstream slowdowns.
The Thread/Core relationship is many-to-one by design, and should theoretically work for SMT right now, but is entirely untested.
When creating a test (e.g., in tests/gem5/*test.py) it would be good to include a description in the test information. Then, when the test fails, the description could help the user know what part of the code to look in.
There's a changeset on the flexcpu branch that allows SimpleMemory to be connected to more than one master. This should be tested then pushed to the mainline.
Tests for the ruby cache system need to be migrated.
We need to migrate the switcheroo tests to validate CPU switch-off behavior.
Not actually slow right now, running side-by-side with O3/Minor, but improvements should be possible.
Ideas:
Related to improving python interface more generally.
One confusion is that there are many places for default values for SimObjects. If we forced these files to truly by just description files, it may make things better.
The downside is that we would have to extend every single object in the Python library system, which would introduce more boilerplate code. So, maybe this is a bad idea.
Migrate existing GPU component tests to be included in a more unified test suite
The Resource system is nonintuitive and has very strange behaviors, such as inconsistent latencies, etc. Needs a proper rewrite.
Linker errors!
Make tests for learning gem5 scripts.
configs/learning_gem5/part1/simple.py
configs/learning_gem5/part1/two_level.py
configs/learning_gem5/part2/hello_goodbye.py
configs/learning_gem5/part2/run_simple.py
configs/learning_gem5/part2/simple_cache.py
configs/learning_gem5/part2/simple_memobj.py
This is possibly part 4 or 5 in the book. I don't remember ;).
You'll also have to modify the way gem5 is built for this because the protocols are compiled into gem5. If you want to change the protocol, you have to rebuild gem5.
Want to make a directory in tests/gem5
called learning_gem5
. In that directory you should have three new files called part1_test.py
, part2_test.py
, and part3_test.py
. Then, inside each of the *_test.py
files, you will call gem5_verify_config()
with the proper parameters to test each of the config scripts shown above.
There are a huge number of x86 SIMD instructions.
Most are implemented in gem5 (though they haven't been tested).
However, they are generally microcoded and only work functionally.
It would be a great project to implement these instructions using the new vector register implementation in the CPU models.
E.g., https://gem5-review.googlesource.com/c/public/gem5/+/13519
Realview test needs to be migrated to test suite
This would be useful to know if it's making forward progress.
Figure out how to easily set up a disk image with workloads on it.
We want this to be automated. Something like a Dockerfile or a Vagrantfile. List the things we want on the disk image and it "just happens".
Not sure if all of this is possible to automate.
Another possibility is to install docker inside the disk image. Then, use docker images as the benchmark images.
It would be nice if a test suite existed which could determine with high confidence that a particular CPU model respected certain memory consistency models.
Probably difficult to do in a deterministic manner without specific hooks into the CPU model, but there should be multithreaded samples which are probabilistically likely to create violations of memory consistency models that the CPU has not respected.
To view and be able to check the progress of FlexCPU (whether it is progressing properly) while running benchmarks.
This is related to modeling realistic processors. What FU pool kind of thing do we need?
This has come up a number of times on the mailing list. It needs to be fixed.
Before pushing the CPU and memory tests, it would be good for someone else to test them (preferably not on amarillo).
To do this, go to the each changeset on gerrit and cherry pick it onto the "upstream" branch on darchr/gem5 or on master on gem5.googlesource.com.
https://gem5-review.googlesource.com/c/public/gem5/+/15855
https://gem5-review.googlesource.com/c/public/gem5/+/15856
https://gem5-review.googlesource.com/c/public/gem5/+/15857
https://gem5-review.googlesource.com/c/public/gem5/+/15835
https://gem5-review.googlesource.com/c/public/gem5/+/15836
Once you have run the tests and seen that they pass, you can give the review request a +2!
Add a new verifier that checks specific statistics in the stats files.
The memtest would be a good place to start on this. See Sandburg's comment on https://gem5-review.googlesource.com/c/public/gem5/+/15835
Currently squash and commit events are unconstrained and take no simulated time. Some studies may want to observe the impact of either of these things (e.g. when speculation is often wrong, or expensive when wrong).
Want a straightforward way to run experiments that is well documented.
Some stats were broken last we checked. They need to be validated and issues fixed.
When FlexCPU requests a branch prediction when the instruction buffer is full, it seems that the branch predictor depth is taken but not released when the following instruction fails to be added to the buffer. Need to investigate later.
And get these workloads running.
Document what's needed to do this.
Figure out kernel version from Pouya
Create disk image
A size
B size
C size
FlexCPU does memory dependence tracking extremely conservatively right now. While this should theoretically guarantee correct behavior, it leaves us room for performance improvements.
We want to be able to have a single executable with all of the protocols compiled into it. Then it would just take changing the python to use a different protocol.
from MESI_two_level import *
)
MESI_two_level_L1Cache
to just L1Cache
.There are some static enums that are create for the MachineID and MachineType. These include bitvectors that must be less than 64 entries.
MessageType will also have this problem, but this might be overcome with prepending names like MESI_Two_Level_MsgType.
We need to add support to test Linux boot (preferably latest kernels).
Noticed that mem barriers have dependencies on earlier barriers and refs, but mem refs don't have dependencies on barriers in populateDependencies(). This needs to be addressed, but probably should be in its own patch since that piece of code is touched by more than one commit right now.
See https://travis-ci.com/darchr/gem5/jobs/172481470.
I'm not sure what the exact solution should be, yet.
Currently, tests from a suite must be run one at a time. The ability to run all the tests in a suite is more convenient.
I think this makes sense?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.