Re: [eigen] Help needed to run a benchmark on many machines

[ Thread Index | Date Index | More Archives ]

Oh - I guess you mean in case a matrix got allocated at the same address
as a previous one, and not initialized. But the benchmark initializes
all the matrix coefficients anyway, so IIUC it should be pretty
deterministic in this respect.

For example this code:
    double starttime = time();
    for (int i = 0; i < iters_at_a_time; i++) {
      c = a * b;
    double endtime = time();
is probably not the most representative one, or maybe it depends a lot on what a function does. I think for one time calculations the above loop won't tell much since a, b and c are already in cache for all but the first iteration so memory transfers won't show up. Maybe this is why in some cases one doesn't see much difference between different block sizes.

Mail converted by MHonArc 2.6.19+