Displaying 2 results from an estimated 2 matches for "random_nextdouble".
2009 Jan 31
2
[LLVMdev] -msse3 can degrade performance
...k2
Composite Score: 548.53
FFT Mflops: 609.87 (N=1024)
SOR Mflops: 497.92 (100 x 100)
MonteCarlo: Mflops: 126.62
Sparse matmult Mflops: 604.02 (N=1000, nz=5000)
LU Mflops: 904.19 (M=100, N=100)
The relevant code is:
double Random_nextDouble(Random R)
{
int k;
int I = R->i;
int J = R->j;
int *m = R->m;
k = m[I] - m[J];
if (k < 0) k += m1;
R->m[J] = k;
if (I == 0)
I = 16;
else I--;
R->i = I;
if (J == 0)
J = 16 ;
el...
2009 Feb 04
0
[LLVMdev] -msse3 can degrade performance
...20 (N=1000, nz=5000)
> LU Mflops: 907.20 (M=100, N=100)
>
> Note that llvm-gcc is achieving almost 280MFLOPS on MonteCarlo here,
> far
> higher than any competitors, and it is outperforming gcc overall.
Great! Do you see the same results with LTO? Inlining
Random_nextDouble from random.c to MonteCarlo.c should be a big win.
-Chris