Add seed option to ruby_random_test.py
Review Request #361 - Created Dec. 22, 2010 and submitted
| Information | |
|---|---|
| Nilay Vaish | |
| gem5 | |
| Reviewers | |
| Default | |
This patch adds an option to the script ruby_random_test.py for setting the parameter m_random_seed used for randomizing delays in the memory system.
The number of cycles required for executing a particular number of loads changes with different seeds.
I assume that this works. One thing that I will say is that we should probably unify random number generators. I've imported the Mersenne Twister RNG (which is far better than the ones in libc) into the src/base directory, but we don't have a mechanism for setting the seed (though we should). Any chance you'd be interested in working on this? Should be pretty easy to do.
Posted (Jan. 3, 2011, 1:08 a.m.)
Hi Nilay, This feature is long overdue, but I believe it is best if we add the command line to Ruby.py. That way all ruby configuration, including ruby_random_test, can use this feature. Brad
Review request changed
Updated (Jan. 3, 2011, 1:54 a.m.)
Change Summary:
Brad, I was waiting for you to comment on where you would prefer this option to go. I have made the change. I did some minimal testing using ruby_random_test.py. The number of ticks for a fixed number of loads change when I supply different numbers as random seeds.
Diff: |
Revision 3 (+5 -1) |
|---|
