H, Tobias Thank you for your reply. Tobias Grosser wrote: (Thu, 09 Jun 2011 15:41:05 -0300)>On 06/08/2011 01:17 AM, MORIYAMA Tomohiro wrote: >> Hi, all >> >> I tried Polly installation on Ubuntu. >> >> On its building, it returned no errors. >> But when I run "make polly-test", it returns 11 unexpected failures as >> follows. >> ----------------------------------- >> ******************** >> Testing Time: 19.77s >> ******************** >> Failing Tests (11): >> Polly :: CodeGen/do_pluto_matmult.ll >> Polly :: CodeGen/loop_with_condition.ll >> Polly :: CodeGen/loop_with_condition_2.ll >> Polly :: CodeGen/loop_with_condition_ineq.ll >> Polly :: CodeGen/loop_with_condition_nested.ll >> Polly :: CodeGen/reduction_2.ll >> Polly :: CodeGen/sequential_loops.ll >> Polly :: CodeGen/single_do_loop_int_max_iterations.ll >> Polly :: CodeGen/single_do_loop_scev_replace.ll >> Polly :: CodeGen/single_loop.ll >> Polly :: CodeGen/single_loop_param.ll > >Interesting. On what kind of Platform are you running this? Is it still >Ubuntu 11.04? I assume it's an intel platform, but is it a 32-bit or 64bit?It is a little bit complicated. Intel Core i5 M520. Ubuntu 11.04-i386 using VMWare Player on Windows 7 Professional(64bit).> >The test cases that are failing are the ones that use 'lli' to execute >the generated program. There seems to be something wrong in respect to >lli. Can you run e.g. single_loop.ll with llvm-lit (-v) and show the >error message.OK. This is the message. -------- tomohiro at ubuntu:~/llvm/tools/polly/test/CodeGen$ llvm-lit -v single_loop.ll llvm-lit: lit.cfg:94: note: using out-of-tree build at '/home/tomohiro/build/ tools/polly' -- Testing: 1 tests, 2 threads -- FAIL: Polly :: CodeGen/single_loop.ll (1 of 1) ******************** TEST 'Polly :: CodeGen/single_loop.ll' FAILED ************* ******* Script: -- opt -load /home/tomohiro/build/lib/LLVMPolly.so -basicaa -polly-prepare -polly -region-simplify -scev-aa -polly-cloog -analyze < /home/tomohiro/llvm/tools/ polly/test/CodeGen/single_loop.ll | FileCheck /home/tomohiro/llvm/tools/polly/ test/CodeGen/single_loop.ll opt -load /home/tomohiro/build/lib/LLVMPolly.so -basicaa -polly-prepare -polly -region-simplify -scev-aa -polly-codegen < /home/tomohiro/llvm/tools/polly/test /CodeGen/single_loop.ll | lli - -- Exit Code: 139 Command Output (stderr): -- Stack dump: 0. Program arguments: lli - /home/tomohiro/build/tools/polly/test/CodeGen/Output/single_loop.ll.script: line 2: 3250 Done opt -load /home/tomohiro/build/lib/LLVMPolly.so -basicaa -polly-prepare -polly-region-simplify -scev-aa -polly-codegen < /home/ tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll 3251 Segmentation fault | lli - -- ******************** Testing Time: 0.11s ******************** Failing Tests (1): Polly :: CodeGen/single_loop.ll Unexpected Failures: 1 -------->> And another question, I want to try "examples". >> http://polly.grosser.es/examples.html >> >> But I can't get its source files by 403. >> http://polly.grosser.es/experiments/matmul/ > >Ups. I forgot to update this. It should now work. > >TobiThanks. ---- Tomohiro moriyama at isit.or.jp
On 06/10/2011 12:00 AM, MORIYAMA Tomohiro wrote:> H, Tobias > Thank you for your reply. > > > Tobias Grosser wrote: >> Interesting. On what kind of Platform are you running this? Is it still >> Ubuntu 11.04? I assume it's an intel platform, but is it a 32-bit or 64bit? > > It is a little bit complicated. > > Intel Core i5 M520. > Ubuntu 11.04-i386 using VMWare Player on Windows 7 Professional(64bit).So it's 32bit.>> >> The test cases that are failing are the ones that use 'lli' to execute >> the generated program. There seems to be something wrong in respect to >> lli. Can you run e.g. single_loop.ll with llvm-lit (-v) and show the >> error message. > > OK. This is the message. > > -------- > tomohiro at ubuntu:~/llvm/tools/polly/test/CodeGen$ llvm-lit -v single_loop.ll > llvm-lit: lit.cfg:94: note: using out-of-tree build at '/home/tomohiro/build/ > tools/polly' > -- Testing: 1 tests, 2 threads -- > FAIL: Polly :: CodeGen/single_loop.ll (1 of 1) > ******************** TEST 'Polly :: CodeGen/single_loop.ll' FAILED ************* > ******* > Script: > -- > opt -load /home/tomohiro/build/lib/LLVMPolly.so -basicaa -polly-prepare -polly > -region-simplify -scev-aa -polly-cloog -analyze< /home/tomohiro/llvm/tools/ > polly/test/CodeGen/single_loop.ll | FileCheck /home/tomohiro/llvm/tools/polly/ > test/CodeGen/single_loop.ll > opt -load /home/tomohiro/build/lib/LLVMPolly.so -basicaa -polly-prepare -polly > -region-simplify -scev-aa -polly-codegen< /home/tomohiro/llvm/tools/polly/test > /CodeGen/single_loop.ll | lli - > -- > Exit Code: 139 > Command Output (stderr): > -- > Stack dump: > 0. Program arguments: lli - > /home/tomohiro/build/tools/polly/test/CodeGen/Output/single_loop.ll.script: line > 2: 3250 Done opt -load /home/tomohiro/build/lib/LLVMPolly.so > -basicaa -polly-prepare -polly-region-simplify -scev-aa -polly-codegen< /home/ > tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll > 3251 Segmentation fault | lli -Interesting. It seems lli is segfaulting. Can you try to use the following command? opt -load /home/tomohiro/build/lib/LLVMPolly.so \ -basicaa -polly-prepare -polly-region-simplify -scev-aa \ -polly-codegen \ /home/tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll \ | llc - out.s && gcc out.s && ./a.out This means we do not run the created LLVM-IR file with the lli JIT compiler, but use the llc compiler and than gcc to statically compile the binary. In case this does not work, I will investigate this on an i386 machine. All our development machines are amd64 machines and I must admit we did not test too much on i386. So issues on those machines are not too unexpected. Though Raghesh runs i386. He may have seen such a problem before. Cheers and thanks for your report Tobi
(2011/06/10 13:25), Tobias Grosser wrote:> On 06/10/2011 12:00 AM, MORIYAMA Tomohiro wrote: >> H, Tobias >> Thank you for your reply. >> >> >> Tobias Grosser wrote: >>> Interesting. On what kind of Platform are you running this? Is it still >>> Ubuntu 11.04? I assume it's an intel platform, but is it a 32-bit or >>> 64bit? >> >> It is a little bit complicated. >> >> Intel Core i5 M520. >> Ubuntu 11.04-i386 using VMWare Player on Windows 7 Professional(64bit). > > So it's 32bit.Certainly.>>> >>> The test cases that are failing are the ones that use 'lli' to execute >>> the generated program. There seems to be something wrong in respect to >>> lli. Can you run e.g. single_loop.ll with llvm-lit (-v) and show the >>> error message. >> >> OK. This is the message. >> >> -------- >> tomohiro at ubuntu:~/llvm/tools/polly/test/CodeGen$ llvm-lit -v >> single_loop.ll >> llvm-lit: lit.cfg:94: note: using out-of-tree build at >> '/home/tomohiro/build/ >> tools/polly' >> -- Testing: 1 tests, 2 threads -- >> FAIL: Polly :: CodeGen/single_loop.ll (1 of 1) >> ******************** TEST 'Polly :: CodeGen/single_loop.ll' FAILED >> ************* >> ******* >> Script: >> -- >> opt -load /home/tomohiro/build/lib/LLVMPolly.so -basicaa >> -polly-prepare -polly >> -region-simplify -scev-aa -polly-cloog -analyze< >> /home/tomohiro/llvm/tools/ >> polly/test/CodeGen/single_loop.ll | FileCheck >> /home/tomohiro/llvm/tools/polly/ >> test/CodeGen/single_loop.ll >> opt -load /home/tomohiro/build/lib/LLVMPolly.so -basicaa >> -polly-prepare -polly >> -region-simplify -scev-aa -polly-codegen< >> /home/tomohiro/llvm/tools/polly/test >> /CodeGen/single_loop.ll | lli - >> -- >> Exit Code: 139 >> Command Output (stderr): >> -- >> Stack dump: >> 0. Program arguments: lli - >> /home/tomohiro/build/tools/polly/test/CodeGen/Output/single_loop.ll.script: >> line >> 2: 3250 Done opt -load /home/tomohiro/build/lib/LLVMPolly.so >> -basicaa -polly-prepare -polly-region-simplify -scev-aa >> -polly-codegen< /home/ >> tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll >> 3251 Segmentation fault | lli - > > > Interesting. It seems lli is segfaulting. Can you try to use the > following command? > > opt -load /home/tomohiro/build/lib/LLVMPolly.so \ > -basicaa -polly-prepare -polly-region-simplify -scev-aa \ > -polly-codegen \ > /home/tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll \ > | llc - out.s && gcc out.s && ./a.out > > This means we do not run the created LLVM-IR file with the lli JIT > compiler, but use the llc compiler and than gcc to statically compile > the binary.OK. This result is as follows. tomohiro at ubuntu:~/llvm/tools/polly/test/CodeGen$ opt -load /home/tomohiro/build/lib/LLVMPolly.so \ > -basicaa -polly-prepare -polly-region-simplify -scev-aa \ > -polly-codegen \ > /home/tomohiro/llvm/tools/polly/test/CodeGen/single_loop.ll \ > | llc - out.s && gcc out.s && ./a.out llc: Too many positional arguments specified! Can specify at most 1 positional arguments: See: llc -help> In case this does not work, I will investigate this on an i386 machine. > All our development machines are amd64 machines and I must admit we did > not test too much on i386. So issues on those machines are not too > unexpected. Though Raghesh runs i386. He may have seen such a problem > before.I see. I will try it amd64 version but now on VMWare. I'm glad if you tell me your environment in detail.> Cheers and thanks for your report > Tobi > > > >-- Tomohiro moriyama at isit.or.jp