Re: [Polybench-discussion] non-parametric polybench benchmarks
Brought to you by:
pouchet,
tomofumi-yuki
From: Sven V. <sk...@ko...> - 2012-02-03 22:10:59
|
On Fri, Feb 03, 2012 at 02:37:44PM -0500, Louis-Noel Pouchet wrote: > I am very reluctant to say yes. The problem is the following: using this kind of syntax makes much more complex the task of simplistic source code analyzer, because of the "function call" in the loop bounds. Indeed, unless using a CPP, the macro is interpreted as a function here by tools such as Clan (at least it's current version embedded in PoCC). > > I see maybe a possibility: > - in the benchmark header file: > #define paramN POLYBENCH_SCALARBOUNDS_SELECT(N,n) > > - in the source file: > > #pragma scop > - for (i = 0; i < n; i++) > - for (j = 0; j < n; j++) > + for (i = 0; i < paramN; i++) > + for (j = 0; j < paramN; j++) > x1[i] = x1[i] + A[i][j] * y_1[j]; > > ... > > > Would that work for you? Sure. I just didn't know what name to pick. Could you make these changes, or do you want me to send in a patch? (I could ask the student, but it would probably take me more time to explain it to him than to just do it myself.) skimo |