Displaying 2 results from an estimated 2 matches for "kernel_1".
Did you mean:
kernel_h
2017 Jun 22
2
Legal names for Functions and other Identifiers
Thanks for the heads up Philip !
I did come across a strange case where LLVM allowed "%" to be a part of a
function's name. This was in the context of my patch
https://reviews.llvm.org/D33985, where I prefix the name of the source
function and the Scop ( A special kind of Region that Polly can optimize,
the name of the Scop is the name of the Region ) to the name of the PTX
kernel
2018 Sep 20
2
Vectorization width not correct using #pragma clang loop vectorize_width
.../
double float_n = (double)N;
double data[N*M];
double corr[M*M];
double mean[M];
double stddev[M];
uint32_t i,j,k;
/*Initialize array(s). */
#pragma clang loop vectorize_width(1) //no vectorize
for (i = 0; i < N*M; i++)
{
data[i] = (50.0)*i;
}
kernel_1:
#pragma clang loop vectorize_width(32)
for (j = 0; j < M; j++)
{
mean[j] = 0.0;
}
for (i = 0; i < N; i++)
{
for (j = 0; j < M; j++)
mean[j] += data[(i*M) + j];
}
for (j = 0; j < M; j++)
{
mean[j] /= float_n;
}...