search for: stencil_o3

Displaying 6 results from an estimated 6 matches for "stencil_o3".

2017 Jul 01
2
Jacobi 5 Point Stencil Code not Vectorizing
...{ for (j = 1; j <= N-2; j++) { a[i][j] = 0.25 * (a[i][j] + a[i-1][j] + a[i+1][j] + a[i][j-1] + a[i][j+1]); } } }} I have used the following commands clang -S -emit-llvm stencil.c -march=knl -O3 -mllvm -disable-llvm-optzns -o stencil.ll opt -S -O3 stencil.ll -o stencil_o3.ll llc -x86-asm-syntax=intel stencil_o3.ll -o stencil.s But the code is not vectorized. It still uses the scalar instructions; Please correct me. Thank You -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20...
2017 Jul 01
3
Jacobi 5 Point Stencil Code not Vectorizing
...][j] + a[i][j-1] >> + a[i][j+1]); >> } >> } >> }} >> >> I have used the following commands >> >> clang -S -emit-llvm stencil.c -march=knl -O3 -mllvm -disable-llvm-optzns >> -o stencil.ll >> >> opt -S -O3 stencil.ll -o stencil_o3.ll >> >> llc -x86-asm-syntax=intel stencil_o3.ll -o stencil.s >> >> But the code is not vectorized. It still uses the scalar instructions; >> >> Please correct me. >> >> Thank You >> >> >> >> >> > -------------- next p...
2017 Jul 01
2
Jacobi 5 Point Stencil Code not Vectorizing
...;>> } >>>> }} >>>> >>>> I have used the following commands >>>> >>>> clang -S -emit-llvm stencil.c -march=knl -O3 -mllvm >>>> -disable-llvm-optzns -o stencil.ll >>>> >>>> opt -S -O3 stencil.ll -o stencil_o3.ll >>>> >>>> llc -x86-asm-syntax=intel stencil_o3.ll -o stencil.s >>>> >>>> But the code is not vectorized. It still uses the scalar instructions; >>>> >>>> Please correct me. >>>> >>>> Thank You >&gt...
2017 Oct 23
3
Jacobi 5 Point Stencil Code not Vectorizing
...i][j] = b[j];</div><div>        }</div><div>    }</div><div>}</div></div><div> </div><div>but when i write the above code in main i am getting error </div><div> </div><div><div>opt  -S -O3  stencil.ll -o stencil_o3.ll</div><div>remark: <unknown>:0:0: loop not vectorized: value that could not be identified as reduction is used outside the loop</div></div><div> </div><div>Why is that so?</div><div> </div><div>my code is follows:</div>...
2017 Oct 24
3
Jacobi 5 Point Stencil Code not Vectorizing
...][j] + >> a[i][j-1] + a[i][j+1]); >> for (j = 1; j <= N-2; j++) >> a[i][j] = b[j]; >> } >> } >> } >> >> but when i write the above code in main i am getting error >> >> opt -S -O3 stencil.ll -o stencil_o3.ll >> remark: <unknown>:0:0: loop not vectorized: value that could not be >> identified as reduction is used outside the loop >> >> Why is that so? >> >> my code is follows: >> int a[N][N], b[N]; >> int main(void) >> { >> int i, j...
2017 Aug 05
2
LLVM Vectorisation Bug
I have matrix multiplication and stencil code. I vectorise it through the following command. opt -S -O3 -force-vector-width=2048 stencil.ll -o stencil_o3.ll in both the examples of matrix mult and stencil it vectorises fine when my loop iterations >2048. but if i keep both iterations and vector width=2048. it produces scalar code IR not vectorizes it. Is it llvm bug? Please help me. -------------- next part -------------- An HTML attachment wa...