Displaying 2 results from an estimated 2 matches for "_pb_nk".
Did you mean:
_pb_ni
2018 Mar 14
2
LLVM opt unable to vectorize PolyBench code
Hello,
I m unable to vectorize following kernel by opt tool;
for (i = 0; i < _PB_NI; i++)
for (j = 0; j < _PB_NJ; j++)
{
tmp[i][j] = 0;
for (k = 0; k < _PB_NK; ++k)
tmp[i][j] += alpha * A[i][k] * B[k][j];
}
for (i = 0; i < _PB_NI; i++)
for (j = 0; j < _PB_NL; j++)
{
D[i][j] *= beta;
for (k = 0; k < _PB_NJ; ++k)
D[i][j] += tmp[i][k] * C[k][j];
}
i m using following command
$opt -S -O3 -force-vector-wi...
2018 Mar 14
0
LLVM opt unable to vectorize PolyBench code
...14, 2018 at 3:05 PM, hameeza ahmed <hahmed2305 at gmail.com> wrote:
> Hello,
>
> I m unable to vectorize following kernel by opt tool;
>
> for (i = 0; i < _PB_NI; i++)
> for (j = 0; j < _PB_NJ; j++)
> {
> tmp[i][j] = 0;
> for (k = 0; k < _PB_NK; ++k)
> tmp[i][j] += alpha * A[i][k] * B[k][j];
> }
> for (i = 0; i < _PB_NI; i++)
> for (j = 0; j < _PB_NL; j++)
> {
> D[i][j] *= beta;
> for (k = 0; k < _PB_NJ; ++k)
> D[i][j] += tmp[i][k] * C[k][j];
> }
>
> i m...