[parsec-users] [Splash-2x bug] Only partial HOOKS output on gcc-hooks

Dmitrii Kuvaiskii Dmitrii.Kuvaiskii at tu-dresden.de
Mon Jan 12 08:43:30 EST 2015


Hi all,

There is a small bug in Parsec 3.0, the Splash-2x benchmark suite.
When built with the "gcc-hooks" configuration, the programs are
supposed to output the following line:
  [HOOKS] Total time spent in ROI: x.xxxs
This line is not printed out in any of the Splash-2x programs.

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

To fix the bug, change in all Splash-2x programs' source code the
following lines:

```
   MAIN_END;
#ifdef ENABLE_PARSEC_HOOKS
__parsec_bench_end();
#endif
```

to

```
#ifdef ENABLE_PARSEC_HOOKS
__parsec_bench_end();
#endif
  MAIN_END;
```

(The problem is that MAIN_END is an 'exit(0)' macro, so the programs
return before reaching __parsec_bench_end().)

-- 
Yours sincerely,
Dmitrii Kuvaiskii


More information about the parsec-users mailing list