From 6cda3b62f39d71079a26597b7877c453713f3524 Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Mon, 5 Dec 2016 14:02:40 +0000 Subject: [PATCH] Redo timers. --- src/runner_doiact_vec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/runner_doiact_vec.c b/src/runner_doiact_vec.c index b2c3a9172b..751686c0a9 100644 --- a/src/runner_doiact_vec.c +++ b/src/runner_doiact_vec.c @@ -186,7 +186,7 @@ __attribute__((always_inline)) INLINE static void storeInteractions(const int ma } } /* Flush the c2 cache if it has reached capacity. */ - if(*icount >= (C2_CACHE_SIZE - (NUM_VEC_PROC * VEC_SIZE))) { + //if(*icount >= (C2_CACHE_SIZE - (NUM_VEC_PROC * VEC_SIZE))) { int icount_align = *icount; @@ -230,7 +230,7 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec(struct run vector v_hi, v_vix, v_viy, v_viz, v_hig2, v_r2; - //TIMER_TIC + TIMER_TIC if (c->ti_end_min > ti_current) return; if (c->ti_end_max < ti_current) error("Cell in an impossible time-zone"); @@ -429,7 +429,7 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec(struct run icount = 0; } /* loop over all particles. */ - //TIMER_TOC(TIMER_DOSELF); + TIMER_TOC(timer_doself_density); #endif } @@ -453,7 +453,7 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec_2(struct r vector v_hi, v_vix, v_viy, v_viz, v_hig2, v_r2; vector v_hi2, v_vix2, v_viy2, v_viz2, v_hig2_2, v2_r2; - //TIMER_TIC + TIMER_TIC /* TODO: Need to find two active particles, not just one. */ if (c->ti_end_min > ti_current) return; @@ -747,7 +747,7 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec_2(struct r icount2 = 0; } /* loop over all particles. */ - //TIMER_TOC(TIMER_DOSELF); + TIMER_TOC(timer_doself_density); #endif } -- GitLab