<?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 You are a bit lax in using in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018606#M19637</link>
    <description>&lt;P&gt;You are a bit lax in using Blas/Lapack routines through Fortran 95 interfaces. When you use Blas95/Lapack95 routines such as gemm(), you must provide an interface. Failing to do so will give linker errors, at least.&lt;/P&gt;

&lt;P&gt;Secondly, the name of the module that supplies the interface should match the name of the module included in your specific version of MKL. Look at the names in the mkl/include/intel64/ilp64 directory or in the table "Interface Libraries and Modules" in the MKL user guide. I think that the file name is&amp;nbsp;blas95.mod (I don't have OSX, so check this), so you should say USE BLAS95.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2015 23:16:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2015-07-20T23:16:00Z</dc:date>
    <item>
      <title>getting started on MKL - Error in opening the compiled module file.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018605#M19636</link>
      <description>&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;I've freshly installed the Intel® Parallel Studio XE Composer Edition for Fortran OS X* (student version). It comes with the Math Kernel Library, which is why I bought it. I'm having a hard time getting started with MKL though. Here's what I've done step-by-step. (sorry for the beginner question, this is probably really obvious to everyone else here).&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;1) Installed Intel® Parallel Studio XE Composer Edition for Fortran OS X* (no problem). I can run a 'hello world' script using&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;ifort&lt;/CODE&gt;&amp;nbsp;and throw the&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;-mkl&lt;/CODE&gt;&amp;nbsp;link command on at the end with no problem (not calling any mkl commands just yet).&lt;/P&gt;

&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;2) Following&amp;nbsp;&lt;A href="https://plafrim.bordeaux.inria.fr/lib/exe/fetch.php?media=utilisation:outils_intel:mkl-10.2.7.041-userguide.pdf" rel="nofollow" style="border: 0px; cursor: pointer; color: rgb(12, 101, 165);"&gt;these instructions&lt;/A&gt;&amp;nbsp;I set my environment variables using a script provided by intel (located in opt/intel/bin to be precise). I have the intel 64-bit architecture (according to&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;ifort -V&lt;/CODE&gt;) so I navigate to opt/intel/mkl/bin and run&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;bash mklvars.sh intel64 mod ilp64&lt;/CODE&gt;. It runs without error (or any output, I assume it's working).&lt;/P&gt;

&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;3) I write the following code&amp;nbsp;&lt;SPAN style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;"&gt;to use MKL's gemm&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;"&gt;command for fortran95. Just multiplying 2 matrices.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:fortran;" style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: rgb(57, 51, 24); word-wrap: normal; background-color: rgb(238, 238, 238);"&gt;program test

implicit none
real, dimension(2,2) :: testA, testB, testC

testA = 1
testB = 1
testC = 0  ! I don't think I need this line, but it shouldn't matter

call gemm(testA, testB, testC)

write(*,*) testC

end program test
&lt;/PRE&gt;

&lt;DIV&gt;
	&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;4) I compile with&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;ifort test_mkl.f90 -o test -mkl&lt;/CODE&gt;. I get the following error:&lt;/P&gt;

	&lt;PRE class="default prettyprint prettyprinted" style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: rgb(57, 51, 24); word-wrap: normal; background-color: rgb(238, 238, 238);"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;"&gt;&lt;SPAN class="typ" style="margin: 0px; padding: 0px; border: 0px; color: rgb(43, 145, 175);"&gt;Undefined&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; symbols &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; architecture x86_64&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
  &lt;/SPAN&gt;&lt;SPAN class="str" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);"&gt;"_gemm_"&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; referenced &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);"&gt;from&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
      _MAIN__ &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; ifortSTVOrB&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;o
ld&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; symbol&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;s&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);"&gt;not&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; found &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; architecture x86_64&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

	&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;5) I try&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;ifort test_mkl.f90 -o test -L/opt/intel/mkl/lib -mkl&lt;/CODE&gt;&amp;nbsp;and get the same result.&lt;/P&gt;

	&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;6) If I add the line&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;USE mkl95_blas, ONLY: gemm&lt;/CODE&gt;, &amp;nbsp;above&amp;nbsp;&lt;CODE style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);"&gt;implicit none&lt;/CODE&gt;&amp;nbsp;in both of the above examples I get:&lt;/P&gt;

	&lt;PRE class="default prettyprint prettyprinted" style="margin-top: 0px; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; color: rgb(57, 51, 24); word-wrap: normal; background-color: rgb(238, 238, 238);"&gt;&lt;CODE style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;"&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;    test_mkl&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;f90&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL95_BLAS]&lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 128, 128);"&gt; &lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
    USE mkl95_blas&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; ONLY&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; gemm
&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;--------^&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
test_mkl&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;f90&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);"&gt;12&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; error &lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 128, 128);"&gt;#6406: Conflicting attributes or multiple declaration of name.   [GEMM]&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
    call gemm&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;testA&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; testB&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; testC &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;)&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;---------^&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
test_mkl&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;f90&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);"&gt;4&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;):&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; error &lt;/SPAN&gt;&lt;SPAN class="com" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 128, 128);"&gt;#6580: Name in only-list does not exist.   [GEMM]&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
    USE mkl95_blas&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; ONLY&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; gemm
&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;--------------------------^&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;
compilation aborted &lt;/SPAN&gt;&lt;SPAN class="kwd" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 139);"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt; test_mkl&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;f90 &lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;code &lt;/SPAN&gt;&lt;SPAN class="lit" style="margin: 0px; padding: 0px; border: 0px; color: rgb(128, 0, 0);"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pun" style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

	&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;If your curious, I have successfully&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/quick-link-intel-mkl-in-xcode-ide-a-fortran-sample" rel="nofollow" style="border: 0px; cursor: pointer; color: rgb(12, 101, 165);"&gt;run this example script in XCODE&lt;/A&gt;&amp;nbsp;using MKL, so it's definitely something I'm doing and not my installation. Specifically, my .mod files are built and are in the directories in the Include statement below (generate the same error as above).&amp;nbsp;&lt;BR /&gt;
		&amp;nbsp;&lt;/P&gt;

	&lt;P style="margin-bottom: 1em; border: 0px; font-size: 15px; clear: both; color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 19.5px;"&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif;"&gt;ifort test_mkl.f90&amp;nbsp; -I/opt/intel/mkl/include/intel64/ilp64 -L/opt/intel/mkl/lib/&amp;nbsp; -mkl -lmkl_blas95&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif;"&gt;ifort test_mkl.f90&amp;nbsp; -I/opt/intel/composer_xe_2015.3.187/mkl/include/intel64/ilp64 -L/opt/intel/composer_xe_2015.3.187/mkl/lib/&lt;/SPAN&gt;&lt;BR /&gt;
		&lt;SPAN style="font-size: 1em; line-height: 1.5; color: rgb(83, 87, 94); font-family: Arial, 宋体, Tahoma, Helvetica, sans-serif;"&gt;ifort test_mkl.f90&amp;nbsp; -I/opt/intel/composer_xe_2015.3.187/mkl/inlcude/intel64/ilp64 -L/opt/intel/composer_xe_2015.3.187/mkl/lib/&amp;nbsp; -mkl -lmkl_blas95&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jul 2015 14:41:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018605#M19636</guid>
      <dc:creator>Ben_T_1</dc:creator>
      <dc:date>2015-07-20T14:41:32Z</dc:date>
    </item>
    <item>
      <title>You are a bit lax in using</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018606#M19637</link>
      <description>&lt;P&gt;You are a bit lax in using Blas/Lapack routines through Fortran 95 interfaces. When you use Blas95/Lapack95 routines such as gemm(), you must provide an interface. Failing to do so will give linker errors, at least.&lt;/P&gt;

&lt;P&gt;Secondly, the name of the module that supplies the interface should match the name of the module included in your specific version of MKL. Look at the names in the mkl/include/intel64/ilp64 directory or in the table "Interface Libraries and Modules" in the MKL user guide. I think that the file name is&amp;nbsp;blas95.mod (I don't have OSX, so check this), so you should say USE BLAS95.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2015 23:16:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018606#M19637</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-07-20T23:16:00Z</dc:date>
    </item>
    <item>
      <title>Thanks mecej4,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018607#M19638</link>
      <description>&lt;P&gt;Thanks mecej4,&lt;/P&gt;

&lt;P&gt;Changing the USE statement allowed me to compile. I then ran into the problem from &lt;A href="https://software.intel.com/en-us/forums/topic/281190"&gt;this thread&lt;/A&gt;&amp;nbsp;and had to run the terminal command:&amp;nbsp;&lt;BR /&gt;
	&lt;SPAN style="font-family: Consolas, 'Lucida Console', Menlo, Monaco, 'DejaVu Sans Mono', monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;source /opt/intel/composer_xe_2015.3.187/mkl/bin/mklvars.sh intel64&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;It works, but I'm curious if that 'source' command took care of the interface issues you mentioned?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 01:15:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018607#M19638</guid>
      <dc:creator>Ben_T_1</dc:creator>
      <dc:date>2015-07-21T01:15:32Z</dc:date>
    </item>
    <item>
      <title>Hi Ben, Mecej4,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018608#M19639</link>
      <description>&lt;P&gt;Hi Ben, Mecej4,&lt;/P&gt;

&lt;P&gt;Thanks for raising and answer the problems. It seems the Fortran 95 interface bring a lot of trouble here.&lt;/P&gt;

&lt;P&gt;For beginner, I recommend you to&lt;STRONG&gt;&amp;nbsp;build and run the example code&lt;/STRONG&gt; under MKL install folder.&amp;nbsp; /opt/intel&lt;/P&gt;

&lt;P&gt;For example, under Linux (similar as Mac OS),&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;gt;cp /opt/intel/composer_xe_2015.2.164/mkl/examples/examples_f95.tgz&amp;nbsp; .&lt;/P&gt;

&lt;P&gt;&amp;gt;tar -xzvf examples_f95.tgz&lt;/P&gt;

&lt;P&gt;GEMM sample code is:&lt;/P&gt;

&lt;P&gt;&amp;gt; vi blas95/source/dgemmx.f90&lt;/P&gt;

&lt;P&gt;&amp;nbsp; program&amp;nbsp;&amp;nbsp; DGEMM_MAIN&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; use f95_precision, only: wp =&amp;gt; dp&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp; use blas95, only: gemm&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; implicit none&lt;/P&gt;

&lt;P&gt;1. if you'd like try Fotran Blas 95 interface,&amp;nbsp; the blod is needed.&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;please also&amp;nbsp;check the name as mecej4 mentioned.&amp;nbsp; It should be same name as the *.mod file&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[yhu5@prc-mic01 lp64]$ ls&lt;BR /&gt;
	blas95.mod&amp;nbsp; f95_precision.mod&amp;nbsp; lapack95.mod&amp;nbsp; mkl_service.mod&lt;BR /&gt;
	[yhu5@prc-mic01 lp64]$ pwd&lt;BR /&gt;
	/opt/intel/composer_xe_2015.2.164/mkl/include/intel64/lp64&lt;/P&gt;

&lt;P&gt;2. build and run the sample.&lt;/P&gt;

&lt;P&gt;2.1 source compiler, which include ifort and mkl environment setting.&lt;/P&gt;

&lt;P&gt;[yhu5@prc-mic01 lp64]$ source /opt/intel/composer_xe_2015.2.164/bin/compilervars.sh intel64&lt;BR /&gt;
	[yhu5@prc-mic01 lp64]$ ifort -V&lt;BR /&gt;
	Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.2.164 Build 20150121&lt;BR /&gt;
	Copyright (C) 1985-2015 Intel Corporation.&amp;nbsp; All rights reserved.&lt;/P&gt;

&lt;P&gt;2.2 build the sample&lt;/P&gt;

&lt;P&gt;[yhu5@prc-mic01 blas95]$ make sointel64 function=dgemmx&lt;BR /&gt;
	make dgemmx.res&amp;nbsp; EXT=so _IA=intel64 RES_EXT=so&lt;BR /&gt;
	make[1]: Entering directory `/home/yhu5/mkl_example/blas95'&lt;BR /&gt;
	mkdir -p ./_results/intel_lp64_parallel_intel_iomp5_intel64_so&lt;/P&gt;

&lt;P&gt;&amp;nbsp;ifort&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; -I /opt/intel/composer_xe_2015.2.164/mkl/include/intel64/lp64 &lt;/STRONG&gt;-w source/dgemmx.f90 source/common_func.f /opt/intel/composer_xe_2015.2.164/mkl/lib/intel64&lt;STRONG&gt;/libmkl_blas95_lp64.a&lt;/STRONG&gt;&amp;nbsp; -L"/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64" -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -L"/opt/intel/composer_xe_2015.2.164/mkl/../compiler/lib/intel64" -liomp5 -lpthread -ldl&amp;nbsp; -o _results/intel_lp64_parallel_intel_iomp5_intel64_so/dgemmx.out&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Notes: please make sure&lt;/P&gt;

&lt;P&gt;1. you have &lt;STRONG&gt;libmkl_blas95_lp64.a installed. &lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;ifort &amp;nbsp;-mkl&amp;nbsp; =&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;-L"/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64" -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -L"/opt/intel/composer_xe_2015.2.164/mkl/../compiler/lib/intel64" -liomp5 -lpthread -ldl&amp;nbsp;&lt;/P&gt;

&lt;P&gt;So Ben's command line should ok&lt;/P&gt;

&lt;P&gt;ifort test_mkl.f90&amp;nbsp; -I/opt/intel/composer_xe_2015.3.187/mkl/inlcude/intel64/ilp64 -L/opt/intel/composer_xe_2015.3.187/mkl/lib/&amp;nbsp; -mkl -lmkl_blas95 (if libmkl_blas95.a is there).&lt;/P&gt;

&lt;P&gt;3. regarding the functionality of &amp;nbsp;source compilervars.sh intel64 before run the program or build the program.&lt;/P&gt;

&lt;P&gt;It will set MKLROOT,&amp;nbsp;MKL&amp;nbsp;&amp;nbsp;Include, library path, and run-time path etc. so you can&amp;nbsp; build and run the code easily.&amp;nbsp; Otherwise you need manually&amp;nbsp; write all path in command line and also need to set&amp;nbsp; below&amp;nbsp; (if dynamic link. -mkl is dynamic link by default). at run time.&lt;/P&gt;

&lt;P&gt;export LD_LIBRARY_PATH (DYLD_LIBRARY_PATH)="/opt/intel/composer_xe_2015.2.164/mkl/lib/intel64":"/opt/intel/impi/4.1.2.040/intel64/lib:/opt/intel/composer_xe_2015.2.164/compiler/lib/intel64:/opt/intel/mic/coi/host-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2015.2.164/mpirt/lib/intel64:/opt/intel/composer_xe_2015.2.164/ipp/../compiler/lib/intel64&lt;/P&gt;

&lt;P&gt;4. About ILP64 and LP64,&amp;nbsp; 32bit or Intel 64.&amp;nbsp; You may read the MKL user guide for more details.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-documentation"&gt;https://software.intel.com/en-us/articles/intel-math-kernel-library-documentation&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 03:29:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/getting-started-on-MKL-Error-in-opening-the-compiled-module-file/m-p/1018608#M19639</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-07-21T03:29:16Z</dc:date>
    </item>
  </channel>
</rss>

