<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>There are several errors here. The “multiple definition of
‘_Unwind_SjLj_Unregister’” and similar are because you need to add
-static-libgcc to ADD_FFLAGS, so you should have ADD_FFLAGS=”-fopenmp
-static-libgcc”.</DIV>
<DIV> </DIV>
<DIV>I don’t think MKL supports using MinGW gcc/gfortran on Windows. The _intel_
in those library names indicates they are the versions intended for use with the
Intel compilers. Does Windows MKL include library versions named _gnu_ or
_mingw_ or anything to that effect? A quick Google search indicates that
__security_check_cookie and __GSHandlerCheck come from Visual Studio. You may
need to find and link against bufferoverflowu.lib and/or gshandler.obj, if you
can find those files anywhere on your system.</DIV>
<DIV> </DIV>
<DIV>-Tony</DIV>
<DIV> </DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=bakhtvar@gmail.com
href="mailto:bakhtvar@gmail.com">Mostafa.B</A> </DIV>
<DIV><B>Sent:</B> Friday, May 17, 2013 2:25 PM</DIV>
<DIV><B>To:</B> <A title=kelman@berkeley.edu
href="mailto:kelman@berkeley.edu">Tony Kelman</A> </DIV>
<DIV><B>Cc:</B> <A title=ipopt@list.coin-or.org
href="mailto:ipopt@list.coin-or.org">ipopt@list.coin-or.org</A> </DIV>
<DIV><B>Subject:</B> Re: [Ipopt] Multiple Cores</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV dir=ltr>I just figured out that the_dll libraries should be found so using
the below I configured IPopt successfully
<DIV> </DIV>
<DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">../configure
ADD_FFLAGS=-fopenmp \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
--with-blas=”-L/C/Intel/COMPOS~1/mkl/lib/intel64 \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px"> -lmkl_intel_lp64_dll
-lmkl_intel_thread_dll -lmkl_core_dll \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
-Wl,--rpath,/C/Intel/COMPOS~1/mkl/lib/intel64” \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
--with-lapack=”-L/C/Intel/COMPOS~1/mkl/lib/intel64 \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px"> -lmkl_intel_lp64_dll
-lmkl_intel_thread_dll -lmkl_core_dll \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
-Wl,--rpath,/C/Intel/COMPOS~1/mkl/lib/intel64”</DIV></DIV>
<DIV class=gmail_extra> </DIV>
<DIV class=gmail_extra>but when I ran "make" I got an error, bad reloc address
0x1 in section '.text[dgetrf].</DIV>
<DIV class=gmail_extra> </DIV>
<DIV class=gmail_extra>I have also attached the screenshot showing the
error.</DIV>
<DIV class=gmail_extra> </DIV>
<DIV class=gmail_extra>any suggestions?</DIV>
<DIV class=gmail_extra> </DIV>
<DIV class=gmail_extra>Regards</DIV>
<DIV class=gmail_extra> </DIV>
<DIV class=gmail_extra>-Mosy</DIV>
<DIV class=gmail_extra> </DIV>
<DIV class=gmail_extra><IMG alt="Inline image 1"
src="cid:EC3F8A56A6B849E2A59840C564661193@TKsamsung"><BR></DIV>
<DIV class=gmail_extra>
<DIV> </DIV>
<DIV class=gmail_quote>On Fri, May 17, 2013 at 12:28 PM, Mostafa.B <SPAN
dir=ltr><<A href="mailto:bakhtvar@gmail.com"
target=_blank>bakhtvar@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>Hi,
<DIV> </DIV>
<DIV>I just tried what you said in Windows 8 64 bit, MingW64 as below:</DIV>
<DIV> </DIV>
<DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">../configure
ADD_FFLAGS=-fopenmp \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
--with-blas=”-L/C/Intel/COMPOS~1/mkl/lib/intel64 \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px"> -lmkl_intel_lp64
-lmkl_intel_thread -lmkl_core \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
-Wl,--rpath,/C/Intel/COMPOS~1/mkl/lib/intel64” \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
--with-lapack=”-L/C/Intel/COMPOS~1/mkl/lib/intel64 \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px"> -lmkl_intel_lp64
-lmkl_intel_thread -lmkl_core \</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">
-Wl,--rpath,/C/Intel/COMPOS~1/mkl/lib/intel64”</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px"> </DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">but I get configuration
error: BLAS doesn't work</DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px"> </DIV>
<DIV style="FONT-FAMILY: calibri; FONT-SIZE: 16px">-Mosy</DIV></DIV></DIV>
<DIV class=HOEnZb>
<DIV class=h5>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Mon, May 13, 2013 at 10:28 AM, Tony Kelman <SPAN
dir=ltr><<A href="mailto:kelman@berkeley.edu"
target=_blank>kelman@berkeley.edu</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>
<DIV dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; FONT-SIZE: 12pt">
<DIV>Quick correction. In my last email when I said “Here’s how I most
recently configured Ipopt to use sequential MKL,” that was actually what I
used for mulithreaded MKL, sorry.</DIV>
<DIV> </DIV>
<DIV>And regarding use with MA86 or MA97, be sure you compile them with
OpenMP support (hence the FFLAGS=-fopenmp, assuming gfortran compiler). You
control the number of threads used by an OpenMP solver (MA86, MA97, and
Pardiso) by setting the environment variable OMP_NUM_THREADS.</DIV>
<DIV> </DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">If
you’re using the bash shell, you set an environment variable as follows
(example for 4 threads):</DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">export
OMP_NUM_THREADS=4</DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">With
C shell, the corresponding command is:</DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">setenv
OMP_NUM_THREADS 4</DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">When
you use both multithreaded MKL and a multithreaded linear solver, you should
control the number of threads used by MKL specifically with the
MKL_NUM_THREADS environment variable, otherwise it will use the
OMP_NUM_THREADS setting (which may not be what you want, if you’ve got a
parallel linear solver calling parallel BLAS).</DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">WSMP
uses pthreads rather than OpenMP, so you control the number of threads used
with that solver by an Ipopt option wsmp_num_threads instead of an
environment variable.</DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">One
thing I’ve noticed when running Ipopt with a parallel linear solver is the
“Total CPU secs in IPOPT” will be higher than the wall time (multiple CPU’s
are being used, so I guess it means what it says). With
print_timing_statistics set to yes you will get the CPU time, system time,
and wall time all broken down.</DIV></DIV></DIV><SPAN><FONT color=#888888>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">-Tony</DIV></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"></DIV> </DIV></DIV></FONT></SPAN></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV>
<DIV> </DIV></DIV></DIV></DIV></DIV></DIV></BODY></HTML>