<div dir="ltr">Hi,<div><br></div><div style>I just tried what you said in Windows 8 64 bit, MingW64 as below:</div><div style><br></div><div style><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"><br></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"><br></div><div style="font-family:Calibri;font-size:16px">-Mosy</div></div></div><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 class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div dir="ltr">
<div style="font-size:12pt;font-family:'Calibri'">
<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-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">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-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">export
OMP_NUM_THREADS=4</div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal"> </div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">With
C shell, the corresponding command is:</div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">setenv
OMP_NUM_THREADS 4</div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal"> </div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">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-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal"> </div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">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-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal"> </div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">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 class="HOEnZb"><font color="#888888">
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal"> </div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">-Tony</div></div></div>
<div>
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal">
<div style="font-size:small;font-style:normal;text-decoration:none;font-family:'Calibri';display:inline;font-weight:normal"></div> </div></div></font></span></div></div></div>
</blockquote></div><br></div>