On Mar 12, 2013, at 7:36 AM, Tim Northover <t.p.northover at gmail.com> wrote:> Hi Renato, > >> The test is initializing srand(1), so in theory, it shouldn't be different >> between compilers, since Clang is using the same libraries. > > If Clang and GCC disagree on the same source, same machine and with > the same libraries, that certainly is odd. But it doesn't make > checking against the output of a particular libc's RNG any better an > idea in general.I agree; I'm pretty sure that the only guarantee is that for a given implementation of stand, if you initialize it with the same seed, you get the same sequence. There is no "correct" sequence. -- Marshall Marshall Clow Idio Software <mailto:mclow.lists at gmail.com> A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait). -- Yu Suzuki
On 12 March 2013 14:53, Marshall Clow <mclow.lists at gmail.com> wrote:> I agree; I'm pretty sure that the only guarantee is that for a given > implementation of stand, if you initialize it with the same seed, you get > the same sequence. > > There is no "correct" sequence. >I'm not suggesting a correct sequence, I'm just looking for a way to turn off the verification against the reference output and force LNT to run GCC for the "native" output. cheers, --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130312/969f61ab/attachment.html>
----- Original Message -----> From: "Renato Golin" <renato.golin at linaro.org> > To: "Marshall Clow" <mclow.lists at gmail.com> > Cc: "LLVM Dev" <llvmdev at cs.uiuc.edu> > Sent: Tuesday, March 12, 2013 10:22:41 AM > Subject: Re: [LLVMdev] LNT BenchmarkGame > > > > On 12 March 2013 14:53, Marshall Clow < mclow.lists at gmail.com > > wrote: > > > > > > > I agree; I'm pretty sure that the only guarantee is that for a given > implementation of stand, if you initialize it with the same seed, > you get the same sequence. > > There is no "correct" sequence. > > > > I'm not suggesting a correct sequence, I'm just looking for a way to > turn off the verification against the reference output and force LNT > to run GCC for the "native" output.Can't we just paste in a RNG so that we'll get the same output on all systems (and can still use the reference output)? -Hal> > > cheers, > --renato > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >