SimGrid (2.92) NOT RELEASED YET; urgency=low
Alpha 3 on the path to SimGrid 3
+ [Arnaud]
+ (gras)
+ - New! First try of benchmarking macros.
+ - New! First try so that gras_stub_generator generate deployment and
+ remote compilation helpers.
+ (msg)
+ - Bugfix: Initialization fix in msg_test.
[Martin]
+ (surf)
+ - Bugfix: applied patch to lexer so that it doesn't need a huge heap.
(xbt)
- Bugfix: let dicts work with NULL content (_foreach didn't) and cleanups
(gras)
{
int i,j,k,l;
double *A,*B,*C;
- int n = 500;
+ int n = 100;
double start = 0.0;
+ double now = 0.0;
gras_init(&argc, argv, NULL);
B = malloc(n*n*sizeof(double));
C = malloc(n*n*sizeof(double));
- INFO1("Before computation: %lg", start=gras_os_time());
+ start=now=gras_os_time();
+
+ INFO1("Before computation: %lg", start);
for(l=0; l<4; l++) {
+ now=gras_os_time();
GRAS_BENCH_ONCE_RUN_ONCE_BEGIN();
for(i=0; i<n; i++)
for(j=0; j<n; j++) {
C[i*n+j] += A[i*n+k]*B[k*n+j];
GRAS_BENCH_ONCE_RUN_ONCE_END();
+ now=gras_os_time()-now;
+ INFO2("Iteration %d : %lg ", l, now);
}
- start = gras_os_time()-start;
- INFO2("After computation: %lg; Duration: %lg ", gras_os_time(), start);
+ now=gras_os_time()-start;
+ INFO2("After computation: %lg; Duration: %lg ", gras_os_time(), now);
return 0;
}