Changeset 324


Ignore:
Timestamp:
Jun 1, 2012 10:19:18 AM (7 years ago)
Author:
awalther
Message:

delete timings in sparsedrivers.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/src/sparse/sparsedrivers.cpp

    r322 r324  
    116116{
    117117  int dummy, i, j;
    118     struct timespec allstart ,start, ende, start1, start2, start3, start4,ende1;
    119    long double meine_zeit_s,meine_zeit_s1,meine_zeit_s2,meine_zeit_s3,meine_zeit_s4,meine_zeit_e,meine_zeit_e1, real_time;
    120     unsigned int duration = 1;
    121     FILE *pfile;
    122     char myfile[50];
    123 #if defined(_OPENMP)
    124      int aaam;
    125      aaam = sprintf(myfile, "CP_OMP_Max%d_ID%d_Threads800.txt", omp_get_num_threads() , omp_get_thread_num()+1 );
    126 #else
    127     myfile = "CP_OMP_Thread_Serial.txt";
    128 #endif
    129     clock_gettime(CLOCK_MONOTONIC, &allstart );
    130 
    131   BipartiteGraphPartialColoringInterface *g = new BipartiteGraphPartialColoringInterface(SRC_MEM_ADOLC, JP, m, n);
    132 
    133     clock_gettime(CLOCK_MONOTONIC, &start );
    134   if (option == 1)
    135     g->GenerateSeedJacobian_unmanaged(Seed, p, &dummy,
    136                                 "SMALLEST_LAST","ROW_PARTIAL_DISTANCE_TWO_OMP");
    137   else
    138     g->GenerateSeedJacobian_unmanaged(Seed, &dummy, p,
    139                                 "SMALLEST_LAST","COLUMN_PARTIAL_DISTANCE_TWO_OMP");
    140      clock_gettime(CLOCK_MONOTONIC, &start1 );
    141    clock_gettime(CLOCK_MONOTONIC, &start1 );
    142     real_time = 1.0e-9*allstart.tv_nsec + allstart.tv_sec;
    143     meine_zeit_s = 1.0e-9*start.tv_nsec + start.tv_sec;
    144     meine_zeit_s1 = 1.0e-9*start1.tv_nsec + start1.tv_sec;
    145 
    146     pfile = fopen( myfile , "w" );
    147     fprintf(pfile, "%.10Le %.10Le YYY\n", meine_zeit_s - real_time, meine_zeit_s1 - meine_zeit_s  );
    148  fclose(pfile);
    149 delete g;
     118
     119    BipartiteGraphPartialColoringInterface *g = new BipartiteGraphPartialColoringInterface(SRC_MEM_ADOLC, JP, m, n);
     120
     121    if (option == 1)
     122      g->GenerateSeedJacobian_unmanaged(Seed, p, &dummy,
     123                                        "SMALLEST_LAST","ROW_PARTIAL_DISTANCE_TWO");
     124    else
     125      g->GenerateSeedJacobian_unmanaged(Seed, &dummy, p,
     126                                        "SMALLEST_LAST","COLUMN_PARTIAL_DISTANCE_TWO");
     127    delete g;
    150128
    151129}
Note: See TracChangeset for help on using the changeset viewer.