<?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 Hi, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011848#M34550</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
	By "a user's home area", do you mean the home area on the coprocessor?&lt;BR /&gt;
	On the coprocessor, as a sudo user &lt;STRONG&gt;newuser&lt;/STRONG&gt; on the coprocessor mic0, I tried the following commands:&lt;BR /&gt;
	&lt;STRONG&gt;cat ~/.bashrc&lt;BR /&gt;
	cat ~/.bash_profile&lt;BR /&gt;
	cat ~/.profile&lt;BR /&gt;
	cat /etc/bash.bashrc&lt;/STRONG&gt;&lt;BR /&gt;
	None of them exist. The only related file is &lt;STRONG&gt;/etc/profile&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;By &lt;STRONG&gt;hostname&lt;/STRONG&gt; command on the coprocessor, I got &lt;STRONG&gt;mic0.local&lt;/STRONG&gt;.&lt;BR /&gt;
	I tried adding&lt;BR /&gt;
	&lt;STRONG&gt;$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1/lib/mic&lt;BR /&gt;
	$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1.2.144/lib/mic&lt;/STRONG&gt;&lt;BR /&gt;
	Neither of them worked.&lt;BR /&gt;
	Then I tried creating a file &lt;STRONG&gt;~/.bashrc&lt;/STRONG&gt; on the co-processor, with the only content:&lt;BR /&gt;
	&lt;STRONG&gt;$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1/lib/mic&lt;BR /&gt;
	$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1.2.144/lib/mic&lt;/STRONG&gt;&lt;BR /&gt;
	Again, neither worked.&lt;/P&gt;

&lt;P&gt;Is it because my &lt;STRONG&gt;~/.bashrc&lt;/STRONG&gt; doesn't have the correct format? What does &lt;STRONG&gt;$test &lt;/STRONG&gt;mean here? It seems &lt;STRONG&gt;$test&lt;/STRONG&gt; is used nowhere.&lt;/P&gt;

&lt;P&gt;I believe my MPSS uses the default setup.&lt;/P&gt;

&lt;P&gt;On the coprocessor, by &lt;STRONG&gt;echo $0&lt;/STRONG&gt;, I got &lt;STRONG&gt;-bash&lt;/STRONG&gt;; by &lt;STRONG&gt;echo $SHELL&lt;/STRONG&gt;, I got &lt;STRONG&gt;/bin/bash&lt;/STRONG&gt; and by &lt;STRONG&gt;ps -ef | grep $$ | grep -v grep&lt;/STRONG&gt;, it returned&lt;BR /&gt;
	&lt;STRONG&gt;newuser&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15932&amp;nbsp; 15931&amp;nbsp; 0 05:48 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 -bash&lt;BR /&gt;
	newuser&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15938&amp;nbsp; 15932&amp;nbsp; 0 05:49 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 ps -ef&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2014 12:53:02 GMT</pubDate>
    <dc:creator>White_B_</dc:creator>
    <dc:date>2014-07-30T12:53:02Z</dc:date>
    <item>
      <title>Error in loading libiomp5.so</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011841#M34543</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;When I run a program on mic0 after compiled with &lt;STRONG&gt;-mmic&lt;/STRONG&gt; option, it returned&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I've read this thread.&lt;/P&gt;

&lt;P&gt;When I used find / -name "libiomp5.so" command, it returned&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/intel64/libiomp5.so&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/libiomp5.so&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/ia32/libiomp5.so&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Which one should I add to the LD_LIBRARY_PATH?&lt;/P&gt;

&lt;P&gt;Do I need to use &lt;STRONG&gt;export LD_LIBRARY_PATH=&lt;/STRONG&gt; command? If so, what should be typed after the &lt;STRONG&gt;=&lt;/STRONG&gt; ?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 20:49:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011841#M34543</guid>
      <dc:creator>White_B_</dc:creator>
      <dc:date>2014-07-28T20:49:12Z</dc:date>
    </item>
    <item>
      <title>In the original post, it</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011842#M34544</link>
      <description>&lt;P&gt;In the original post, it referred to &lt;A href="https://software.intel.com/en-us/forums/topic/271099"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 20:50:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011842#M34544</guid>
      <dc:creator>White_B_</dc:creator>
      <dc:date>2014-07-28T20:50:57Z</dc:date>
    </item>
    <item>
      <title>When running on the</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011843#M34545</link>
      <description>&lt;P&gt;When running on the coprocessor, if your &lt;STRONG&gt;/opt/intel&lt;/STRONG&gt; is mounted on the coprocessor then to &lt;STRONG&gt;LD_LIBRARY_PATH&lt;/STRONG&gt; you need to add the path for the "&lt;STRONG&gt;mic&lt;/STRONG&gt;" libraries (i.e. &lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic&lt;/STRONG&gt;).&lt;/P&gt;

&lt;P&gt;If &lt;STRONG&gt;/opt/intel&lt;/STRONG&gt; is only accessible on the host, then as was noted in the cited thread in the last post, you scp the “mic” version of the library to the coprocessor in a location of your choice, connect to the coprocessor and set &lt;STRONG&gt;LD_LIBRARY_PATH&lt;/STRONG&gt; on the coprocessor according to where you placed the library, then "&lt;STRONG&gt;cd&lt;/STRONG&gt;" to where your executable is and run it.&lt;/P&gt;

&lt;P&gt;Refer to &lt;A href="https://software.intel.com/en-us/articles/building-a-native-application-for-intel-xeon-phi-coprocessors" target="_blank"&gt;&lt;STRONG&gt;Building a Native Application for Intel® Xeon Phi™ Coprocessors&lt;/STRONG&gt;&lt;/A&gt; for more helpful details.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 21:14:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011843#M34545</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-07-28T21:14:23Z</dc:date>
    </item>
    <item>
      <title>Would this program also use</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011844#M34546</link>
      <description>&lt;P&gt;Would this program also use OpenMP? And is the OpenMP runtime (libiomp5.so) provisioned on your coprocessor? &amp;nbsp;If you're running in a cluster or other sort of institutional access to a pool of machines, they may have already defined some infrastructure where this lib is available. &amp;nbsp;If so, then the advise in the other thread will apply, but the LD_LIBRARY_PATH setting will have to be made in the coprocessor environment in order to be available to the execution file when it needs it.&lt;/P&gt;

&lt;P&gt;Alternatively, you may be working on a solo/isolated machine and have full control (read: responsibility) over the placement of the MIC libiomp5.so upon the coprocessor FS. &amp;nbsp;If you have sudo access on the host, you could execute the following:&lt;/P&gt;

&lt;P&gt;sudo scp /opt/intel/composerxe/lib/mic/libiomp5.so root@your_host_name_here-mic0:/lib64&lt;/P&gt;

&lt;P&gt;"composerxe" is a symbolic link to the most recently installed version of the compiler, which in your case looks like 2013 SP1.2.144. &amp;nbsp;Placing the runtime library in that directory puts it in a default location for the loader, so no LD_LIBRARY_PATH would be needed in this case.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 21:22:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011844#M34546</guid>
      <dc:creator>robert-reed</dc:creator>
      <dc:date>2014-07-28T21:22:43Z</dc:date>
    </item>
    <item>
      <title>Thank you!</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011845#M34547</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;

&lt;P&gt;Since the mic0 user can indeed get access to &lt;STRONG&gt;/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/libiomp5.so&lt;/STRONG&gt;. The problem is solved by one line of command on mic0:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;export LD_LIBRARY_PATH=/opt/intel/composer_xe_2013_sp1.2.144/compiler/lib/mic/&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2014 23:21:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011845#M34547</guid>
      <dc:creator>White_B_</dc:creator>
      <dc:date>2014-07-28T23:21:55Z</dc:date>
    </item>
    <item>
      <title>Hi Kevin,</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011846#M34548</link>
      <description>&lt;P&gt;Hi Kevin,&lt;/P&gt;

&lt;P&gt;I used export command and solved the problem temporarily.&lt;/P&gt;

&lt;P&gt;How ever, when I log off and log on again, I need to reset it.&lt;/P&gt;

&lt;P&gt;Previously, I don't need to set such a thing every time when I log on. Do you know how to make a "permanent" setting?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 01:09:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011846#M34548</guid>
      <dc:creator>White_B_</dc:creator>
      <dc:date>2014-07-29T01:09:46Z</dc:date>
    </item>
    <item>
      <title>Glad that helped.</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011847#M34549</link>
      <description>&lt;P&gt;Glad that helped.&lt;/P&gt;

&lt;P&gt;I don't details of your host/coprocessor user access setup so I can’t speak to why something changed. It sounds like normal user login accounts are enabled on the coprocessor and that the host and coprocessor may share user home directories (in addition to &lt;STRONG&gt;/opt/intel&lt;/STRONG&gt;). As you likely know, individual user shell setup scripts (e.g. like &lt;STRONG&gt;.bash_profile&lt;/STRONG&gt;, &lt;STRONG&gt;.bashrc&lt;/STRONG&gt; for the bash shell) resides in a user’s home area. Thus, you could setup in your private shell initialization scripts a setting specific to the coprocessor only where you assign the &lt;STRONG&gt;LD_LIBRARY_PATH&lt;/STRONG&gt; variable accordingly.&lt;/P&gt;

&lt;P&gt;For example, assuming you use the default MPSS setup, if your default working shell is bash, at the end of your private .bashrc, you could do this:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$test $HOSTNAME = &amp;lt;your_host_name_here&amp;gt;-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1/lib/mic&lt;/PRE&gt;

&lt;P&gt;Where you replace &lt;STRONG&gt;&amp;lt;your_host_name_here&amp;gt;&lt;/STRONG&gt; with your host’s hostname and you follow the earlier advice to use the generic Composer XE 2013 SP1 link so your shell setup script always uses the latest installed compiler run-time libs on your system. This would add the compiler RTL path to the variable only on your “mic0” coprocessor when logging in under the associated user id where you make this change.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2014 09:15:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011847#M34549</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-07-29T09:15:56Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011848#M34550</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
	By "a user's home area", do you mean the home area on the coprocessor?&lt;BR /&gt;
	On the coprocessor, as a sudo user &lt;STRONG&gt;newuser&lt;/STRONG&gt; on the coprocessor mic0, I tried the following commands:&lt;BR /&gt;
	&lt;STRONG&gt;cat ~/.bashrc&lt;BR /&gt;
	cat ~/.bash_profile&lt;BR /&gt;
	cat ~/.profile&lt;BR /&gt;
	cat /etc/bash.bashrc&lt;/STRONG&gt;&lt;BR /&gt;
	None of them exist. The only related file is &lt;STRONG&gt;/etc/profile&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;By &lt;STRONG&gt;hostname&lt;/STRONG&gt; command on the coprocessor, I got &lt;STRONG&gt;mic0.local&lt;/STRONG&gt;.&lt;BR /&gt;
	I tried adding&lt;BR /&gt;
	&lt;STRONG&gt;$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1/lib/mic&lt;BR /&gt;
	$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1.2.144/lib/mic&lt;/STRONG&gt;&lt;BR /&gt;
	Neither of them worked.&lt;BR /&gt;
	Then I tried creating a file &lt;STRONG&gt;~/.bashrc&lt;/STRONG&gt; on the co-processor, with the only content:&lt;BR /&gt;
	&lt;STRONG&gt;$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1/lib/mic&lt;BR /&gt;
	$test $HOSTNAME = mic0.loca-mic0 &amp;amp;&amp;amp; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/composer_xe_2013_sp1.2.144/lib/mic&lt;/STRONG&gt;&lt;BR /&gt;
	Again, neither worked.&lt;/P&gt;

&lt;P&gt;Is it because my &lt;STRONG&gt;~/.bashrc&lt;/STRONG&gt; doesn't have the correct format? What does &lt;STRONG&gt;$test &lt;/STRONG&gt;mean here? It seems &lt;STRONG&gt;$test&lt;/STRONG&gt; is used nowhere.&lt;/P&gt;

&lt;P&gt;I believe my MPSS uses the default setup.&lt;/P&gt;

&lt;P&gt;On the coprocessor, by &lt;STRONG&gt;echo $0&lt;/STRONG&gt;, I got &lt;STRONG&gt;-bash&lt;/STRONG&gt;; by &lt;STRONG&gt;echo $SHELL&lt;/STRONG&gt;, I got &lt;STRONG&gt;/bin/bash&lt;/STRONG&gt; and by &lt;STRONG&gt;ps -ef | grep $$ | grep -v grep&lt;/STRONG&gt;, it returned&lt;BR /&gt;
	&lt;STRONG&gt;newuser&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15932&amp;nbsp; 15931&amp;nbsp; 0 05:48 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 -bash&lt;BR /&gt;
	newuser&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15938&amp;nbsp; 15932&amp;nbsp; 0 05:49 pts/0&amp;nbsp;&amp;nbsp;&amp;nbsp; 00:00:00 ps -ef&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2014 12:53:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011848#M34550</guid>
      <dc:creator>White_B_</dc:creator>
      <dc:date>2014-07-30T12:53:02Z</dc:date>
    </item>
    <item>
      <title>The files you want to have</title>
      <link>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011849#M34551</link>
      <description>&lt;P&gt;The files you want to have permanence on the coprocessor face a problem: the coprocessor "filesystem" is ephemeral as well, and gets rebuilt each time you restart MPSS. &amp;nbsp;So there's a couple of ways around this. &amp;nbsp;If you've created &lt;B&gt;newuser&lt;/B&gt;&amp;nbsp;as a coprocessor account using &lt;STRONG&gt;micctrl --useradd&amp;nbsp;&lt;/STRONG&gt;then there should be a "permanent" version on the host filesystem, used for recreating the virtual version during MPSS reboot. &amp;nbsp;For MPSS 3, the default location for those home directories for the first coprocessor on the system is /var/mpss/mic0/home. &amp;nbsp;If you have created this user, you should find a&amp;nbsp;&lt;STRONG&gt;/var/mpss/mic0/home/newuser&lt;/STRONG&gt;&amp;nbsp;and it probably will have a .profile file contained therein. &amp;nbsp;You could modify that file to add the environment settings you want to appear in login shells on the coprocessor, or add .bash_profile and .bashrc files there, but recognize that even these host files are temporary: a reinstall of MPSS or executing some of the options available in micctrl can wipe out these files. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;A safer solution is to create user accounts in some non-system area of the host file system and then mount the "local home" on the coprocessor, say using NFS. &amp;nbsp;On several of the machines I take care of, I've created a directory, /home/michome, in which I construct home directories for installation on the coprocessor, and then use a line like the following in /var/mpss/mic0/etc/fstab to ensure the partition will be mounted when the coprocessor boots up:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;host:/home/michome /home &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nfs &amp;nbsp; &amp;nbsp; rw,nolock &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 0&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This has the advantage that though there might be a little work involved to reestablish these links after upgrading MPSS or performing other filesystem affecting operations on the host, the files themselves will not be affected by MPSS changes but will make the home directories when running on the coprocessor persistent--changes made in the home directory will propagate back to the host filesystem.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 01:32:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Error-in-loading-libiomp5-so/m-p/1011849#M34551</guid>
      <dc:creator>robert-reed</dc:creator>
      <dc:date>2014-08-01T01:32:24Z</dc:date>
    </item>
  </channel>
</rss>

