[ADOL-C] Building with OpenMP support
Dominique Orban
dominique.orban at gmail.com
Sat May 10 16:03:52 EDT 2014
ADOL-C 2.3.0 doesn't build with OpenMP support on OSX with gcc
(--with-openmp-flag=-fopenmp). It fails with
Undefined symbols for architecture x86_64:
"_omp_get_num_threads", referenced from:
endParallel() in tape_handling.o
beginParallel() in tape_handling.o
"_omp_get_thread_num", referenced from:
adouble::adouble() in adouble.o
adouble::adouble() in adouble.o
adouble::adouble(double) in adouble.o
adouble::adouble(double) in adouble.o
adouble::adouble(adouble const&) in adouble.o
adouble::adouble(adouble const&) in adouble.o
adouble::adouble(adub const&) in adouble.o
...
ld: symbol(s) not found for architecture x86_64
The reason is that libgomp was never included. Configuring with
LIBS=-lgomp
has ADOL-C build successfully and all tests pass.
In ADOLC-2.5.0, building fails with
tape_handling.cpp:1022:26: fatal error: adolc_openmp.h: No such file or
directory
#include "adolc_openmp.h"
^
compilation terminated.
This time I have to configure with
CFLAGS="-I$PWD/ADOL-C/include/adolc" \
CXXFLAGS="-I$PWD/ADOL-C/include/adolc"
(it doesn't seem necessary to specify LIBS=-lgomp any more).
But I suppose configure should do all that by itself, without user
intervention?!
Thanks,
Dominique
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/adol-c/attachments/20140510/ed09e2c7/attachment.html>
More information about the ADOL-C
mailing list