Michael Kruse via llvm-dev
2021-May-28 14:56 UTC
[llvm-dev] Polly Vectorization very large speedup
In addition to vectorization, Polly also applies memory optimizations (such as tiling). Correlation is one of the benchmarks where this works particularly well. In doubt, compare the output of the benchmark with and without Polly (-DPOLYBENCH_DUMP_ARRAYS). Note that there may be floating-point rounding differences, you could try `fpcmp` from the llvm-test-suite. -polly-vectorizer=polly is not particularly well-tested, so a miscompilation could indeed be the reason. Michael Am Fr., 28. Mai 2021 um 06:14 Uhr schrieb hameeza ahmed <hahmed2305 at gmail.com>:> > Hello, > I have run polybench correlation with following command on LLVM-12.0; > /home/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang -O3 -mllvm -polly -mllvm -polly-vectorizer=polly -I ../../../../utilities -I ../../../../datamining/correlation ../../../../utilities/polybench.c ../../../../datamining/correlation/correlation.c -lm -DPOLYBENCH_TIME -DEXTRALARGE_DATASET -o polly-O3-vector-extralarge > > > I am getting execution time of 0.100884s with polly-vectorizer > However with LLVM -O3 time is 85.083153s > polly vectorizer gives a speedup of 843.37x which is unbelievable. > Why is that so? Am I running wrong command? > > Please guide. > > Thank You > Regards > > -- > You received this message because you are subscribed to the Google Groups "Polly Development" group. > To unsubscribe from this group and stop receiving emails from it, send an email to polly-dev+unsubscribe at googlegroups.com. > To view this discussion on the web, visit https://groups.google.com/d/msgid/polly-dev/CAFMPKeY_NaQQEN8Ws41p%3DWKe1vwRxXUSPPz7RN%2BmmYyO39sGxQ%40mail.gmail.com.-- Tardyzentrismus verboten!
hameeza ahmed via llvm-dev
2021-May-28 16:14 UTC
[llvm-dev] Polly Vectorization very large speedup
Hello, I have run polybench correlation with following command on LLVM-12.0; /home/clang+llvm-12.0.0-x86_64-linux-gnu-ubuntu-16.04/bin/clang -O3 -mllvm -polly -mllvm -polly-vectorizer=polly -I ../../../../utilities -I ../../../../datamining/correlation ../../../../utilities/polybench.c ../../../../datamining/correlation/correlation.c -lm -DPOLYBENCH_TIME -DEXTRALARGE_DATASET -o polly-O3-vector-extralarge I am getting execution time of 0.100884s with polly-vectorizer However with LLVM -O3 time is 85.083153s polly vectorizer gives a speedup of 843.37x which is unbelievable. Why is that so? Am I running wrong command? Please guide. Thank You Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210528/25b71fd0/attachment.html>