[Ipopt] Using Pardiso
Rishi Amrit
rishiamrit at gmail.com
Fri Jul 31 14:51:49 EDT 2009
On Wed, Jul 29, 2009 at 2:37 PM, Rishi Amrit <rishiamrit at gmail.com> wrote:
> Hi,
>
> I was able to compile ipopt 3.7.0 with pardiso using the following
> configure command:
>
> ./configure --prefix=$HOME/octave-src/ipopt370/install ADD_CXXFLAGS="-fPIC
> -fexceptions" ADD_CFLAGS="-fPIC -fexceptions" ADD_FFLAGS="-fPIC
> -fexceptions" --with-pardiso="-fopenmp
> $HOME/octave-src/ipopt370/libpardiso_GNU43_AMD64_INT64_P.so"
>
> Now when I run ipopt on my problem, via mex interface, I get the following
> error:
>
> symbol lookup error:
> /home/rishiamrit/octave-src/ipopt370/libpardiso_GNU43_AMD64_INT64_P.so:
> undefined symbol: GOMP_parallel_start
>
> Any ideas ? Am I supposed to link gomp library
> (/usr/lib/gcc/x86_64-linux-gnu/4.3/libgomp.a) somehow ? If so, how ?
Ok. I found the solution. Thanks to Carl Laird for the pointer. We need to
include the library for gomp in the configure command. I used:
./configure --prefix=$HOME/octave-src/ipopt370/install ADD_CXXFLAGS="-fPIC
-fexceptions" ADD_CFLAGS="-fPIC -fexceptions" ADD_FFLAGS="-fPIC
-fexceptions" --with-pardiso="-fopenmp
$HOME/octave-src/ipopt370/libpardiso_GNU43_AMD64_INT64_P.so"
ADD_LIBS="-L/usr/lib/gcc/x86_64-linux-gnu/4.3 -lgomp"
Now Pardiso works.
Rishi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.coin-or.org/pipermail/ipopt/attachments/20090731/f6f242cc/attachment.html
More information about the Ipopt
mailing list