3 /* chrono - demo of GRAS benchmarking features */
5 /* Copyright (c) 2005 Martin Quinson, Arnaud Legrand. All rights reserved. */
7 /* This program is free software; you can redistribute it and/or modify it
8 * under the terms of the license (GNU LGPL) which comes with this package. */
12 XBT_LOG_NEW_DEFAULT_CATEGORY(Chrono,"Messages specific to this example");
15 /* Function prototypes */
16 int multiplier (int argc,char *argv[]);
18 int multiplier (int argc,char *argv[])
23 gras_init(&argc, argv, NULL);
25 A = malloc(n*n*sizeof(double));
26 B = malloc(n*n*sizeof(double));
27 C = malloc(n*n*sizeof(double));
29 INFO1("Before computation : %lg", gras_os_time());
40 C[i*n+j] += A[i*n+k]*B[k*n+j];
42 INFO1("After computation : %lg", gras_os_time());