<div dir="ltr">The illegal instruction is most likely due to either<div> </div><div>1. Mixing 64 and 32 bit code.</div><div><br></div><div>or</div><div><br></div><div>2. Compiling code for the wrong processor type (e.g. by specifying march=something when in fact your processor isn't of that type.)</div><div><br></div><div>In building CSDP itself, you will adjust the CFLAGS in the Makefile to specify </div><div> </div><div>-m32                 32 bit code</div><div>-fopenmp          to use OpenMP threading</div><div>-ansi</div><div>-Ofast</div><div>-Wall<br></div><div>-DUSEOPENMP</div><div>-DSETNUMTHREADS</div><div><br></div><div>For 32 bit code you must not use -DBIT64.  </div><div> </div><div>In building OpenBLAS, you need to make sure that you've built a 32 bit version of OpenBLAS and that you've turned on OpenMP.  Use make with the options</div><div><br></div><div>USE_OPENMP=1         (to use OpenMP threading)</div><div>BINARY=32                   (for 32 bit mode) </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 12, 2017 at 7:05 PM, Frederic Peugny <span dir="ltr"><<a href="mailto:frederic.peugny@gmail.com" target="_blank">frederic.peugny@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am interested to use the Csdp algorithm to solve a kalman filtering problem(*)<br>
<br>
What I have managed is to compile and link the Library and the example.c given with the sources.<br>
I use Openblas as Blas/Lapack libraries. Since I have Blas already installed in my Ubuntu 12.04 PC as VirtualBox 32 bits I had to redirect the 32 bits compiled Openblas<br>
<br>
sudo update-alternatives --install /usr/lib/libblas_old/libblas.<wbr>so.3 libblas.so.3 /usr/lib/libblas/lib/<wbr>libopenblas.so.0 \<br>
--slave /usr/lib/liblapack.so.3 liblapack.so.3 /usr/lib/libblas/lib/<wbr>libopenblas.so.0<br>
<br>
Then I modified the Csdp Makefile to link libopenblas.a and added -m32 in CFLAGS to avoid a problem (my native HW is 64 bits but my Ubuntu run 32 bit).<br>
<br>
Now I have a problem with the first run of the example in the example/ folder.<br>
It reads: Illegal instruction (core dumped)<br>
recompiling with -g flag says just more that the program has a segmentation fault when the instruction initsoln(7,2,C,b,constraints,&<wbr>X,&y,&Z)<br>
<div dir="auto"><br></div><div dir="auto">I am blocked: is it openblas or something else ?</div>
<br><div dir="auto">
(*) Li</div><br>
--<br><div dir="auto">
Frédéric</div><div dir="auto">France </div><br><br>
France<span class="HOEnZb"><font color="#888888"><br>
<div dir="ltr">-- <br></div><div class="m_4207010850905739718gmail_signature" data-smartmail="gmail_signature">Frédéric Peugny<br>06 50 32 92 74<br>Résidence les Berges du Midi, Bat. A, N°19<br>25 rue du Bosc<br>31150 FENOUILLET<br>France</div>
</font></span><br>______________________________<wbr>_________________<br>
Csdp mailing list<br>
<a href="mailto:Csdp@list.coin-or.org">Csdp@list.coin-or.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.org_mailman_listinfo_csdp&d=DwICAg&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=v6WE143jZEM_60H8_5y1Mg&m=BOa33i0oYQBUYwrSJTuVccIBzeC_e_4YzZZAJWuH7V4&s=vm6KFKbLgz0WHI7jeGQNay2NOnNgfBn_WwfaGPyI2iM&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.<wbr>com/v2/url?u=https-3A__list.<wbr>coin-2Dor.org_mailman_<wbr>listinfo_csdp&d=DwICAg&c=Ngd-<wbr>ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLx<wbr>WPA_2Wlc4&r=v6WE143jZEM_60H8_<wbr>5y1Mg&m=<wbr>BOa33i0oYQBUYwrSJTuVccIBzeC_e_<wbr>4YzZZAJWuH7V4&s=<wbr>vm6KFKbLgz0WHI7jeGQNay2NOnNgfB<wbr>n_WwfaGPyI2iM&e=</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Brian Borchers                          <a href="mailto:borchers@nmt.edu" target="_blank">borchers@nmt.edu</a><br>Department of Mathematics      <a href="http://www.nmt.edu/~borchers/" target="_blank">http://www.nmt.edu/~borchers/</a><br>New Mexico Tech                       Phone: (575) 322-2592<br>Socorro, NM 87801                   FAX: (575) 835-5366</div>
</div>