| Date: | Thu, 30 Oct 2008 10:03:31 +1300 |
|---|---|
| From: | "Fuad Tabba" <fuad@xxxxxxxxxxxxxxxxx> |
| Subject: | Re: [Gems-users] How to replicate simulation runs exactly |
|
Hi Dan (and everyone else), Setting the g_RANDOM_SEED to 1 doesn't seem to be working. Two runs of the simulation produce different timing results. I also searched through the code, srandom is always initialized by g_RANDOM_SEED, and I didn't find an instace where setting g_RANDOM_SEED to 0 would result in passing time(NULL) instead of the seed provided... I've also attached gdb to simics/ruby before loading ruby, with breakpoints set on srandom,srand,random and rand to verify that srandom does indeed get the value I've set for g_RANDOM_SEED, and that it gets called before any calls to random, and my assumptions seem to be correct. I am using GEMS2.1/ATMTP btw... Any other ideas or suggestions? Thanks. Cheers, /fuad On Thu, Oct 30, 2008 at 8:21 AM, Fuad Tabba <fuad@xxxxxxxxxxxxxxxxx> wrote: Thanks Dan. |
| [← Prev in Thread] | Current Thread | [Next in Thread→] |
|---|---|---|
| ||
| Previous by Date: | Re: [Gems-users] How to replicate simulation runs exactly, Fuad Tabba |
|---|---|
| Next by Date: | Re: [Gems-users] How to replicate simulation runs exactly, Fuad Tabba |
| Previous by Thread: | Re: [Gems-users] How to replicate simulation runs exactly, Fuad Tabba |
| Next by Thread: | Re: [Gems-users] How to replicate simulation runs exactly, Fuad Tabba |
| Indexes: | [Date] [Thread] |