<?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 this has fixed it.. thank you in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061391#M54229</link>
    <description>&lt;P&gt;this has fixed it.. thank you very much&lt;/P&gt;</description>
    <pubDate>Thu, 05 Feb 2015 12:23:35 GMT</pubDate>
    <dc:creator>Aleksandr_S_1</dc:creator>
    <dc:date>2015-02-05T12:23:35Z</dc:date>
    <item>
      <title>Using MKL switch brings "relocation R_X86_64_32" error</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061386#M54224</link>
      <description>&lt;P&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;I have working test project (based on Kevin's sample code from another thread). I just changed in the VS 2013 Intel Performance Libraries -&amp;gt; Use MKL -&amp;gt; Parallel (was None) and got this error.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;PRE class="brush:;"&gt;1&amp;gt; k1om-mpss-linux-ld.exe: C:/Users/ADMINI~1/AppData/Local/Temp/ipo_29323.o: &lt;STRONG&gt;relocation R_X86_64_32 &lt;/STRONG&gt;against `.data' can not be used when making a shared object; recompile with -fPIC

1&amp;gt; C:/Users/ADMINI~1/AppData/Local/Temp/ipo_29323.o: could not read symbols: Bad value

1&amp;gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 15.0\Toolset.targets(1045,5): error MSB6006: "xilink.exe" exited with code 1.
&lt;/PRE&gt;

&lt;P&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;This is command line of the project (-fPIC is there):&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;/Qoffload-option,mic,compiler,"&lt;STRONG&gt;-fPIC&lt;/STRONG&gt;" /GS /Qopenmp /W3 /Gy /Zc:wchar_t /Zi /O3 /Fd"x64\Release\vc120.pdb" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "WIN32PROJECT1_EXPORTS" /D "_WINDLL" /D "_UNICODE" /D "UNICODE" /Qipo /Zc:forScope /GR- /Oi /MD /Fa"x64\Release\" /EHsc /nologo /Fo"x64\Release\" /Qprof-dir "x64\Release\" /Fp"x64\Release\MyDLL.pch" &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;&lt;FONT color="#1e1e1e" size="1" face="Consolas"&gt;If I switch Use MKL to No - everything builds fine.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Feb 2015 16:54:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061386#M54224</guid>
      <dc:creator>Aleksandr_S_1</dc:creator>
      <dc:date>2015-02-01T16:54:18Z</dc:date>
    </item>
    <item>
      <title>Interesting. I'll see whether</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061387#M54225</link>
      <description>&lt;P&gt;Interesting. I'll see whether I can reproduce this.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:37:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061387#M54225</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-02-02T12:37:07Z</dc:date>
    </item>
    <item>
      <title>thank you. let me know if you</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061388#M54226</link>
      <description>&lt;P&gt;thank you. let me know if you want my VS solution zipped. but i believe it must be identical to the one you provided in the other thread (i added code but I &lt;STRONG&gt;think &lt;/STRONG&gt;I didn't change any of the projects properties)&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:46:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061388#M54226</guid>
      <dc:creator>Aleksandr_S_1</dc:creator>
      <dc:date>2015-02-02T12:46:23Z</dc:date>
    </item>
    <item>
      <title>Kevin, do you need more</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061389#M54227</link>
      <description>&lt;P&gt;Kevin, do you need more information on this?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:00:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061389#M54227</guid>
      <dc:creator>Aleksandr_S_1</dc:creator>
      <dc:date>2015-02-04T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Please pardon the delay in</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061390#M54228</link>
      <description>&lt;P&gt;Please pardon the delay in getting back to you. I reproduced this easily even without using MKL in my test case.&lt;/P&gt;

&lt;P&gt;There is an underlying defect where when toggling the MKL setting (&lt;STRONG&gt;Configuration Properties &amp;gt; Intel Performance Libraries &amp;gt; Use Intel® MKL&lt;/STRONG&gt;) the options set under the compiler property setting &lt;STRONG&gt;Configuration Properties &amp;gt; C/C++ &amp;gt; Code Generation [Intel C++] &amp;gt; Additional Options for MIC Offload Compiler&lt;/STRONG&gt; are effectively disabled and not passed to the target compilation, hence the error. Toggling the MKL option you did adds options for the target compilation and that action is what appears to be problematic. It appears only the compiler target compilation property setting is affected. The similar option in the linker property settings seems unaffected but I recommend taking precautions anyway when working around this issue as noted below.&lt;/P&gt;

&lt;P&gt;There is a work around. My test case does not have MKL references so the setting in #1 alone avoids the error; however, I recommend when using MKL you make the two changes below to fully work around this issue.&lt;/P&gt;

&lt;P&gt;1. First, leave the MKL setting (&lt;STRONG&gt;Configuration Properties &amp;gt; Intel Performance Libraries &amp;gt; Use Intel® MKL&lt;/STRONG&gt;) as you have it. Then, under &lt;STRONG&gt;Configuration Properties &amp;gt; C/C++ &amp;gt; Command Line&lt;/STRONG&gt;, add the explicit &lt;STRONG&gt;/Qoffload-option&lt;/STRONG&gt; as follows: &lt;STRONG&gt;/Qoffload-option,mic,compiler,"-fPIC -mkl=parallel"&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;2. Then, under &lt;STRONG&gt;Configuration Properties &amp;gt; Linker &amp;gt; General [C/C++] &amp;gt; Additional Options for MIC Offload Linker&lt;/STRONG&gt; add the explicit option: &lt;STRONG&gt;-mkl=parallel&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I will report this to Development (see internal tracking id below) and keep you updated about the progress on a fix.&lt;/P&gt;

&lt;P&gt;(Internal tracking id: DPD200366176)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(Resolution Update on 11/11/2015): &lt;/STRONG&gt;This defect is fixed in the Intel® Parallel Studio XE 2016 Release (2016.0.110 - Windows)&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Feb 2015 11:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061390#M54228</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-02-04T11:27:00Z</dc:date>
    </item>
    <item>
      <title>this has fixed it.. thank you</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061391#M54229</link>
      <description>&lt;P&gt;this has fixed it.. thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2015 12:23:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061391#M54229</guid>
      <dc:creator>Aleksandr_S_1</dc:creator>
      <dc:date>2015-02-05T12:23:35Z</dc:date>
    </item>
    <item>
      <title>You're welcome. I'll update</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061392#M54230</link>
      <description>&lt;P&gt;You're welcome. I'll update the post on progress on a fix.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Feb 2015 10:59:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061392#M54230</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-02-06T10:59:47Z</dc:date>
    </item>
    <item>
      <title>I confirmed this issue is</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061393#M54231</link>
      <description>&lt;P&gt;I confirmed this issue is fixed in the &lt;STRONG&gt;Intel® Parallel Studio XE 2016 &lt;/STRONG&gt;initial release (2016.0.110 - Windows).&lt;/P&gt;

&lt;P&gt;The underlying defect was in our integrations with Visual Studio. The integrations included in the 2016 release (&lt;STRONG&gt;Version 16.0.79.12&lt;/STRONG&gt;) contain the fix. You can obtain the fix by installing the PSXE 2016 Initial Release. If you require the 15.0 compiler, you can install PSXE 2016 side-by-side and select to use the 15.0 compiler with the newer integrations from the PSXE 2016 release.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 10:06:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-MKL-switch-brings-quot-relocation-R-X86-64-32-quot-error/m-p/1061393#M54231</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-11-11T10:06:55Z</dc:date>
    </item>
  </channel>
</rss>

