<div dir="ltr"><div>ADOL-C 2.3.0 doesn't build with OpenMP support on OSX with gcc (--with-openmp-flag=-fopenmp). It fails with</div><div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>
<div>Undefined symbols for architecture x86_64:</div></div><div><div> "_omp_get_num_threads", referenced from:</div></div><div><div> endParallel() in tape_handling.o</div></div><div><div> beginParallel() in tape_handling.o</div>
</div><div><div> "_omp_get_thread_num", referenced from:</div></div><div><div> adouble::adouble() in adouble.o</div></div><div><div> adouble::adouble() in adouble.o</div></div><div><div> adouble::adouble(double) in adouble.o</div>
</div><div><div> adouble::adouble(double) in adouble.o</div></div><div><div> adouble::adouble(adouble const&) in adouble.o</div></div><div><div> adouble::adouble(adouble const&) in adouble.o</div></div>
<div><div> adouble::adouble(adub const&) in adouble.o</div></div><div><div> ...</div></div><div><div>ld: symbol(s) not found for architecture x86_64</div></div></blockquote><div><br></div><div>The reason is that libgomp was never included. Configuring with</div>
<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>LIBS=-lgomp</div></blockquote><div><br></div><div>has ADOL-C build successfully and all tests pass.</div><div><br></div><div>In ADOLC-2.5.0, building fails with</div>
<div><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>tape_handling.cpp:1022:26: fatal error: adolc_openmp.h: No such file or directory</div></div><div><div> #include "adolc_openmp.h"</div>
</div><div><div> ^</div></div><div><div>compilation terminated.</div></div></blockquote><div><br></div><div>This time I have to configure with</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>CFLAGS="-I$PWD/ADOL-C/include/adolc" \</div><div>CXXFLAGS="-I$PWD/ADOL-C/include/adolc"</div></blockquote><div><br></div><div>(it doesn't seem necessary to specify LIBS=-lgomp any more).</div>
<div><br></div><div>But I suppose configure should do all that by itself, without user intervention?!</div><div><br></div><div>Thanks,</div><br clear="all"><div>Dominique</div>
</div>