On Wed, 20 Aug 2014, Andreas Hansson wrote:
On Aug. 20, 2014, 5:06 p.m., Nilay Vaish wrote:
The patch seems fine. I think we should declare rngs to be thread local
to begin with and have different seeds for each of these rng to avoid any
correlation.
Agreed. Finding the thread boundaries might be tricky, so I propose we
create a rng per Sim/MemOjbect and seed it with some form of hash of the
object name. What do you think?
rng per sim object sounds too much, though the state would probably be a
small number of bytes. And then there might be code that is not part of
any sim object but needs random numbers. I suggest we declare
random_mt with __thread annotation, like we do for the curEventQueue
variable.
--
Nilay
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev