@@ -412,13 +412,12 @@ namespace graphchi {
412412 do {
413413 omp_set_num_threads (exec_threads);
414414
415-
416415 #pragma omp parallel sections
417416 {
418417 #pragma omp section
419418 {
420- #pragma omp parallel for schedule(dynamic)
421- for (int idx=0 ; idx <= (int )sub_interval_len; idx++) {
419+ #pragma omp parallel for
420+ for (int idx=0 ; idx <= (int )sub_interval_len; idx++) {
422421 vid_t vid = sub_interval_st + (randomization ? random_order[idx] : idx);
423422 svertex_t & v = vertices[vid - sub_interval_st];
424423
@@ -466,6 +465,7 @@ namespace graphchi {
466465 virtual void exec_updates_inmemory_mode (GraphChiProgram<VertexDataType, EdgeDataType, svertex_t > &userprogram,
467466 std::vector<svertex_t > &vertices) {
468467 work = nupdates = 0 ;
468+
469469 for (iter=0 ; iter<niters; iter++) {
470470 logstream (LOG_INFO ) << " In-memory mode: Iteration " << iter << " starts. (" << chicontext.runtime () << " secs)" << std::endl;
471471 chicontext.iteration = iter;
@@ -506,7 +506,12 @@ namespace graphchi {
506506 }
507507 }
508508
509+ m.start_time (" inmem-exec" );
510+
509511 exec_updates (userprogram, vertices);
512+
513+ m.stop_time (" inmem-exec" );
514+
510515 load_after_updates (vertices);
511516
512517 userprogram.after_exec_interval (0 , (int )num_vertices (), chicontext);
0 commit comments