<div dir="ltr">Hal<div><br></div><div>The failing code is now in ~eschnett/vecmathlib on Vesta. The following sequence of commands reproduces this problem (lengthy on purpose):</div><div><br></div><div><div>/home/projects/llvm/bin/bgclang++11 -I/soft/compilers/ibmcmp-may2013/xlmass/bg/7.3/include -E test.cc > test.i</div>
<div>/home/projects/llvm/bin/bgclang++11 -S test.i</div><div>/home/projects/llvm/bin/bgclang++11 -c test.s</div><div>/home/projects/llvm/bin/bgclang++11 -o test test.o -L/soft/compilers/ibmcmp-may2013/xlmass/bg/7.3/bglib64 -lmassv -lmass -lmass_simd</div>
<div>qsub -A DynamicDevel -n 1 -t 10 ./test</div></div><div><br></div><div>That is, you can either look at test.cc, or at the preprocessed test.i to see the problem. The current output is located in the file "106581.output".</div>
<div><br></div><div>The screen output will be somewhat jumbled -- sorry, I can clean this up. The screen output indicates that a vector4double containing all false (all elements -1.0) has operator[] applied to all elements, which works correctly. These are then converted to bool (by a routine of mine), which works fine -- these are the lines showing "[]=0" where 0 indicates false. The line "fvml(x)=1 [0x01]" then shows that the result of the 3 scalar && operations yields true.</div>
<div><br></div><div>If the error is not present, then the line "Error in all(false):" should disappear.</div><div><br></div><div>The relevant code that fails is the routine all() in the file vec_qpx_double4.h. This routine calls operator[] on a vector, and then reduces the elements via the && operators.</div>
<div><br></div><div>Let me know if you need more information.</div><div><br></div><div>-erik</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 5, 2013 at 2:57 PM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">----- Original Message -----<br>
><br>
> Hal<br>
><br>
><br>
> I this version supposed to handle the && operator correctly?<br>
<br>
</div>Yes, I fixed the bug responsible for that issue.<br>
<div class="im"><br>
><br>
><br>
> I believe that my original test case now works fine, but I encounter<br>
> a different problem with the && and || operators, even without<br>
> optimization.<br>
<br>
</div>Can you point me to the failing code and I'll take a look.<br>
<br>
Thanks again,<br>
Hal<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
><br>
> -erik<br>
><br>
><br>
><br>
><br>
><br>
> On Tue, Jul 2, 2013 at 12:07 PM, Hal Finkel < <a href="mailto:hfinkel@anl.gov">hfinkel@anl.gov</a> ><br>
> wrote:<br>
><br>
><br>
> Hello everyone,<br>
><br>
> I've upgraded the bgclang install on vesta/mira to build<br>
> r185415-20130701. This build incorporates a number of important bug<br>
> fixes, and while hitting these bugs seems rare, I recommend that all<br>
> codes compiled with previous builds be recompiled.<br>
><br>
> For those of you maintaining your own installs, I've posted the<br>
> updated patches and build/wrapper scripts on:<br>
> <a href="https://trac.alcf.anl.gov/projects/llvm-bgq" target="_blank">https://trac.alcf.anl.gov/projects/llvm-bgq</a><br>
><br>
> -Hal<br>
><br>
> --<br>
> Hal Finkel<br>
> Assistant Computational Scientist<br>
> Leadership Computing Facility<br>
> Argonne National Laboratory<br>
> _______________________________________________<br>
> llvm-bgq-discuss mailing list<br>
> <a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov">llvm-bgq-discuss@lists.alcf.anl.gov</a><br>
> <a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss" target="_blank">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Erik Schnetter < <a href="mailto:schnetter@cct.lsu.edu">schnetter@cct.lsu.edu</a> ><br>
> <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br>
<br>
--<br>
Hal Finkel<br>
Assistant Computational Scientist<br>
Leadership Computing Facility<br>
Argonne National Laboratory<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Erik Schnetter <<a href="mailto:schnetter@cct.lsu.edu" target="_blank">schnetter@cct.lsu.edu</a>><br><a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a>
</div>