X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ef99a405745deb2eaaa8fd1539fa6377495f9217..61661270913163ed28fbcbbabc902cf7f44fb2d8:/examples/gras/chrono/chrono.c diff --git a/examples/gras/chrono/chrono.c b/examples/gras/chrono/chrono.c index c0c888834e..48a77a149a 100644 --- a/examples/gras/chrono/chrono.c +++ b/examples/gras/chrono/chrono.c @@ -8,6 +8,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "gras.h" +#include "xbt/log.h" XBT_LOG_NEW_DEFAULT_CATEGORY(Chrono,"Messages specific to this example"); @@ -17,29 +18,44 @@ int multiplier (int argc,char *argv[]); int multiplier (int argc,char *argv[]) { - int i,j,k; + 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); - + A = malloc(n*n*sizeof(double)); B = malloc(n*n*sizeof(double)); C = malloc(n*n*sizeof(double)); - INFO1("Before computation : %lg", gras_os_time()); - for(i=0; i