<div dir="ltr">Thanks. And it is O3 :-) A relief I must say<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 4:04 PM, Matthias Kretz <span dir="ltr"><<a href="mailto:m.kretz@gsi.de" target="_blank">m.kretz@gsi.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>There's nothing in the output because nothing was compiled. Do a 'make clean' first.<div><div class="h5"><br><br><div class="gmail_quote">On September 21, 2016 2:21:55 PM GMT+02:00, Krishna Narasimhan <<a href="mailto:krishna.nm86@gmail.com" target="_blank">krishna.nm86@gmail.com</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi Matthias,<div>   Thanks a lot. I did try doing the "make VERBOSE =1" and could not get any info on the compiler settings. Could you help me out here. This is kind of important for a paper I am submitting very shortly. The output doesnt seem to have information on the compiler settings.</div><div><br></div><div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake -H/home/krishna/vc -B/home/krishna/vc/build6 --check-build-system CMakeFiles/Makefile.cmake 0</div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake -E cmake_progress_start /home/krishna/vc/build6/<wbr>CMakeFiles /home/krishna/vc/build6/<wbr>examples/CMakeFiles/progress.<wbr>marks</div><div>cd /home/krishna/vc/build6 && make -f CMakeFiles/Makefile2 examples/all</div><div>make[1]: Entering directory `/home/krishna/vc/build6'</div><div>make -f CMakeFiles/Vc.dir/build.make CMakeFiles/Vc.dir/depend</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>cd
/home/krishna/vc/build6 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/krishna/vc /home/krishna/vc /home/krishna/vc/build6 /home/krishna/vc/build6 /home/krishna/vc/build6/<wbr>CMakeFiles/Vc.dir/DependInfo.<wbr>cmake --color=</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>make -f CMakeFiles/Vc.dir/build.make CMakeFiles/Vc.dir/build</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>make[2]: Nothing to be done for `CMakeFiles/Vc.dir/build'.</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>/usr/bin/cmake -E cmake_progress_report /home/krishna/vc/build6/<wbr>CMakeFiles  2 3 4 5 6 7 8 9 10</div><div>[ 32%] Built target Vc</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx.dir/depend</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake
-E cmake_depends "Unix Makefiles" /home/krishna/vc /home/krishna/vc/examples/<wbr>polarcoord /home/krishna/vc/build6 /home/krishna/vc/build6/<wbr>examples/polarcoord /home/krishna/vc/build6/<wbr>examples/</div><div>polarcoord/CMakeFiles/example_<wbr>polarcoord_avx.dir/DependInfo.<wbr>cmake --color=</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx.dir/build</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>make[2]: Nothing to be done for `examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx.dir/build'.</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>/usr/bin/cmake -E cmake_progress_report /home/krishna/vc/build6/<wbr>CMakeFiles </div><div>[ 32%] Built target example_polarcoord_avx</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx2.dir/build.make
examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx2.dir/depend</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/krishna/vc /home/krishna/vc/examples/<wbr>polarcoord /home/krishna/vc/build6 /home/krishna/vc/build6/<wbr>examples/polarcoord /home/krishna/vc/build6/<wbr>examples/</div><div>polarcoord/CMakeFiles/example_<wbr>polarcoord_avx2.dir/<wbr>DependInfo.cmake --color=</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx2.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx2.dir/build</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>make[2]: Nothing to be done for `examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>avx2.dir/build'.</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>/usr/bin/cmake -E cmake_progress_report
/home/krishna/vc/build6/<wbr>CMakeFiles  35</div><div>[ 35%] Built target example_polarcoord_avx2</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>default.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>default.dir/depend</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/krishna/vc /home/krishna/vc/examples/<wbr>polarcoord /home/krishna/vc/build6 /home/krishna/vc/build6/<wbr>examples/polarcoord /home/krishna/vc/build6/<wbr>examples/</div><div>polarcoord/CMakeFiles/example_<wbr>polarcoord_default.dir/<wbr>DependInfo.cmake --color=</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>default.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>default.dir/build</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>make[2]: Nothing to be done
for `examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>default.dir/build'.</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>/usr/bin/cmake -E cmake_progress_report /home/krishna/vc/build6/<wbr>CMakeFiles </div><div>[ 35%] Built target example_polarcoord_default</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>scalar.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>scalar.dir/depend</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/krishna/vc /home/krishna/vc/examples/<wbr>polarcoord /home/krishna/vc/build6 /home/krishna/vc/build6/<wbr>examples/polarcoord /home/krishna/vc/build6/<wbr>examples/</div><div>polarcoord/CMakeFiles/example_<wbr>polarcoord_scalar.dir/<wbr>DependInfo.cmake --color=</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>make -f
examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>scalar.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>scalar.dir/build</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>make[2]: Nothing to be done for `examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>scalar.dir/build'.</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>/usr/bin/cmake -E cmake_progress_report /home/krishna/vc/build6/<wbr>CMakeFiles </div><div>[ 35%] Built target example_polarcoord_scalar</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>sse.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>sse.dir/depend</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/krishna/vc /home/krishna/vc/examples/<wbr>polarcoord /home/krishna/vc/build6 /home/krishna/vc/build6/<wbr>examples/polarcoord
/home/krishna/vc/build6/<wbr>examples/</div><div>polarcoord/CMakeFiles/example_<wbr>polarcoord_sse.dir/DependInfo.<wbr>cmake --color=</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>make -f examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>sse.dir/build.make examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>sse.dir/build</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>make[2]: Nothing to be done for `examples/polarcoord/<wbr>CMakeFiles/example_polarcoord_<wbr>sse.dir/build'.</div><div>make[2]: Leaving directory `/home/krishna/vc/build6'</div><div>/usr/bin/cmake -E cmake_progress_report /home/krishna/vc/build6/<wbr>CMakeFiles  36</div><div>[ 39%] Built target example_polarcoord_sse</div><div>make -f examples/matrix/CMakeFiles/<wbr>example_matrix_avx.dir/build.<wbr>make examples/matrix/CMakeFiles/<wbr>example_matrix_avx.dir/depend</div><div>make[2]: Entering directory `/home/krishna/vc/build6'</div><div>cd /home/krishna/vc/build6 && /usr/bin/cmake -E cmake_depends
"Unix Makefiles" /home/krishna/vc /home/krishna/vc/examples/<wbr>matrix /home/krishna/vc/build6 /home/krishna/vc/build6/<wbr>examples/matrix /home/krishna/vc/build6/<wbr>examples/matrix/</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 29, 2016 at 10:23 AM, Matthias Kretz <span dir="ltr"><<a href="mailto:m.kretz@gsi.de" target="_blank">m.kretz@gsi.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Krishna,<br>
<br>
when you compile a project using cmake, use 'make VERBOSE=1' to see the<br>
compiler flags it uses.<br>
<br>
In very few cases, in Vc, I use compiler flags to inhibit automatic<br>
vectorization (if I want to compare scalar vs. vector *hardware*). I don't<br>
recall right now what I do for the polar coordinates case, but I think I leave<br>
the compiler on -O3 (i.e. autovectorize and optimize as much as possible).<br>
<br>
In general, I think your argument should not be: my code transformation can<br>
vectorize something that a compiler does not vectorize. That's a race against<br>
many very smart people. I think what you want to show is that you can<br>
transform a given scalar code base into a Vc code base as a useful basis for<br>
further manual vectorization development. That's something compilers don't do<br>
at all...<br>
<br>
Cheers,<br>
  Matthias<br>
<div><div><br>
On Samstag, 27. August 2016 10:52:55 CEST Krishna Narasimhan wrote:<br>
> Hi all,<br>
>     I am wondering about the compiler settings for the example files<br>
> posted. I ran a small test on the cartesian-polar coordinate example in the<br>
> VC website and just used the makefile available there to assess the run<br>
> times. And the run times for the VC was substantially better than the run<br>
> times for the Scalar versions. But the question is couldnt compiler level<br>
> optimizations have done this already. And was wondering what level the<br>
> compilers are set for the basic makefiles in the VC by default.<br>
><br>
> Basically, I am using the polar cartesian co ordinate example as part of my<br>
> research with programming languages (and simple vc transformations are one<br>
> of the evaluation) and would be nice to justify even these simple<br>
> transformations are not stuff that compilers dont vectorize automatically.<br>
><br>
><br>
><br>
> Best<br>
> Krishna<br>
<br>
<br>
</div></div><span><font color="#888888">--<br>
──────────────────────────────<wbr>──────────────────────────────<wbr>──────────────<br>
 Dr. Matthias Kretz                                <a href="https://kretzfamily.de" rel="noreferrer" target="_blank">https://kretzfamily.de</a><br>
 GSI Helmholtzzentrum für Schwerionenforschung             <a href="https://gsi.de" rel="noreferrer" target="_blank">https://gsi.de</a><br>
 SIMD easy and portable                     <a href="https://github.com/VcDevel/Vc" rel="noreferrer" target="_blank">https://github.com/VcDevel/Vc</a><br>
──────────────────────────────<wbr>──────────────────────────────<wbr>──────────────<br>
______________________________<wbr>_________________<br>
Vc mailing list<br>
<a href="mailto:Vc@compeng.uni-frankfurt.de" target="_blank">Vc@compeng.uni-frankfurt.de</a><br>
<a href="https://compeng.uni-frankfurt.de/mailman/listinfo/vc" rel="noreferrer" target="_blank">https://compeng.uni-frankfurt.<wbr>de/mailman/listinfo/vc</a></font></span></blockquote></div><br></div>
</blockquote></div><br></div></div><span class="HOEnZb"><font color="#888888">
-- <br>
Dr. Matthias Kretz</font></span></div></blockquote></div><br></div>