<?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: Trouble with example makefile in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908142#M11886</link>
    <description>&lt;DIV style="margin:0px;"&gt;Please, use compilers scripts (like iccvars.sh) to correctly set compiler's environment.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;In particular this script set correct path to libiomp5.dylib.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
    <pubDate>Thu, 21 May 2009 09:19:29 GMT</pubDate>
    <dc:creator>Andrey_Bespalov</dc:creator>
    <dc:date>2009-05-21T09:19:29Z</dc:date>
    <item>
      <title>Trouble with example makefile</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908141#M11885</link>
      <description>MKL for OSX, installed as a part of Intel C++ Compiler Pro 11
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I had a little trouble with the cblas makefile for the examples. The RTL&lt;SPAN style="font-family: 'Lucida Grande';"&gt;libiomp5.dylib was not found when the makefile runs the example program. Had to add the top-level lib folder to DYLD_LIBRARY_PATH in the makefile like so:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="font-family: 'Lucida Grande';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;...&lt;/DIV&gt;
&lt;DIV&gt;MKL_TOP_LIB = /opt/intel/Compiler/11.0/059/lib&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;...&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;$(RES): %.res: %.c&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt; &lt;/SPAN&gt;mkdir -p ./$(RES_DIR)&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt; &lt;/SPAN&gt;$(CC) -w $(OPT_M64) $(COPTS) -I$(MKLROOT)/include $&amp;lt; source/common_func.c -L$(MKL_PATH) $(MKL_LIBS) -lpthread -lm -o $(RES_DIR)/$*.out&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt; &lt;/SPAN&gt;export DYLD_LIBRARY_PATH=$(MKL_PATH):$(MKL_TOP_LIB):$(DYLD_LIBRARY_PATH); $(RES_DIR)/$*.out data/$*.d &amp;gt;$(RES_DIR)/$@&lt;/DIV&gt;
&lt;DIV&gt;...&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I figure this is from a different dir layout between the standalone MKL install and the Compiler install?&lt;/DIV&gt;
&lt;DIV&gt;A quick check looks like it's the same for other makefiles.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;An aside about thescripts for settingenvironment variables in tools/environment (&lt;SPAN style="font-family: 'Lucida Grande';"&gt;mklvars32.sh, etc.)&lt;SPAN style="font-family: verdana;"&gt;: I'm basically a shell newbie again (it's been a very long time) so please help me out. How are these scripts useful? If I run them on their own, the env vars that they set are not exported to the calling script or shell, so I'd have to add my build script into these scripts to have the exports be usable. What am I missing? Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Cheers,&lt;/DIV&gt;
&lt;DIV&gt;Michael&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 May 2009 02:21:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908141#M11885</guid>
      <dc:creator>Michael_Stauffer</dc:creator>
      <dc:date>2009-05-08T02:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with example makefile</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908142#M11886</link>
      <description>&lt;DIV style="margin:0px;"&gt;Please, use compilers scripts (like iccvars.sh) to correctly set compiler's environment.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;In particular this script set correct path to libiomp5.dylib.&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 21 May 2009 09:19:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908142#M11886</guid>
      <dc:creator>Andrey_Bespalov</dc:creator>
      <dc:date>2009-05-21T09:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with example makefile</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908143#M11887</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
With the current compiler, it should be sufficient to "source" the compiler script&lt;BR /&gt;source /opt/intel/Compiler/11.0/059/bin/iccvars.&lt;C&gt;sh intel64|ia32&lt;BR /&gt;in order to set PATHs for both compiler and MKL. &lt;BR /&gt;If you don't like to do this, it's up to you to choose your alternate method, no point in complaining here if your choice is more awkward. The most common customer adjustment would be to add that source command to a login profile.&lt;BR /&gt;&lt;/C&gt;</description>
      <pubDate>Thu, 21 May 2009 12:56:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908143#M11887</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-05-21T12:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with example makefile</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908144#M11888</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; With the current compiler, it should be sufficient to "source" the compiler script&lt;BR /&gt;source /opt/intel/Compiler/11.0/059/bin/iccvars.&lt;C&gt;sh intel64|ia32&lt;BR /&gt;in order to set PATHs for both compiler and MKL. &lt;BR /&gt;If you don't like to do this, it's up to you to choose your alternate method, no point in complaining here if your choice is more awkward. The most common customer adjustment would be to add that source command to a login profile.&lt;BR /&gt;&lt;/C&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;Thanks to you both, the iccvars.sh and the 'source' builtin are the answer. It's not that I didn't want to do it this way, but I didn't know how to do it this way, so thanks for helping me.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Cheers&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 May 2009 16:08:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Trouble-with-example-makefile/m-p/908144#M11888</guid>
      <dc:creator>Michael_Stauffer</dc:creator>
      <dc:date>2009-05-21T16:08:30Z</dc:date>
    </item>
  </channel>
</rss>

