<?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 Here is miccheck and micinfo. in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948416#M18921</link>
    <description>&lt;P&gt;Here is &lt;STRONG&gt;miccheck&lt;/STRONG&gt; and &lt;STRONG&gt;micinfo&lt;/STRONG&gt;. It seems to be OK. So what may cause that COI timeout?&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;
bar0088@argexpr2:~&amp;gt; export PATH=$PATH:/usr/sbin
bar0088@argexpr2:~&amp;gt; /opt/intel/mic/bin/miccheck

miccheck 2.1.6720-15, created 11:31:20 Jun 21 2013
Copyright 2011-2013 Intel Corporation  All rights reserved

Test 1 Ensure installation matches manifest : OK
Test 2 Ensure host driver is loaded         : OK
Test 3 Ensure driver matches manifest       : OK
Test 4 Detect all listed devices            : OK
MIC 0 Test 1 Find the device                       : OK
MIC 0 Test 2 Check the POST code via PCI           : OK
MIC 0 Test 3 Connect to the device                 : OK
MIC 0 Test 4 Check for normal mode                 : OK
MIC 0 Test 5 Check the POST code via SCIF          : OK
MIC 0 Test 6 Send data to the device               : OK
MIC 0 Test 7 Compare the PCI configuration         : OK
MIC 0 Test 8 Ensure Flash version matches manifest : OK
Status: OK.


bar0088@argexpr2:~&amp;gt; /opt/intel/mic/bin/micinfo
MicInfo Utility Log

Created Tue Mar 18 08:20:20 2014


        System Info
                HOST OS                 : Linux
                OS Version              : 3.0.80-0.7-default
                Driver Version          : 6720-15
                MPSS Version            : 2.1.6720-15
                Host Physical Memory    : 1025538 MB

Device No: 0, Device Name: mic0

        Version
                Flash Version            : 2.1.03.0386
                SMC Firmware Version     : 1.15.4830
                SMC Boot Loader Version  : 1.8.4326
                uOS Version              : 2.6.38.8-g2593b11
                Device Serial Number     : ADKC32401120

        Board
                Vendor ID                : 0x8086
                Device ID                : 0x2250
                Subsystem ID             : 0x2500
                Coprocessor Stepping ID  : 3
                PCIe Width               : Insufficient Privileges
                PCIe Speed               : Insufficient Privileges
                PCIe Max payload size    : Insufficient Privileges
                PCIe Max read req size   : Insufficient Privileges
                Coprocessor Model        : 0x01
                Coprocessor Model Ext    : 0x00
                Coprocessor Type         : 0x00
                Coprocessor Family       : 0x0b
                Coprocessor Family Ext   : 0x00
                Coprocessor Stepping     : B1
                Board SKU                : INVALID SKU
                ECC Mode                 : Enabled
                SMC HW Revision          : Product 225W Passive CS

        Cores
                Total No of Active Cores : 60
                Voltage                  : 997000 uV
                Frequency                : 1052631 kHz

        Thermal
                Fan Speed Control        : N/A
                Fan RPM                  : N/A
                Fan PWM                  : N/A
                Die Temp                 : 49 C

        GDDR
                GDDR Vendor              : Elpida
                GDDR Version             : 0x1
                GDDR Density             : 2048 Mb
                GDDR Size                : 7936 MB
                GDDR Technology          : GDDR5
                GDDR Speed               : 5.000000 GT/s
                GDDR Frequency           : 2500000 kHz
                GDDR Voltage             : 1501000 uV
bar0088@argexpr2:~&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Mar 2014 07:23:54 GMT</pubDate>
    <dc:creator>Pavel_B_</dc:creator>
    <dc:date>2014-03-18T07:23:54Z</dc:date>
    <item>
      <title>Compilation shared libraries problem</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948403#M18908</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;

&lt;P&gt;could someone help me with this issue? I try to compile some OpenMP code, but still wrote this for offload and native compilation:&lt;/P&gt;

&lt;P&gt;bar0088@argexpr2:~/Workspace&amp;gt; icc -openmp vec_add.c -o vec_add.out&lt;BR /&gt;
	ld: warning: libimf.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;BR /&gt;
	ld: warning: libsvml.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;BR /&gt;
	ld: warning: libirng.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;BR /&gt;
	ld: warning: libintlc.so.5, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	If i specify the link to the libraries with command -L /opt/intel/composerxe/lib/mic&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;-L /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64&lt;/P&gt;

&lt;P&gt;bar0088@argexpr2:~/Workspace&amp;gt; icc -openmp vec_add.c -o vec.out -L /opt/intel/composerxe/lib/mic&lt;/P&gt;

&lt;P&gt;ld: skipping incompatible /opt/intel/composerxe/lib/mic/libiomp5.so when searching for -liomp5&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libimf.a when searching for -limf&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libsvml.a when searching for -lsvml&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libirng.a when searching for -lirng&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libipgo.a when searching for -lipgo&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libiomp5.so when searching for -liomp5&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/liboffload.so.5 when searching for liboffload.so.5&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libcilkrts.so.5 when searching for libcilkrts.so.5&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libirc.a when searching for -lirc&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libsvml.a when searching for -lsvml&lt;BR /&gt;
	ld: skipping incompatible /opt/intel/composerxe/lib/mic/libirc_s.a when searching for -lirc_s&lt;BR /&gt;
	ld: warning: libimf.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;BR /&gt;
	ld: warning: libsvml.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;BR /&gt;
	ld: warning: libirng.so, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;BR /&gt;
	ld: warning: libintlc.so.5, needed by /opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/liboffload.so.5, not found (try using -rpath or -rpath-link)&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I have no idea&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;how to fix it. What is wrong?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Thanks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2014 08:57:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948403#M18908</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-15T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Did you source the</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948404#M18909</link>
      <description>&lt;P&gt;Did you source the compilervars.sh/csh script?&lt;/P&gt;

&lt;P&gt;If so check&amp;nbsp;to ensure something has not modified the &lt;STRONG&gt;LD_LIBRARY_PATH &lt;/STRONG&gt;after&amp;nbsp;using the setup script.&amp;nbsp;It must at least include &lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64&lt;/STRONG&gt; to avoid that error. The compilervars script also adds additional paths depending on what other Composer components may be installed.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 16:04:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948404#M18909</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-17T16:04:00Z</dc:date>
    </item>
    <item>
      <title>Yes, I used script command</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948405#M18910</link>
      <description>&lt;P&gt;Yes, I used script command &lt;STRONG&gt;/opt/intel/composerxe/bin/compilervars.sh intel64&lt;/STRONG&gt; and after compilation shows that 4 warnings... output file need some libraries, but some are not found. When I try run it, fails because it's damage.&lt;/P&gt;

&lt;P&gt;bar0088@argexpr2:~/Workspace&amp;gt; ldd Matrix_offload.out&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; linux-vdso.so.1 =&amp;gt;&amp;nbsp; (0x00007ffff45ff000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libmkl_intel_lp64.so =&amp;gt; not found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libmkl_intel_thread.so =&amp;gt; not found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libmkl_core.so =&amp;gt; not found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libiomp5.so =&amp;gt; not found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x00007faf8ddfc000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; liboffload.so.5 =&amp;gt; not found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libcilkrts.so.5 =&amp;gt; not found&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libstdc++.so.6 =&amp;gt; /usr/lib64/libstdc++.so.6 (0x00007faf8daf1000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libgcc_s.so.1 =&amp;gt; /lib64/libgcc_s.so.1 (0x00007faf8d8db000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libpthread.so.0 =&amp;gt; /lib64/libpthread.so.0 (0x00007faf8d6be000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007faf8d345000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007faf8d141000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /lib64/ld-linux-x86-64.so.2 (0x00007faf8e0ae000)&lt;/P&gt;

&lt;P&gt;If i linked these 4 libraries (libimf.so, libsvml.so, libirng.so, libintlc.so) manually from &lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64&lt;/STRONG&gt;, it writes incompatible libraries.&lt;/P&gt;

&lt;P&gt;How I check that &lt;STRONG&gt;LD_LIBRARY_PATH &lt;/STRONG&gt;include &lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64 &lt;/STRONG&gt;?&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 17:36:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948405#M18910</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-17T17:36:01Z</dc:date>
    </item>
    <item>
      <title>This same variable can lead</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948406#M18911</link>
      <description>&lt;P&gt;This same variable can lead to run-time failures also like those you showed and there are also other important env-variables like, &lt;STRONG&gt;MIC_LD_LIBRARY_PATH&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;To view the environment variable setting, enter the shell command:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;echo $LD_LIBRARY_PATH&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;On my system, it contains:&lt;/P&gt;

&lt;P&gt;$ echo $LD_LIBRARY_PATH&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:&lt;BR /&gt;
	/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/mpirt/lib/intel64:&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/ipp/../compiler/lib/intel64:&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/ipp/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:&lt;BR /&gt;
	/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64:&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/intel64/gcc4.4&lt;/P&gt;

&lt;P&gt;You might also wish to check MIC_LD_LIBRARY_PATH.&lt;/P&gt;

&lt;P&gt;$ echo $MIC_LD_LIBRARY_PATH&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/mpirt/lib/mic:&lt;BR /&gt;
	/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/mic/coi/device-linux-release/lib:&lt;BR /&gt;
	/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic:&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/mic:/opt/intel/composer_xe_2013_sp1.2.144/tbb/lib/mic&lt;/P&gt;

&lt;P&gt;The errors you are experiencing suggests something is perhaps altering the values of these env-variables after the compilervars script runs or something is malfunctioning with the script itself.&lt;/P&gt;

&lt;P&gt;When you&amp;nbsp; the compilervars.sh script, did you use it with the "source" command like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;source &amp;nbsp;/opt/intel/composerxe/bin/compilervars.sh intel64&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 17:52:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948406#M18911</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-17T17:52:00Z</dc:date>
    </item>
    <item>
      <title>That was the problem, I used</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948407#M18912</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;//edit: Added&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;twice&lt;/SPAN&gt;&lt;/SPAN&gt;..&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 18:42:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948407#M18912</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-17T18:42:00Z</dc:date>
    </item>
    <item>
      <title>That was the problem, I used</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948408#M18913</link>
      <description>&lt;P&gt;That was the problem, I used it without source command.&lt;/P&gt;

&lt;P&gt;Now it compiles well, but when I try run some offload code it wrote&amp;nbsp;&lt;STRONG&gt;line 1:ELF: not found&lt;/STRONG&gt;. Here is simple code, that I tried and commands from bash I used (I tried more offload examples with the same error when I ran it).&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;
bar0088@argexpr2:~/Workspace&amp;gt; source /opt/intel/composerxe/bin/compilervars.sh intel64
bar0088@argexpr2:~/Workspace&amp;gt; source /opt/intel/composerxe/mkl/bin/mklvars.sh intel64
bar0088@argexpr2:~&amp;gt; cd /home/fei/bar0088/Workspace/                             
bar0088@argexpr2:~/Workspace&amp;gt; icpc -mkl -openmp -O3 -Wno-unknown-pragmas -vec-report2 pi.c -o pi.out
pi.c(8): (col. 1) remark: *MIC* LOOP WAS VECTORIZED
bar0088@argexpr2:~/Workspace&amp;gt; scp pi.out mic0:/tmp                              
pi.out                                        100%  227KB 227.3KB/s   00:00
bar0088@argexpr2:~/Workspace&amp;gt; ssh mic0
[bar0088@cct407-6-mic0 bar0088]$ cd /tmp
[bar0088@cct407-6-mic0 /tmp]$ ./pi.out
./pi.out: line 1:ELF: not found
./pi.out: line 1: syntax error: unexpected word (expecting ")")
[bar0088@cct407-6-mic0 /tmp]$&lt;/PRE&gt;

&lt;P&gt;And simple offload example to compute pi:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;
#include &amp;lt;iostream&amp;gt;

int main(int argc, char* argv[]) {
   const int niter = 100000;
   double result = 0;

   #pragma offload target(mic) 
   for (int i = 0; i &amp;lt; niter; ++i) {
      const double t = (i + 0.5) / niter; result += 4.0 / (t * t + 1.0);
   } 
   result /= niter; 
   std::cout &amp;lt;&amp;lt; "Pi ~ " &amp;lt;&amp;lt; result &amp;lt;&amp;lt; '\n';
}&lt;/PRE&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;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 18:42:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948408#M18913</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-17T18:42:17Z</dc:date>
    </item>
    <item>
      <title>compilervars.sh calls mklvars</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948409#M18914</link>
      <description>&lt;P&gt;&lt;STRONG&gt;compilervars.sh&lt;/STRONG&gt; calls &lt;STRONG&gt;mklvars.sh&lt;/STRONG&gt; on your behalf when it detects MKL is installed. Sourcing mklvarls again as you showed isn't too harmful but it adds duplicate entries into env-variables so you can skip that step.&lt;/P&gt;

&lt;P&gt;The ELF runtime failure resulted from not compiling with &lt;STRONG&gt;-mmic&lt;/STRONG&gt; to produce a native Intel® Xeon Phi™ executable; however, that does not appear to be what you want based on the program you showed. The program shown will offload the for loop to the card (if available) for you. You just compile the program as you showed and then execute &lt;STRONG&gt;pi.out &lt;/STRONG&gt;on the host.&lt;/P&gt;

&lt;P&gt;If you are interested in building/running codes natively and not using the language extensions for offload, then refer to the article &lt;STRONG&gt;&lt;A href="http://software.intel.com/en-us/articles/building-a-native-application-for-intel-xeon-phi-coprocessors" target="_blank"&gt;Building a Native Application for Intel® Xeon Phi™ Coprocessors&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 19:02:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948409#M18914</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-17T19:02:40Z</dc:date>
    </item>
    <item>
      <title>Thank you. I write thesis</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948410#M18915</link>
      <description>&lt;P&gt;I write thesis about Xeon Phi &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;which I deal with both, native and offload mode.&lt;/SPAN&gt;&lt;/SPAN&gt; Native mode &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I understand and it's functional, but with offload mode I have nothing but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;problems&lt;/SPAN&gt;&lt;/SPAN&gt; :/&lt;/P&gt;

&lt;P&gt;I have more complicated application that I want run in offload and compare it with native, that &lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;is&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my intention.&lt;/SPAN&gt;&lt;/SPAN&gt; That Pi was only test sample. When I run it from host, it's working,&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt; stupid mistake&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;run&lt;/SPAN&gt; it&lt;SPAN class="hps"&gt; of&lt;/SPAN&gt; bash of &lt;SPAN class="hps"&gt;card.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Many thanks for help!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 19:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948410#M18915</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-17T19:20:00Z</dc:date>
    </item>
    <item>
      <title>I'm sorry you are having</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948411#M18916</link>
      <description>&lt;P&gt;I'm sorry you are having problems with offload. Maybe take a look the samples under:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;/opt/intel/composer_xe_2013_sp1.2.144/Samples/en_US/C++/mic_samples&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Those include a makefile that might make clearer what I'm trying to describe about how you build/run offload-enabled programs from the host. I don't recall seeing ELF failures on the host when running offload-enabled program so if that's what you are also seeing then I'm not sure what is missing to cause that offhand. I'd have to experiment to see whether I could re-create that.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 19:39:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948411#M18916</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-17T19:39:18Z</dc:date>
    </item>
    <item>
      <title>Thanks, I look on that. Now I</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948412#M18917</link>
      <description>&lt;P&gt;Thanks, I look on that. Now I tried run that pi sample in offload and gives me error again.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;
bar0088@argexpr2:~/Workspace&amp;gt; source /opt/intel/composerxe/bin/compilervars.sh intel64
bar0088@argexpr2:~/Workspace&amp;gt; export OFFLOAD_REPORT=3
bar0088@argexpr2:~/Workspace&amp;gt; ./pi_offload.out
offload error: cannot start process on the device 0 (error code 9)
[Offload] [HOST]  [State]   Unregister data tables
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 19:53:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948412#M18917</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-17T19:53:53Z</dc:date>
    </item>
    <item>
      <title>As per /opt/mpss/3.1.2</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948413#M18918</link>
      <description>&lt;P&gt;As per /opt/mpss/3.1.2/sysroots/k1om-mpss-linux/usr/include/intel-coi/common/COIResult_common.h, that appears to be the result of a COI timeout:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; COI_TIME_OUT_REACHED,&amp;nbsp;&amp;nbsp;&amp;nbsp;///&amp;lt; The specified time out caused the&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;///&amp;lt; function to abort.&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Did you happen to try running any of the MIC offload samples?&lt;/P&gt;

&lt;P&gt;From your earlier posts it seems your card is booted. It might not show any issues, but try executing: &lt;STRONG&gt;miccheck&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If that does not report any issues, then reboot the card and re-run the offload program.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 20:41:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948413#M18918</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-17T20:41:00Z</dc:date>
    </item>
    <item>
      <title>Yes, I tried these samples,</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948414#M18919</link>
      <description>&lt;P&gt;Yes, I tried these samples, all 14 passed but in the end it wrotes again Unregister data tables, is it normal? Below is miccheck which failed.&lt;/P&gt;

&lt;P&gt;Samples complete&lt;BR /&gt;
	[Offload] [MIC 0] [State]&amp;nbsp;&amp;nbsp; Unregister data tables&lt;BR /&gt;
	[Offload] [HOST]&amp;nbsp; [State]&amp;nbsp;&amp;nbsp; Unregister data tables&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;
bar0088@argexpr2:~/Workspace&amp;gt; /opt/intel/mic/bin/miccheck

miccheck 2.1.6720-15, created 11:31:20 Jun 21 2013
Copyright 2011-2013 Intel Corporation  All rights reserved

Test 1 Ensure installation matches manifest : OK
Test 2 Ensure host driver is loaded         : OK
Test 3 Ensure driver matches manifest       : OK
Test 4 Detect all listed devices            : OK
MIC 0 Test 1 Find the device                       : OK
MIC 0 Test 2 Check the POST code via PCI           : OK
sh: micctrl: command not found
MIC 0 Test 2&amp;gt; Shell command 'micctrl -s mic0' returned error (non-zero)
MIC 0 Test 3 Connect to the device                 : SKIPPED
MIC 0 Test 3&amp;gt; Prerequisite 'Ensure the device is online' failed:
MIC 0 Test 3&amp;gt;  The device is not online
MIC 0 Test 4 Check for normal mode                 : SKIPPED
MIC 0 Test 4&amp;gt; Prerequisite 'Ensure the device is online' failed:
MIC 0 Test 4&amp;gt;  The device is not online
MIC 0 Test 5 Check the POST code via SCIF          : SKIPPED
MIC 0 Test 5&amp;gt; Prerequisite 'Ensure the device is online' failed:
MIC 0 Test 5&amp;gt;  The device is not online
MIC 0 Test 6 Send data to the device               : SKIPPED
MIC 0 Test 6&amp;gt; Prerequisite 'Check for normal mode' failed:
MIC 0 Test 6&amp;gt;  The device is not in normal mode
MIC 0 Test 7 Compare the PCI configuration         : OK
MIC 0 Test 8 Ensure Flash version matches manifest : SKIPPED
MIC 0 Test 8&amp;gt; Prerequisite 'Check for normal mode' failed:
MIC 0 Test 8&amp;gt;  The device is not in normal mode
Status: Test failed&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 21:13:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948414#M18919</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-17T21:13:16Z</dc:date>
    </item>
    <item>
      <title>I assume the samples reported</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948415#M18920</link>
      <description>&lt;P&gt;I assume the samples reported Passed?&amp;nbsp;&amp;nbsp; If so, then it is puzzling why the pi test appears to experience the COI timeout.&lt;/P&gt;

&lt;P&gt;The miccheck errors you experienced occur when &lt;STRONG&gt;PATH &lt;/STRONG&gt;does not include: &lt;STRONG&gt;/usr/sbin&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Try executing these commands:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;export PATH=$PATH:/usr/sbin&lt;BR /&gt;
	/opt/intel/mic/bin/miccheck&lt;BR /&gt;
	/opt/intel/mic/bin/micinfo&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Paste the output into a reply.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2014 23:44:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948415#M18920</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-17T23:44:14Z</dc:date>
    </item>
    <item>
      <title>Here is miccheck and micinfo.</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948416#M18921</link>
      <description>&lt;P&gt;Here is &lt;STRONG&gt;miccheck&lt;/STRONG&gt; and &lt;STRONG&gt;micinfo&lt;/STRONG&gt;. It seems to be OK. So what may cause that COI timeout?&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;
bar0088@argexpr2:~&amp;gt; export PATH=$PATH:/usr/sbin
bar0088@argexpr2:~&amp;gt; /opt/intel/mic/bin/miccheck

miccheck 2.1.6720-15, created 11:31:20 Jun 21 2013
Copyright 2011-2013 Intel Corporation  All rights reserved

Test 1 Ensure installation matches manifest : OK
Test 2 Ensure host driver is loaded         : OK
Test 3 Ensure driver matches manifest       : OK
Test 4 Detect all listed devices            : OK
MIC 0 Test 1 Find the device                       : OK
MIC 0 Test 2 Check the POST code via PCI           : OK
MIC 0 Test 3 Connect to the device                 : OK
MIC 0 Test 4 Check for normal mode                 : OK
MIC 0 Test 5 Check the POST code via SCIF          : OK
MIC 0 Test 6 Send data to the device               : OK
MIC 0 Test 7 Compare the PCI configuration         : OK
MIC 0 Test 8 Ensure Flash version matches manifest : OK
Status: OK.


bar0088@argexpr2:~&amp;gt; /opt/intel/mic/bin/micinfo
MicInfo Utility Log

Created Tue Mar 18 08:20:20 2014


        System Info
                HOST OS                 : Linux
                OS Version              : 3.0.80-0.7-default
                Driver Version          : 6720-15
                MPSS Version            : 2.1.6720-15
                Host Physical Memory    : 1025538 MB

Device No: 0, Device Name: mic0

        Version
                Flash Version            : 2.1.03.0386
                SMC Firmware Version     : 1.15.4830
                SMC Boot Loader Version  : 1.8.4326
                uOS Version              : 2.6.38.8-g2593b11
                Device Serial Number     : ADKC32401120

        Board
                Vendor ID                : 0x8086
                Device ID                : 0x2250
                Subsystem ID             : 0x2500
                Coprocessor Stepping ID  : 3
                PCIe Width               : Insufficient Privileges
                PCIe Speed               : Insufficient Privileges
                PCIe Max payload size    : Insufficient Privileges
                PCIe Max read req size   : Insufficient Privileges
                Coprocessor Model        : 0x01
                Coprocessor Model Ext    : 0x00
                Coprocessor Type         : 0x00
                Coprocessor Family       : 0x0b
                Coprocessor Family Ext   : 0x00
                Coprocessor Stepping     : B1
                Board SKU                : INVALID SKU
                ECC Mode                 : Enabled
                SMC HW Revision          : Product 225W Passive CS

        Cores
                Total No of Active Cores : 60
                Voltage                  : 997000 uV
                Frequency                : 1052631 kHz

        Thermal
                Fan Speed Control        : N/A
                Fan RPM                  : N/A
                Fan PWM                  : N/A
                Die Temp                 : 49 C

        GDDR
                GDDR Vendor              : Elpida
                GDDR Version             : 0x1
                GDDR Density             : 2048 Mb
                GDDR Size                : 7936 MB
                GDDR Technology          : GDDR5
                GDDR Speed               : 5.000000 GT/s
                GDDR Frequency           : 2500000 kHz
                GDDR Voltage             : 1501000 uV
bar0088@argexpr2:~&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 07:23:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948416#M18921</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-18T07:23:54Z</dc:date>
    </item>
    <item>
      <title>I overlooked your earlier</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948417#M18922</link>
      <description>&lt;P&gt;I overlooked your earlier comment that the samples reported "Passed". I'm perplexed how the samples pass but the simple pi test suffers the offload failure, seemingly due to a COI timeout.&lt;/P&gt;

&lt;P&gt;I have&amp;nbsp;never been able to synthesize the &lt;STRONG&gt;(error code 9)&lt;/STRONG&gt; and I&amp;nbsp;do not&amp;nbsp;have enough knowledge of the inner-workings to know what can cause that specifically. Apparently something within the COI-layer determined a timeout occurred with the attempted offload between the host and coprocessor. The offload runtime library does not establish any timeouts itself based on what offload compiler Developers have said in the past regarding this error.&lt;/P&gt;

&lt;P&gt;Will you please try running the ./pi_offload.out again to see whether the offload failure repeats?&lt;/P&gt;

&lt;P&gt;If so, (as root) cycle MPSS with the command:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;service mpss restart&lt;/STRONG&gt;&lt;BR /&gt;
	And then try re-running the pi executable.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:20:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948417#M18922</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-18T17:20:55Z</dc:date>
    </item>
    <item>
      <title>I don't know how, but command</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948418#M18923</link>
      <description>&lt;P&gt;I don't know how, but command &lt;STRONG&gt;service mpss restart &lt;/STRONG&gt;&lt;SPAN class="short_text" id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;was effective, now it works fine, even offload. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;I do not have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;administrator&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;rights&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;because&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;it took a while&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 11:45:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948418#M18923</guid>
      <dc:creator>Pavel_B_</dc:creator>
      <dc:date>2014-03-20T11:45:58Z</dc:date>
    </item>
    <item>
      <title>Glad to hear that. Just</title>
      <link>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948419#M18924</link>
      <description>&lt;P&gt;Glad to hear that. Just guessing, the reboot either restarted a damaged process on the card involved in managing offload execution (unlikely since the samples ran ok) or (more likely) removed remnants from the card's filesystem image that were created from earlier failed (ELF errors) or successful attempts running the pi test natively. Whatever it was it was somehow unique to the pi executable and affected running it only in offload but it did not affect the samples running in offload. I know that well before the /tmp/coi_procs structure was deployed it was possible to pollute /tmp with similar named files as host offload enabled executables that would break offload execution; however, I have never seen that again since the coi_procs has been in place.&lt;/P&gt;

&lt;P&gt;When working in native mode, choose the working directory carefully and where files are transferred to the card and&amp;nbsp;remove&amp;nbsp;files when the native testing is complete. &lt;STRONG&gt;micnativeloadex &lt;/STRONG&gt;is a very handy utility also.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:25:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Compilation-shared-libraries-problem/m-p/948419#M18924</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-03-20T16:25:00Z</dc:date>
    </item>
  </channel>
</rss>

