From: mquinson Date: Mon, 26 Jun 2006 14:36:03 +0000 (+0000) Subject: Reduce the PROC_MATRIX_SIZE so that the deployment file works; do not display the... X-Git-Tag: v3.3~2920 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f76d29290161a33f4fff55437a22821e685787b3 Reduce the PROC_MATRIX_SIZE so that the deployment file works; do not display the matrix when it's too large git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2438 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/gras/pmm/pmm.c b/examples/gras/pmm/pmm.c index ec31ad199c..c2442b6c3c 100755 --- a/examples/gras/pmm/pmm.c +++ b/examples/gras/pmm/pmm.c @@ -10,7 +10,7 @@ #include "gras.h" #include "xbt/matrix.h" -#define PROC_MATRIX_SIZE 6 +#define PROC_MATRIX_SIZE 3 #define SLAVE_COUNT (PROC_MATRIX_SIZE*PROC_MATRIX_SIZE) #define DATA_MATRIX_SIZE 600 @@ -185,9 +185,13 @@ int master (int argc,char *argv[]) { xbt_matrix_free(result.C); } /* end of gather */ - INFO0 ("The Result of Multiplication is :"); - xbt_matrix_dump(C,"C:res",0,xbt_matrix_dump_display_double); - + if (DATA_MATRIX_SIZE < 50) { + INFO0 ("The Result of Multiplication is :"); + xbt_matrix_dump(C,"C:res",0,xbt_matrix_dump_display_double); + } else { + INFO1("Matrix size too big (%d>50) to be displayed here",DATA_MATRIX_SIZE); + } + for(i=0; i