Changeset 3644


Ignore:
Timestamp:
04/30/10 12:01:14 (15 years ago)
Author:
jschierm
Message:

Scotch: removed high-level debug messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/scotch/gmapx.c

    r3639 r3644  
    230230  SCOTCH_stratInit (&stradat);                    /* Set default mapping strategy */
    231231
    232   printf("point 0: C_FILENBR=%d, C_fileNbr=%d, C_paraNbr=%d\n",
    233          C_FILENBR,C_fileNbr,C_paraNbr);
    234232  for (i = 0; i < C_FILENBR; i ++)                /* Set default stream pointers */
    235233    C_fileTab[i].pntr = (C_fileTab[i].mode[0] == 'r') ? stdin : stdout;
    236234  for (i = 1; i < argcm; i ++) {                   /* Loop for all option codes                        */
    237   printf("point 1: i=%d; C_fileNbr=%d, C_fileNum=%d, C_paraNbr=%d, C_paraNum=%d\n",
    238          i,C_fileNbr,C_fileNum,C_paraNbr,C_paraNum);
    239235    if ((argvm[i][0] != '-') || (argvm[i][1] == '\0') || (argvm[i][1] == '.')) { /* If found a file name */
    240   printf("point 2: i=%d; C_fileNbr=%d, C_fileNum=%d, C_paraNbr=%d, C_paraNum=%d\n",
    241          i,C_fileNbr,C_fileNum,C_paraNbr,C_paraNum);
    242236      if (C_paraNum < C_paraNbr) {                /* If number of parameters not reached              */
    243237        if ((C_partNbr = atoi (argvm[i])) < 1)     /* Get the number of parts                          */
     
    246240        continue;                                 /* Process the other parameters */
    247241      }
    248   printf("point 3: i=%d; C_fileNbr=%d, C_fileNum=%d, C_paraNbr=%d, C_paraNum=%d\n",
    249          i,C_fileNbr,C_fileNum,C_paraNbr,C_paraNum);
    250242      if (C_fileNum < C_fileNbr)                  /* A file name has been given */
    251243        C_fileTab[C_fileNum ++].name = argvm[i];
    252244      else
    253245        errorPrint ("main: too many file names given");
    254   printf("point 4: i=%d; C_fileNbr=%d, C_fileNum=%d, C_paraNbr=%d, C_paraNum=%d\n",
    255          i,C_fileNbr,C_fileNum,C_paraNbr,C_paraNum);
    256246    }
    257247    else {                                        /* If found an option name */
     
    314304    }
    315305  }
    316   printf("point 5\n");
    317306  if ((flagval & C_FLAGPART) != 0) {              /* If program run as the partitioner            */
    318307    C_fileTab[3].name = C_fileTab[2].name;        /* Put provided file names at their right place */
     
    320309    C_fileTab[1].name = "-";
    321310  }
    322   printf("point 6\n");
    323311
    324312  fileBlockOpen (C_fileTab, C_FILENBR);           /* Open all files */
    325   for (i=0; i<C_FILENBR; i++)
    326     printf("C_fileTab[%d]: name=\"%s\",pntr=%p,mode=\"%s\"\n",
    327            i,C_fileTab[i].name,C_fileTab[i].pntr,C_fileTab[i].mode);
    328   printf("point 7\n");
    329313
    330314  clockInit  (&runtime[0]);
    331315  clockStart (&runtime[0]);
    332   printf("point 8\n");
    333316
    334317  SCOTCH_graphInit (&grafdat);                    /* Create graph structure         */
    335318  SCOTCH_graphLoad (&grafdat, C_filepntrsrcinp, -1, grafflag, nvert, nedge2, adjir, adjjc, vertlab, vertwgt, edgewgt); /* Read source graph */
    336319
    337   printf("point 9\n");
    338320  SCOTCH_archInit (&archdat);                     /* Create architecture structure          */
    339321  if ((flagval & C_FLAGPART) != 0)                /* If program run as the partitioner      */
     
    341323  else
    342324    SCOTCH_archLoad (&archdat, C_filepntrtgtinp, archtyp, napar, archpar); /* Read target architecture */
    343   printf("point 10\n");
    344325
    345326  clockStop  (&runtime[0]);                       /* Get input time */
     
    347328  clockStart (&runtime[1]);
    348329
    349   printf("point 10a\n");
    350330  SCOTCH_graphMapInit    (&grafdat, &mapdat, &archdat, NULL);
    351   printf("point 10b\n");
    352331  SCOTCH_graphMapCompute (&grafdat, &mapdat, &stradat); /* Perform mapping */
    353   printf("point 11\n");
    354332
    355333  clockStop  (&runtime[1]);                       /* Get computation time */
     
    360338/*  convert output arguments from scotch data types  */
    361339
    362 /*  for (i=0; i<nvert; i++)
    363     printf("maptab[%d][0]=%d, maptab[%d][1]=%d\n",
    364            i,maptab[i][0],i,maptab[i][1]); */
    365340  if (maptab) {
    366341    *pmaptabi = (int (*)[2]) malloc(nvert*2*sizeof(int));
     
    371346    free(maptab);
    372347  }
    373   printf("point 12\n");
    374348
    375349  clockStop (&runtime[0]);                        /* Get output time */
     
    380354    putc ('\n', C_filepntrlogout);
    381355  }
    382   printf("point 13\n");
    383356  if (flagval & C_FLAGVERBTIM) {
    384357    fprintf (C_filepntrlogout, "T\tMapping\t\t%g\nT\tI/O\t\t%g\nT\tTotal\t\t%g\n",
     
    388361             (double) clockVal (&runtime[1]));
    389362  }
    390   printf("point 14\n");
    391363  if (flagval & C_FLAGVERBMAP)
    392364    SCOTCH_graphMapView (&grafdat, &mapdat, C_filepntrlogout);
    393   printf("point 15\n");
    394365
    395366  fileBlockClose (C_fileTab, C_FILENBR);          /* Always close explicitely to end eventual (un)compression tasks */
    396367
    397   printf("point 16\n");
    398368  SCOTCH_graphMapExit (&grafdat, &mapdat);
    399   printf("point 16a\n");
    400369  SCOTCH_graphExit    (&grafdat);
    401   printf("point 16b\n");
    402370  SCOTCH_stratExit    (&stradat);
    403   printf("point 16c\n");
    404371  SCOTCH_archExit     (&archdat);
    405   printf("point 17\n");
    406372
    407373  if (archpar) free(archpar);
     
    415381  pthread_exit ((void *) 0);                      /* Allow potential (un)compression tasks to complete */
    416382#endif /* COMMON_PTHREAD */
    417   printf("point 18\n");
    418383  return (0);
    419384}
Note: See TracChangeset for help on using the changeset viewer.