On Fri, Mar 1, 2013 at 3:40 PM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For testing, it will help if this is deterministic (I think)... or at least if you have the option to reproduce any particular run that will be useful.<br>
<div class="im"><br></div></blockquote><div><br>The problem is then to make sure that one of the problematic seeds is used. I will modify my code to print out the used seed during each run, and once a bad once is found I will keep running with it.<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
><br>
> I will happily try the flags you mentioned. Unfortunately, when I<br>
> switched to using static linkage, I ran into a rather strange<br>
> compilation problem:<br>
><br>
> [ 9%] Building CXX object<br>
> CMakeFiles/Backproj-2d.dir/test/transform/Backproj-2d.cpp.o<br>
> /home/projects/llvm/r175919-20130222/bin/bgclang++ -Wall -std=c++11<br>
> -static -o<br>
> CMakeFiles/Backproj-2d.dir/test/transform/Backproj-2d.cpp.o -c<br>
> /home/poulson/dist-butterfly/test/transform/Backproj-2d.cpp<br>
> /home/poulson/dist-butterfly/test/transform/Backproj-2d.cpp:8:10:<br>
> fatal error:<br>
> 'dist-butterfly.hpp' file not found<br>
> #include "dist-butterfly.hpp"<br>
<br>
</div>This is the real problem. Are you missing a -I<include/path> or something like that?<br>
<br>
FWIW, the bgclang++ wrapper script will pass -static by default, so unless you're specifically passing -shared or setting BGCLANG_STATIC_LINKING=no, then you were probably statically linking all along (assuming you were linking through the wrapper script as well). My fear was that the wrapper script was compiling assuming static linking (which is the default), but then CMake was invoking the linker directly assuming dynamic linking, and this was causing problems.<br>

<div class="im"><br></div></blockquote><div><br>It turns out the problem *was* CMake/me. For whatever reason I added a line break into the string specifying the compiler flags and CMake chose to do some very weird things in response. I think this has happened to me before (and believe it or not, somehow it happened to me again before finishing this email). Sorry. <br>
<br>Anyway, I've verified that the executables are now static and tests with one seed passed and another failed (in the same place as before according to your objdump trick).<br><br>When I add the flags you requested, during the build I see:<br>
clang: warning: argument unused during compilation: '-mllvm -post-RA-scheduler=0'<br><br>I should be able to let you know soon whether or not that changes anything.<br><br>Jack<br></div></div>