<?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 Richard,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112462#M24445</link>
    <description>&lt;P&gt;Richard,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;here description &amp;nbsp;of this difference&amp;nbsp;extracted from MKL User's Guide (&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="https://software.intel.com/en-us/node/528507)" target="_blank"&gt;https://software.intel.com/en-us/node/528507)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;TABLE border="1" cellpadding="4" frame="hsides" id="GUID-1FA5073E-434C-47F7-A676-F417D2B7E7A9" rules="all" style="box-sizing: border-box; border-collapse: collapse; margin-top: 1.6em; margin-bottom: 1.6em; border-width: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: white; border-bottom-color: white; border-left-color: white; border-image: initial; border-top-style: none; border-top-color: initial; max-width: 100%; overflow-x: auto; display: block; width: 702.4px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px;" summary="" width="100%"&gt;
	&lt;TBODY style="box-sizing: border-box; border-style: none;"&gt;
		&lt;TR style="box-sizing: border-box; border-bottom: 1px solid rgb(204, 204, 204); background-color: rgb(242, 242, 242);"&gt;
			&lt;TD class="cellrowborder" headers="d66583e51" style="box-sizing: border-box; padding: 9px 10px; border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);" valign="top" width="30%"&gt;
				&lt;P id="GUID-9C3554C2-FFB0-459D-A3A6-5BAED9B2E988" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;&lt;SPAN class="filepath" id="GUID-4F94F7BD-4A78-4EC7-8722-B2CEFF221866" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;lib/intel64&lt;/SPAN&gt;&lt;SPAN class="filepath" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;_lin&lt;/SPAN&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD class="row-nocellborder" headers="d66583e57" style="box-sizing: border-box; padding: 9px 10px; background: none; border-right: 1px solid rgb(204, 204, 204);" valign="top" width="70%"&gt;
				&lt;P id="GUID-82076AB8-F1A5-4D08-BD99-B38F6E6A931D" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;Static libraries and shared objects for the Intel® 64 architecture&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
		&lt;TR style="box-sizing: border-box; border-bottom: 1px solid rgb(204, 204, 204); background-color: rgb(242, 242, 242);"&gt;
			&lt;TD class="cellrowborder" headers="d66583e51" style="box-sizing: border-box; padding: 9px 10px; border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);" valign="top" width="30%"&gt;
				&lt;P id="GUID-07825336-E59E-4384-898E-6C9BE1342933" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;&lt;SPAN class="filepath" id="GUID-4CE47327-D859-48C2-8189-92B516449D20" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;lib/&lt;/SPAN&gt;&lt;SPAN class="filepath" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;intel64_lin_&lt;/SPAN&gt;&lt;SPAN class="filepath" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;mic&lt;/SPAN&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD class="row-nocellborder" headers="d66583e57" style="box-sizing: border-box; padding: 9px 10px; background: none; border-right: 1px solid rgb(204, 204, 204);" valign="top" width="70%"&gt;
				&lt;P id="GUID-654CC7D3-AE39-4584-A08B-1B6FF610EBCB" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;Static libraries and shared objects for the Intel® MIC architecture&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
	&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;and we would also recommend to check &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;MKL Linker Adviser&lt;/A&gt; in the case if some similar issues will be encountered.&lt;/P&gt;

&lt;P&gt;regards.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 07:22:05 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2016-10-13T07:22:05Z</dc:date>
    <item>
      <title>static linking when using lapack routine dsytrf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112460#M24443</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the recent 2017 version of the&amp;nbsp;&lt;B&gt;Parallel Studio XE Composer Edition for Fortran Linux&lt;/B&gt;&lt;/P&gt;

&lt;P&gt;In my program I am calling Lapack routines dsytrf and dsytri2 . I need to statically link the program&lt;/P&gt;

&lt;P&gt;In my Makefile I have&lt;/P&gt;

&lt;P&gt;$(COMPUTE_INVERSE): $(OBJS)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;$(LNK) $(LDFLAGS) &amp;nbsp;-o $@ $(OBJS) $(MKLPATH)/libmkl_lapack95_lp64.a $(MKLPATH)/libmkl_blas95_lp64.a &amp;nbsp;-Wl,--start-&lt;SPAN style="font-size: 1em;"&gt;group&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;$(MKLPATH)/libmkl_intel_lp64.a $(MKLPATH)/libmkl_intel_thread.a $(MKLPATH)/libmkl_core.a -Wl,--end-group $(LIBS) $(RLIBS)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I defined LDFLAGS =&amp;nbsp;&amp;nbsp;-static-intel -Bstatic -static-libgcc&lt;/P&gt;

&lt;P&gt;I was unsure of what to use for MKLPATH. I initially used MKLROOT, which is set for me when i source&amp;nbsp;/opt/intel/bin/compilervars.sh -arch intel64 -platform linux in my .bashrc file. (If I&amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;echo $MKLROOT &amp;nbsp;i get&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em;"&gt;/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Then i noticed that the libraries such as&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;libmkl_intel_lp64.a are in two places :&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px;"&gt;$(MKLROOT)&lt;/SPAN&gt;/lib/intel64_lin_mic/libmkl_lapack95_lp64.a&lt;BR /&gt;
	$(MKLROOT)/lib/intel64_lin/libmkl_lapack95_lp64.a&lt;/P&gt;

&lt;P&gt;My first question is what is the difference?&lt;/P&gt;

&lt;P&gt;The first option (_lin_mic) seems to work better.&lt;/P&gt;

&lt;P&gt;I still get a linking error though&lt;/P&gt;

&lt;P&gt;ld: /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64_lin_mic/libmkl_intel_lp64.a(_dsytrf_lp64.o): Relocations in generic ELF (EM: 181)&lt;BR /&gt;
	/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64_lin_mic/libmkl_intel_lp64.a: could not read symbols: File in wrong format&lt;/P&gt;

&lt;P&gt;Does anyone know what is going wrong ?&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Richard&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 05:51:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112460#M24443</guid>
      <dc:creator>Richard_Kerr</dc:creator>
      <dc:date>2016-10-13T05:51:52Z</dc:date>
    </item>
    <item>
      <title>Quote:The first option (_lin</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112461#M24444</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;The first option (_lin_mic) seems to work better.&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I do not know by which criteria you say that, but note: unless you have MIC hardware or you are doing cross-development with the objective of eventually running the EXE on a target machine with MIC hardware, you should stay away from anything with "mic" in its name.&lt;/P&gt;

&lt;P&gt;Typically, MIC hardware is located on an expensive PCIe board, and you would certainly know if you have a MIC board installed in your system/server.&lt;/P&gt;

&lt;P&gt;See&amp;nbsp;http://www.intel.com/content/www/us/en/architecture-and-technology/many-integrated-core/intel-many-integrated-core-architecture.html .&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112461#M24444</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-10-13T07:00:00Z</dc:date>
    </item>
    <item>
      <title>Richard, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112462#M24445</link>
      <description>&lt;P&gt;Richard,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;here description &amp;nbsp;of this difference&amp;nbsp;extracted from MKL User's Guide (&lt;SPAN style="font-size: 13.008px;"&gt;&lt;A href="https://software.intel.com/en-us/node/528507)" target="_blank"&gt;https://software.intel.com/en-us/node/528507)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;TABLE border="1" cellpadding="4" frame="hsides" id="GUID-1FA5073E-434C-47F7-A676-F417D2B7E7A9" rules="all" style="box-sizing: border-box; border-collapse: collapse; margin-top: 1.6em; margin-bottom: 1.6em; border-width: initial; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: white; border-bottom-color: white; border-left-color: white; border-image: initial; border-top-style: none; border-top-color: initial; max-width: 100%; overflow-x: auto; display: block; width: 702.4px; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 13px;" summary="" width="100%"&gt;
	&lt;TBODY style="box-sizing: border-box; border-style: none;"&gt;
		&lt;TR style="box-sizing: border-box; border-bottom: 1px solid rgb(204, 204, 204); background-color: rgb(242, 242, 242);"&gt;
			&lt;TD class="cellrowborder" headers="d66583e51" style="box-sizing: border-box; padding: 9px 10px; border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);" valign="top" width="30%"&gt;
				&lt;P id="GUID-9C3554C2-FFB0-459D-A3A6-5BAED9B2E988" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;&lt;SPAN class="filepath" id="GUID-4F94F7BD-4A78-4EC7-8722-B2CEFF221866" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;lib/intel64&lt;/SPAN&gt;&lt;SPAN class="filepath" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;_lin&lt;/SPAN&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD class="row-nocellborder" headers="d66583e57" style="box-sizing: border-box; padding: 9px 10px; background: none; border-right: 1px solid rgb(204, 204, 204);" valign="top" width="70%"&gt;
				&lt;P id="GUID-82076AB8-F1A5-4D08-BD99-B38F6E6A931D" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;Static libraries and shared objects for the Intel® 64 architecture&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
		&lt;TR style="box-sizing: border-box; border-bottom: 1px solid rgb(204, 204, 204); background-color: rgb(242, 242, 242);"&gt;
			&lt;TD class="cellrowborder" headers="d66583e51" style="box-sizing: border-box; padding: 9px 10px; border-right: 1px solid rgb(204, 204, 204); border-left: 1px solid rgb(204, 204, 204);" valign="top" width="30%"&gt;
				&lt;P id="GUID-07825336-E59E-4384-898E-6C9BE1342933" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;&lt;SPAN class="filepath" id="GUID-4CE47327-D859-48C2-8189-92B516449D20" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;lib/&lt;/SPAN&gt;&lt;SPAN class="filepath" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;intel64_lin_&lt;/SPAN&gt;&lt;SPAN class="filepath" style="box-sizing: border-box; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;mic&lt;/SPAN&gt;&lt;/P&gt;
			&lt;/TD&gt;
			&lt;TD class="row-nocellborder" headers="d66583e57" style="box-sizing: border-box; padding: 9px 10px; background: none; border-right: 1px solid rgb(204, 204, 204);" valign="top" width="70%"&gt;
				&lt;P id="GUID-654CC7D3-AE39-4584-A08B-1B6FF610EBCB" style="box-sizing: border-box; word-wrap: break-word; margin-bottom: 1em; line-height: 1.4; max-width: 100%; width: auto;"&gt;Static libraries and shared objects for the Intel® MIC architecture&lt;/P&gt;
			&lt;/TD&gt;
		&lt;/TR&gt;
	&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;and we would also recommend to check &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;MKL Linker Adviser&lt;/A&gt; in the case if some similar issues will be encountered.&lt;/P&gt;

&lt;P&gt;regards.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:22:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112462#M24445</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-10-13T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Thanks, I now understand the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112463#M24446</link>
      <description>&lt;P&gt;Thanks, I now understand the difference between intel_lin and intel_lin_mc&lt;BR /&gt;
	&lt;BR /&gt;
	But I still don't know why I am getting the "&lt;SPAN style="font-size: 12px;"&gt;Relocations in generic ELF (EM: 181)" and "&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px;"&gt;could not read symbols: File in wrong format" messages.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I have looked at the Linker Advisor and there is nothing there that I haven't tried. I tested both the openMP and sequential threading layer options.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 09:11:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/static-linking-when-using-lapack-routine-dsytrf/m-p/1112463#M24446</guid>
      <dc:creator>Richard_Kerr</dc:creator>
      <dc:date>2016-10-13T09:11:57Z</dc:date>
    </item>
  </channel>
</rss>

