<?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: anyone could help me about static dynamic library? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922417#M13140</link>
    <description>&lt;P&gt;To link the BLAS dynamically you should be referencing -lmkl to link in libmkl.so. This will dynamically dispatch the appropriate software at runtime. So if you have an Intel Pentium 4 processor,libmkl_p4.so would be linked at runtime. Take a look at &lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/mklusel.htm" target="_blank"&gt;http://www.intel.com/software/products/mkl/docs/mklusel.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for further information on linking.&lt;/P&gt;
&lt;P&gt;-Todd&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2004 23:56:58 GMT</pubDate>
    <dc:creator>Todd_R_Intel</dc:creator>
    <dc:date>2004-12-21T23:56:58Z</dc:date>
    <item>
      <title>anyone could help me about static dynamic library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922416#M13139</link>
      <description>&lt;DIV&gt;i am a newbee in ifc. i found one problem:&lt;/DIV&gt;
&lt;DIV&gt;i compiled one program. the file of libmkl_p4.so is needed for optimization. but in final step, i want compiling in static dynamic library. so it is conflicted with -static, which exclude the .so file. i have no idea now.&lt;/DIV&gt;
&lt;DIV&gt;maybe the problem is simple and my question is stupid .could anyone help me?&lt;/DIV&gt;
&lt;DIV&gt;thank you &lt;/DIV&gt;
&lt;DIV&gt;here is the abstract of my complint option&lt;/DIV&gt;
&lt;DIV&gt;FC=ifort&lt;/DIV&gt;
&lt;DIV&gt;FFLAGS=-tpp5 -lirc -O2 -static-libirc&lt;/DIV&gt;
&lt;DIV&gt;GUIDE=/opt/intel/mkl72/lib/32/libguide.a&lt;BR /&gt;LAPACK=/opt/intel/mkl72/lib/32/libmkl_lapack.a&lt;BR /&gt;BLAS=/opt/intel/mkl72/lib/32/libmkl_p4.so&lt;BR /&gt;LIBS=-L/opt/intel_fc_80/lib -static-libcxa -lguide $(LAPACK) $(BLAS) $(G2C)$(GUIDE) -L/opt/intel_fc_80/lib -lirc&lt;BR /&gt;and &lt;/DIV&gt;
&lt;DIV&gt; $(FC) -static -static-libcxa -lirc -lguide -lpthread -lirc -o siesta &lt;BR /&gt; $(LDFLAGS) $(ALL_OBJS) $(FDF) $(MPI_INTERFACE)&lt;BR /&gt; $(NETCDF_INTERFACE) $(COMP_LIBS) $(LIBS)&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Dec 2004 23:12:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922416#M13139</guid>
      <dc:creator>tsigalko2002</dc:creator>
      <dc:date>2004-12-21T23:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: anyone could help me about static dynamic library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922417#M13140</link>
      <description>&lt;P&gt;To link the BLAS dynamically you should be referencing -lmkl to link in libmkl.so. This will dynamically dispatch the appropriate software at runtime. So if you have an Intel Pentium 4 processor,libmkl_p4.so would be linked at runtime. Take a look at &lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.intel.com/software/products/mkl/docs/mklusel.htm" target="_blank"&gt;http://www.intel.com/software/products/mkl/docs/mklusel.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;for further information on linking.&lt;/P&gt;
&lt;P&gt;-Todd&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2004 23:56:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922417#M13140</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2004-12-21T23:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: anyone could help me about static dynamic library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922418#M13141</link>
      <description>&lt;DIV align="left"&gt;maybe i have not expressed clearly enough. my horrible English :smileysad:&lt;/DIV&gt;
&lt;DIV align="left"&gt;&lt;/DIV&gt;
&lt;DIV align="left"&gt;what i want is to compile the code in one machine and the program could run on other machines without any change. i mean static compiling. &lt;/DIV&gt;
&lt;DIV align="left"&gt;in fact, the program could run in other machine if i copied libmkl_p4.so into the new machine. new i do not know if i could find a way without copying the .so file.&lt;/DIV&gt;
&lt;DIV align="left"&gt;i noticed that the libmkl_p4.so is different from others. it had no .a file with the same name while in mkl6.0 it had ( ifmy remember is notwrong) . could i get .a file from .so file.&lt;/DIV&gt;
&lt;DIV align="left"&gt;thank you again&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Dec 2004 01:10:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922418#M13141</guid>
      <dc:creator>tsigalko2002</dc:creator>
      <dc:date>2004-12-22T01:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: anyone could help me about static dynamic library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922419#M13142</link>
      <description>&lt;DIV&gt;If you want to link the BLAS statically, link to libmkl_ia32.a. This contains optimized kernels for all the IA32 processors. A check of CPUID at runtime will automatically run the optimal version for that processor. &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;-Todd&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Dec 2004 02:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922419#M13142</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2004-12-22T02:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: anyone could help me about static dynamic library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922420#M13143</link>
      <description>&lt;DIV&gt;i have replaced libmkl_p4.so by libmkl_ia32.a.&lt;/DIV&gt;
&lt;DIV&gt;but still there are new errors.&lt;/DIV&gt;
&lt;DIV&gt;now the lib i was using is &lt;/DIV&gt;
&lt;DIV&gt;ifort -openmp -i-static -static -o Prog -Vaxlib balabala.o  &lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt; -L/opt/intel/mkl72/lib/32 -lmkl_lapack -lmkl_ia32 -lpthread -lguide&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;and the new error is &lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;/opt/intel/mkl72/lib/32/libmkl_ia32.a(_izamax.o): In function `izamax_':&lt;BR /&gt;_izamax.o(.text+0x0): multiple definition of `izamax_'&lt;BR /&gt;linpack.o(.text+0xdbe): first defined here&lt;BR /&gt;/usr/bin/ld: Warning: size of symbol `izamax_' changed from 278 to 60 in /opt/intel/mkl72/lib/32/libmkl_&lt;BR /&gt;ia32.a(_izamax.o)&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;make: *** [Prog] Error 1&lt;BR /&gt;&lt;/STRONG&gt;i am more puzzled. &lt;/DIV&gt;
&lt;DIV&gt;linpack.o is one of my .o files i have compiled. normally, multiple definition should not cause unsuccesful compiling, is it ?&lt;/DIV&gt;
&lt;DIV&gt;thank you again&lt;/DIV&gt;
&lt;DIV&gt;what's more, i found the -mkl option does not work, only -lmkl_ia32 and -lmkl_lapack work.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Dec 2004 18:30:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922420#M13143</guid>
      <dc:creator>tsigalko2002</dc:creator>
      <dc:date>2004-12-22T18:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: anyone could help me about static dynamic library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922421#M13144</link>
      <description>&lt;DIV&gt;It might be more efficient to submit an issue if you are not finding the suggestions here helpful.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Note that there is no '-mkl' option. Intel MKL consists only of librarys. One of the libraries (if you wish to link dynamically) is libmkl.so which can be linked using the '-lmkl' shortcut. That said, the link line you have below should work from the MKL standpoint. Your problem seems to be related to the duplicateinclusion of izamax_ in linpack.o and in MKL.&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Jan 2005 01:59:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922421#M13144</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2005-01-07T01:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: anyone could help me about static dynamic library?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922422#M13145</link>
      <description>The problem here is that your compile module (LINPACK) had the level 1 BLAS in it. At least one function that is not in your compile module is in MKL and further more the compile unit within MKL also has within it one of more of the functions that are in your compile unit so both sets of functions are being linked in, resulting in multiply defined references.

You need to remove the functions from your source code that give multiple defines, recompile, and relink.

Bruce</description>
      <pubDate>Sat, 15 Jan 2005 05:08:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/anyone-could-help-me-about-static-dynamic-library/m-p/922422#M13145</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2005-01-15T05:08:39Z</dc:date>
    </item>
  </channel>
</rss>

