[parsec-users] [Splash-2x bug] Incorrect elapsed time using gcc-hooks for volrend

Dmitrii Kuvaiskii Dmitrii.Kuvaiskii at tu-dresden.de
Mon Jan 12 08:42:16 EST 2015


Hi all,

There is a small bug in Parsec 3.0, the Splash-2x.volrend program.
When built with the "gcc-hooks" configuration, volrend outputs
nonsense elapsed time:
  [HOOKS] Total time spent in ROI: -123456s

To reproduce the bug, do the following on a clean installation:
  $ parsecmgmt -a build -p splash2x.volrend -c gcc-hooks
  $ parsecmgmt -a run -p splash2x.volrend -c gcc-hooks
and examine the run log.

To fix the bug, change in
parsec-3.0/ext/splash2x/apps/volrend/src/main.C, line 105:

```
  if (num_nodes > 1){
    WAIT_FOR_END(num_nodes);
#ifdef ENABLE_PARSEC_HOOKS
    __parsec_roi_end();
#endif
 }
```

to

```
  if (num_nodes > 1){
    WAIT_FOR_END(num_nodes);
  }
#ifdef ENABLE_PARSEC_HOOKS
__parsec_roi_end();
#endif
```

(The bug is that __parsec_roi_end() is not executed if num_nodes == 1.)

-- 
Yours sincerely,
Dmitrii Kuvaiskii


More information about the parsec-users mailing list