<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: compiling errors using dcsrilu0() in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878482#M9265</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
2nd attempt to post reply:&lt;BR /&gt;Are you mixing up the advice for static and dynamic linking? &lt;BR /&gt;If you static link, but don't put all the necessary libraries inside the begin ... end group, and specify full paths, you will see such errors.&lt;BR /&gt;If you link dynamic libraries, you should require the begin...end qualifiers.&lt;BR /&gt;Please try adhering more closely to the advice in the link advisor, on the right column of forum header page.&lt;BR /&gt;If you are running on a single core, there's no point in linking the thread and OpenMP libraries, rather than sequential.&lt;BR /&gt;</description>
    <pubDate>Mon, 23 Nov 2009 21:48:45 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2009-11-23T21:48:45Z</dc:date>
    <item>
      <title>compiling errors using dcsrilu0()</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878481#M9264</link>
      <description>&lt;BR /&gt;I use the ILU-preconditional BiCGStab to solve a sparse nonsymmetric linear system on a single core. I employ the funciton dcsrilu0() to create a preconditioner. But I got the following error message when I complied my code:&lt;BR /&gt; &lt;BR /&gt; undefined reference to `dcsrilu0_'&lt;BR /&gt;&lt;BR /&gt;I guess I must miss some links. I write my makefile like&lt;BR /&gt;&lt;BR /&gt;*************************************************&lt;BR /&gt;&lt;BR /&gt; CC = mpicc &lt;BR /&gt;CFLAGS = -Wall -g &lt;BR /&gt;Includes =-I/opt/intel/mkl/10.2.1.017/include &lt;BR /&gt;LFLAGS = -L/opt/intel/mkl/10.2.1.017/lib/em64t &lt;BR /&gt;LIBS =-lmkl_scalapack_lp64 -lmkl_blacs_openmpi_lp64 -lmkl_solver_lp64 -lmkl_intel_lp64 -Wl,--start-group -lmkl_intel_thread -lmkl_core -Wl,--end-group -liomp5 -lpthread -lm -lmpi &lt;BR /&gt; &lt;BR /&gt;srcs1 = BiCGStab_OneCore.c mmio.c &lt;BR /&gt;objs1 = $(srcs1: .c=.o) &lt;BR /&gt; &lt;BR /&gt;prog1 = bicgstabOneCore &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;srcs = $(srcs1) &lt;BR /&gt;objs = $(objs1)&lt;BR /&gt;progs = $(prog1) &lt;BR /&gt; &lt;BR /&gt;all : $(progs) &lt;BR /&gt; &lt;BR /&gt;$(prog1): $(objs1) &lt;BR /&gt; $(CC) $(CFLAGS) $(Includes) $(LFLAGS) $(LIBS) -o $@ $^&lt;BR /&gt;&lt;BR /&gt;.c.o: &lt;BR /&gt; $(CC) $(CFLAGS) $(Includes) -c $&amp;lt; &lt;BR /&gt; &lt;BR /&gt;clean: &lt;BR /&gt; $(RM) -rf *.o $(progs)&lt;BR /&gt;&lt;BR /&gt;*******************************************************************************&lt;BR /&gt;&lt;BR /&gt;I am just wondering what's wrong with this makefile. Thanks.&lt;BR /&gt;&lt;BR /&gt;Min</description>
      <pubDate>Mon, 23 Nov 2009 19:54:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878481#M9264</guid>
      <dc:creator>mhuang05</dc:creator>
      <dc:date>2009-11-23T19:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors using dcsrilu0()</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878482#M9265</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
2nd attempt to post reply:&lt;BR /&gt;Are you mixing up the advice for static and dynamic linking? &lt;BR /&gt;If you static link, but don't put all the necessary libraries inside the begin ... end group, and specify full paths, you will see such errors.&lt;BR /&gt;If you link dynamic libraries, you should require the begin...end qualifiers.&lt;BR /&gt;Please try adhering more closely to the advice in the link advisor, on the right column of forum header page.&lt;BR /&gt;If you are running on a single core, there's no point in linking the thread and OpenMP libraries, rather than sequential.&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Nov 2009 21:48:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878482#M9265</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-11-23T21:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors using dcsrilu0()</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878483#M9266</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; 2nd attempt to post reply:&lt;BR /&gt;Are you mixing up the advice for static and dynamic linking? &lt;BR /&gt;If you static link, but don't put all the necessary libraries inside the begin ... end group, and specify full paths, you will see such errors.&lt;BR /&gt;If you link dynamic libraries, you should require the begin...end qualifiers.&lt;BR /&gt;Please try adhering more closely to the advice in the link advisor, on the right column of forum header page.&lt;BR /&gt;If you are running on a single core, there's no point in linking the thread and OpenMP libraries, rather than sequential.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt; Thanks for your reply.&lt;BR /&gt;&lt;BR /&gt; I tried the MKL link line advisor and was given the following suggested link line:&lt;BR /&gt;&lt;BR /&gt; -L$MKLPATH $MKLPATH/libmkl_solver_lp64_sequential.a -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread&lt;BR /&gt;&lt;BR /&gt;So I modified my makefile as follows:&lt;BR /&gt;&lt;BR /&gt; LIBS = /opt/intel/mkl/10.2.1.017/lib/em64t/libmkl_solver_lp64_sequential.a -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread&lt;BR /&gt;&lt;BR /&gt;But, still I got the same error message. Also, if I use static link, it's even worse. &lt;BR /&gt;&lt;BR /&gt;Btw, the reanson I linked the thread and OpenMP is that I previously compiled my sequential programs and parallel programs simultaneously and the makefile worked fine. At that time, I called functions in lapack, scalapack, blacs&lt;BR /&gt;and there was no problem.  &lt;BR /&gt;
&lt;TABLE style="height: 157px;" border="0" cellspacing="5" cellpadding="0" width="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD id="firstcell" style="width: 194px;"&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;BR /&gt; &lt;BR /&gt;
&lt;H1 style="width: 530px;"&gt;&lt;BR /&gt;&lt;/H1&gt;</description>
      <pubDate>Mon, 23 Nov 2009 23:42:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878483#M9266</guid>
      <dc:creator>mhuang05</dc:creator>
      <dc:date>2009-11-23T23:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors using dcsrilu0()</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878484#M9267</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try this line - prerequisites before libs:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;$(CC) $(CFLAGS) $(Includes) $(LFLAGS) $^ $(LIBS) -o $@&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2009 04:30:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878484#M9267</guid>
      <dc:creator>Vladimir_Koldakov__I</dc:creator>
      <dc:date>2009-11-24T04:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: compiling errors using dcsrilu0()</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878485#M9268</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/93629"&gt;Vladimir Koldakov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Try this line - prerequisites before libs:&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;$(CC) $(CFLAGS) $(Includes) $(LFLAGS) $^ $(LIBS) -o $@&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt; Vladimir&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;Hi Vladimir,&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I just modified my makefile according to your suggestion. It works now!!!&lt;/DIV&gt;
&lt;DIV&gt;Thank you so much.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Min&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Nov 2009 03:45:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-errors-using-dcsrilu0/m-p/878485#M9268</guid>
      <dc:creator>mhuang05</dc:creator>
      <dc:date>2009-11-25T03:45:05Z</dc:date>
    </item>
  </channel>
</rss>

