<?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 MKL use and linking in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858189#M7233</link>
    <description>I'm trying to using the MKL routine in a code.&lt;BR /&gt;In fact i'm interested in evaluating the gradient of a certain function. &lt;BR /&gt;Previously, when i had at disposal the IMSL libraries, i used the IMSL function CDGRD.&lt;BR /&gt;Now i need to use the MKL. As i understand there is not a similar function in the MKL library, but the gradient can be obtained by using the MKL routine evaluating the jacobian of a one value function. &lt;BR /&gt;Regarding this point i haven't understand which function i have to use between djacobi_solve and djacobi.&lt;BR /&gt;I tried to use both by following the examples reported in the manual.&lt;BR /&gt;&lt;BR /&gt;1) Djacobi :&lt;BR /&gt;I used the following command:&lt;BR /&gt;res=djacobi(FCN_2,1,NUNK,gnew(1:NUNK),xnB(1:NUNK),epsjac)&lt;BR /&gt;&lt;BR /&gt;where FCN_2 is the external function having one value and depending on NUNK variables&lt;BR /&gt;gnew is the gradient&lt;BR /&gt;xnB is the vector containing the variables at the current stage&lt;BR /&gt;epsjac is the precision&lt;BR /&gt;&lt;BR /&gt;I did not get the same results as with the function CDGRD. I get a very big number for the first components and zero for the other gradient components, while the res is a very big negative number.&lt;BR /&gt;&lt;BR /&gt;2) DJACOBI_SOLVE&lt;BR /&gt;I tried to compile the example shown at &lt;A href="http://www.intel.com/software/products/mkl/docs/WebHelp/osr/osr_djacobi_solve_example.html" target="_blank"&gt;http://www.intel.com/software/products/mkl/docs/WebHelp/osr/osr_djacobi_solve_example.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately I cannot find the mkl_opt_tr.f, so i removed the "include" line.&lt;BR /&gt;Then I get some error messages saying that it does not recognize the djacobi_init, djacobi_solve and so on. So i suppose i do not link correctly to the MKL libraries.&lt;BR /&gt;&lt;BR /&gt;HELP AND SUGGESTIONS???&lt;BR /&gt;Thanks&lt;BR /&gt;C.&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Apr 2009 13:00:25 GMT</pubDate>
    <dc:creator>clodxpro</dc:creator>
    <dc:date>2009-04-16T13:00:25Z</dc:date>
    <item>
      <title>MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858189#M7233</link>
      <description>I'm trying to using the MKL routine in a code.&lt;BR /&gt;In fact i'm interested in evaluating the gradient of a certain function. &lt;BR /&gt;Previously, when i had at disposal the IMSL libraries, i used the IMSL function CDGRD.&lt;BR /&gt;Now i need to use the MKL. As i understand there is not a similar function in the MKL library, but the gradient can be obtained by using the MKL routine evaluating the jacobian of a one value function. &lt;BR /&gt;Regarding this point i haven't understand which function i have to use between djacobi_solve and djacobi.&lt;BR /&gt;I tried to use both by following the examples reported in the manual.&lt;BR /&gt;&lt;BR /&gt;1) Djacobi :&lt;BR /&gt;I used the following command:&lt;BR /&gt;res=djacobi(FCN_2,1,NUNK,gnew(1:NUNK),xnB(1:NUNK),epsjac)&lt;BR /&gt;&lt;BR /&gt;where FCN_2 is the external function having one value and depending on NUNK variables&lt;BR /&gt;gnew is the gradient&lt;BR /&gt;xnB is the vector containing the variables at the current stage&lt;BR /&gt;epsjac is the precision&lt;BR /&gt;&lt;BR /&gt;I did not get the same results as with the function CDGRD. I get a very big number for the first components and zero for the other gradient components, while the res is a very big negative number.&lt;BR /&gt;&lt;BR /&gt;2) DJACOBI_SOLVE&lt;BR /&gt;I tried to compile the example shown at &lt;A href="http://www.intel.com/software/products/mkl/docs/WebHelp/osr/osr_djacobi_solve_example.html" target="_blank"&gt;http://www.intel.com/software/products/mkl/docs/WebHelp/osr/osr_djacobi_solve_example.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately I cannot find the mkl_opt_tr.f, so i removed the "include" line.&lt;BR /&gt;Then I get some error messages saying that it does not recognize the djacobi_init, djacobi_solve and so on. So i suppose i do not link correctly to the MKL libraries.&lt;BR /&gt;&lt;BR /&gt;HELP AND SUGGESTIONS???&lt;BR /&gt;Thanks&lt;BR /&gt;C.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Apr 2009 13:00:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858189#M7233</guid>
      <dc:creator>clodxpro</dc:creator>
      <dc:date>2009-04-16T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858190#M7234</link>
      <description>you wrote....&lt;BR /&gt;
&lt;P&gt;"Then I get some error messages saying that it does not recognize the djacobi_init, djacobi_solve and so on. So i suppose i do not link correctly to the MKL libraries."&lt;/P&gt;
&lt;P&gt;Can you get me the log file of these messages?&lt;BR /&gt;What MKL version you are using?&lt;BR /&gt;Is this ia32 or Intel64 architecture?&lt;BR /&gt;--Gennagy&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2009 19:02:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858190#M7234</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-04-16T19:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858191#M7235</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
Hi,&lt;BR /&gt;&lt;BR /&gt;(1) djacobi&lt;BR /&gt;&lt;BR /&gt;your input data is wrong. djacobi requires external function defined as FCN(m, n, x, f). Following (sometimes bizzare) logic of IMSL lib you probably calling something like FCN (n, x,f). Fix the interface and you should be fine.&lt;BR /&gt;&lt;BR /&gt;(2) linking&lt;BR /&gt;&lt;BR /&gt;You just need (linker)&lt;BR /&gt;&lt;BR /&gt;mkl_intel_c.lib mkl_core.lib mkl_solver.lib mkl_intel_thread.lib libiomp5md.lib&lt;BR /&gt;&lt;BR /&gt;(for IA32 or x64 equivalent)&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;BR /&gt;INCLUDE ''MKL_RCI.fi' statement.&lt;BR /&gt;&lt;BR /&gt;If you still have problems I can come up later on with an example.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;&lt;BR /&gt;EDIT: gnew must be defined as matrix, so call it with gnew(1, 1:nunk).&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Apr 2009 01:37:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858191#M7235</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-04-17T01:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858192#M7236</link>
      <description>&lt;BR /&gt;
&lt;P&gt;One more comment about this example:&lt;BR /&gt;The line 47 must be changed as &lt;BR /&gt;IF ( RCI_REQUEST == 1) THEN&lt;BR /&gt;-we will fix all these misprints ( including Artur mentioned about above ).&lt;BR /&gt;--GIF&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2009 06:27:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858192#M7236</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-04-17T06:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858193#M7237</link>
      <description>&lt;BR /&gt;Thank you all!&lt;BR /&gt;I succesfully used the djacobi function. There was an interface problem because i was not using double precision variables, and a problem related to the precision (i adopted a too low value). At the moment the ISML function and the MKL function give the same results.&lt;BR /&gt;However I get an unexpected warning:&lt;BR /&gt;&lt;BR /&gt;OMP: Warning #18: Setting environment variable "__KMP_REGISTERED_LIB_5092" failed:&lt;BR /&gt;OMP: System error #203: The system could not find the environment option that was entered&lt;BR /&gt;OMP: Error #110: Clearing __KMP_REGISTERED_LIB env var failed.&lt;BR /&gt;&lt;BR /&gt;It's very strange since i do not use OPENMP. Probably these are included in the MKL.&lt;BR /&gt;I've read that this problem could be solved by including the libguide40.lib or the newer version (I do not have). Unfortunately when i link to libguide40.lib the warning does not disappear.&lt;BR /&gt;&lt;BR /&gt;I'm using a ia32 system, on windows, under visual studio. The MKL version is the 9.1.027.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me why this warning appears and how to solve it?&lt;BR /&gt;&lt;BR /&gt;It's important noting that iput "mkl_s.lib libguide40.lib"in the "linkerinputadditional dependencies" row of the property page of my project. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Apr 2009 11:20:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858193#M7237</guid>
      <dc:creator>clodxpro</dc:creator>
      <dc:date>2009-04-17T11:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858194#M7238</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
If you don't intend to use the OpenMP support in MKL 9.1, you must link the serial library, not the standard threaded one. Much of the advice you have been getting applies only to recent MKL versions, which is understandable, as you didn't tell what you are doing until now.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Apr 2009 13:48:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858194#M7238</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-17T13:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858195#M7239</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&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;If you don't intend to use the OpenMP support in MKL 9.1, you must link the serial library, not the standard threaded one. Much of the advice you have been getting applies only to recent MKL versions, which is understandable, as you didn't tell what you are doing until now.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Thank you Tim18.&lt;BR /&gt;As you wrote i can choose to use or not the OpenMP support. As consequence i suppose the MKL functions i'm using can also operate without the OpenMP support.&lt;BR /&gt;My problem is due to the fact that i'm not fully understood which libraries have to be linked. &lt;BR /&gt;By reading the manual i've understand i have to link to mkc_c_dll.lib and libguide40.lib (since it's raccomended to link dynamically). But if i do so i get: "unresolved _DJACOBI symbol.... in module2"&lt;/P&gt;
&lt;P&gt;So i tried to link the other libraries and i get no error message only if i link mkl_s.lib and libguide40.lib(no mkl_s_dll.lib)&lt;/P&gt;
&lt;P&gt;When i usemkl_s.lib the djacobi function gives the same results as the IMSL function.&lt;BR /&gt;Note that I need to link to libguide40.lib because without this lib i get error messages due to unresolved OMP variables....&lt;BR /&gt;&lt;BR /&gt;However if I use the MKL functions linking as above or if I return to the code using the IMSL routines but i leave the link to mkl_s.lib, some variables not related to the gradient vary, and in particular the index of an array goes out of range. Note that if I use the IMSL version without the link to mkl_s.lib all works fine. &lt;BR /&gt;&lt;BR /&gt;I guess i'm not using the right linking mode. &lt;BR /&gt;Please can you tell me what's wrong?&lt;BR /&gt;Claudio&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2009 14:48:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858195#M7239</guid>
      <dc:creator>clodxpro</dc:creator>
      <dc:date>2009-04-17T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858196#M7240</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
mkl_s_lib is meant to support CVF. If you link it, you will not be able to use mkl_c_lib, which is required by ifort and the C/C++ compilers.&lt;BR /&gt;It's true, you should be able to link in the OpenMP support and prevent threading at run time by setting an environment variable (MKL_SERIAL?) but I don't know that the environment variable has any effect on linking issues. I thought in one place you were saying you didn't want to link in OpenMP support. There is a serial version of MKL for that purpose. In 9.1, it was optional and installed in a separate folder.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Apr 2009 17:12:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858196#M7240</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-17T17:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858197#M7241</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/283341"&gt;clodxpro&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;
&lt;P&gt;&lt;BR /&gt;Thank you Tim18.&lt;BR /&gt;As you wrote i can choose to use or not the OpenMP support. As consequence i suppose the MKL functions i'm using can also operate without the OpenMP support.&lt;BR /&gt;My problem is due to the fact that i'm not fully understood which libraries have to be linked. &lt;BR /&gt;By reading the manual i've understand i have to link to mkc_c_dll.lib and libguide40.lib (since it's raccomended to link dynamically). But if i do so i get: "unresolved _DJACOBI symbol.... in module2"&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;did you use INCLUDE 'MKL_RCI.fi' in the other module?&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2009 06:30:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858197#M7241</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-04-20T06:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858198#M7242</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/342379"&gt;ArturGuzik&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;&lt;BR /&gt;did you use INCLUDE 'MKL_RCI.fi' in the other module?&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I've tried.&lt;BR /&gt;When I include the MKL_RCI.fi (while using mkl_c_dll.lib and libguide40.lib ) i get 31 error messages and 4 warnings like the following:&lt;BR /&gt;&lt;BR /&gt;WARNING: warning #5117 : Bad # preprocessor line&lt;BR /&gt;ERROR: Error5 error #5082: Syntax error, found '**' when expecting one of: ( %% : . = =&amp;gt;D:ProgrammiIntel_NEWMKL9.1.027includeMKL_RCI.fi33&lt;BR /&gt;&lt;BR /&gt;ERROR: Error6 error #5082: Syntax error, found '**' when expecting one of: ( %% : . = =&amp;gt;D:ProgrammiIntel_NEWMKL9.1.027includeMKL_RCI.fi41&lt;BR /&gt;&lt;BR /&gt;and so on...&lt;BR /&gt;I think the errors are due to format issues. I guess it could be trivial errors, but i'm not experienced with format issues. &lt;BR /&gt;Do you have any suggestions?&lt;BR /&gt;Thank &lt;BR /&gt;C&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2009 08:46:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858198#M7242</guid>
      <dc:creator>clodxpro</dc:creator>
      <dc:date>2009-04-20T08:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858199#M7243</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/283341"&gt;clodxpro&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;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;I've tried.&lt;BR /&gt;When I include the MKL_RCI.fi (while using mkl_c_dll.lib and libguide40.lib ) i get 31 error messages and 4 warnings like the following:&lt;BR /&gt;&lt;BR /&gt;WARNING: warning #5117 : Bad # preprocessor line&lt;BR /&gt;ERROR: Error5 error #5082: Syntax error, found '**' when expecting one of: ( %% : . = =&amp;gt;D:ProgrammiIntel_NEWMKL9.1.027includeMKL_RCI.fi33&lt;BR /&gt;&lt;BR /&gt;ERROR: Error6 error #5082: Syntax error, found '**' when expecting one of: ( %% : . = =&amp;gt;D:ProgrammiIntel_NEWMKL9.1.027includeMKL_RCI.fi41&lt;BR /&gt;&lt;BR /&gt;and so on...&lt;BR /&gt;I think the errors are due to format issues. I guess it could be trivial errors, but i'm not experienced with format issues. &lt;BR /&gt;Do you have any suggestions?&lt;BR /&gt;Thank &lt;BR /&gt;C&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I remember that (actually that was one of support issues I submitted at that time, I mean version 9). Well, two options:&lt;BR /&gt;&lt;BR /&gt;(1) the easy thing would be just extract the interface of djacobi routine (and probably some of the parameters) to your own MODULE file, and then USE &lt;EM&gt;your_module_name&lt;/EM&gt; instead of INCLUDE ..... one&lt;BR /&gt;&lt;BR /&gt;(2) try to fix the format but as far as I can recall, compiler was not recognizing the mixture of "*.fi" and other files.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2009 09:28:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858199#M7243</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-04-20T09:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858200#M7244</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/342379"&gt;ArturGuzik&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;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I remember that (actually that was one of support issues I submitted at that time, I mean version 9). Well, two options:&lt;BR /&gt;&lt;BR /&gt;(1) the easy thing would be just extract the interface of djacobi routine (and probably some of the parameters) to your own MODULE file, and then USE &lt;EM&gt;your_module_name&lt;/EM&gt; instead of INCLUDE ..... one&lt;BR /&gt;&lt;BR /&gt;(2) try to fix the format but as far as I can recall, compiler was not recognizing the mixture of "*.fi" and other files.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thank you!&lt;BR /&gt;Please can you explain me widely the 1st point?&lt;BR /&gt;Thanks&lt;BR /&gt;C&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2009 10:49:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858200#M7244</guid>
      <dc:creator>clodxpro</dc:creator>
      <dc:date>2009-04-20T10:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858201#M7245</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/283341"&gt;clodxpro&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;&lt;BR /&gt;Thank you all!&lt;BR /&gt;I succesfully used the djacobi function. There was an interface problem because i was not using double precision variables, and a problem related to the precision (i adopted a too low value). At the moment the ISML function and the MKL function give the same results.&lt;BR /&gt;However I get an unexpected warning:&lt;BR /&gt;&lt;BR /&gt;OMP: Warning #18: Setting environment variable "__KMP_REGISTERED_LIB_5092" failed:&lt;BR /&gt;OMP: System error #203: The system could not find the environment option that was entered&lt;BR /&gt;OMP: Error #110: Clearing __KMP_REGISTERED_LIB env var failed.&lt;BR /&gt;&lt;BR /&gt;It's very strange since i do not use OPENMP. Probably these are included in the MKL.&lt;BR /&gt;I've read that this problem could be solved by including the libguide40.lib or the newer version (I do not have). Unfortunately when i link to libguide40.lib the warning does not disappear.&lt;BR /&gt;&lt;BR /&gt;I'm using a ia32 system, on windows, under visual studio. The MKL version is the 9.1.027.&lt;BR /&gt;&lt;BR /&gt;Can someone tell me why this warning appears and how to solve it?&lt;BR /&gt;&lt;BR /&gt;It's important noting that iput "mkl_s.lib libguide40.lib"in the "linkerinputadditional dependencies" row of the property page of my project. &lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;P&gt;clodxpro,&lt;BR /&gt;some an additional comment: if you don't intend to use threading version of mkl, you can link the serial version of 9.1. the linking line will be something like for win32:&lt;BR /&gt;&lt;STRONG&gt;"icl test.c mkl_c.lib"&lt;BR /&gt;&lt;/STRONG&gt;by another words your linkerinputadditional dependencies" will contains only &lt;STRONG&gt;mkl_c.lib&lt;/STRONG&gt;&lt;BR /&gt;and therefore your "Additional Library Directories" will looks like &lt;MKL_ROOT&gt;9.1lib_serialia32lib,&lt;BR /&gt;where as an examples &lt;MKL_ROOT&gt; = C:AppsIntelMKL&lt;BR /&gt;note: &lt;EM&gt;There are two options for downloading and installing Intel MKL 9.1 for Windows*: &lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;A standard package containing the Intel MKL product: w_mkl_p_9.1.0xx.exe &lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;An extended package containing the Intel MKL product plus ILP64 and serial versions of the library: &lt;BR /&gt;_mkl_enh_p_9.1.0xx.exe &lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;So - you need to install w_mkl_enh_p_9.1.027.exe&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;You can get this version on intel registration center "htps://registrationcenter.intel.com"&lt;/EM&gt;&lt;/MKL_ROOT&gt;&lt;/MKL_ROOT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2009 14:46:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858201#M7245</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-04-20T14:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: MKL use and linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858202#M7246</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/283341"&gt;clodxpro&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; &lt;BR /&gt;Thank you!&lt;BR /&gt;Please can you explain me widely the 1st point?&lt;BR /&gt;Thanks&lt;BR /&gt;C&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
OK. This is even simpler than I thought. If you open MKL_RCI.fi file you'll find the following (required) declarations. Just copy the statements below to your routine and remove INCLUDE command from your source.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[java]    EXTERNAL DJACOBI&lt;BR /&gt;    INTEGER  DJACOBI&lt;BR /&gt;    INTEGER    TR_SUCCESS&lt;BR /&gt;    PARAMETER (TR_SUCCESS = 1501)&lt;BR /&gt;    INTEGER    TR_INVALID_OPTION&lt;BR /&gt;    PARAMETER (TR_INVALID_OPTION = 1502)&lt;BR /&gt;    INTEGER    TR_OUT_OF_MEMORY&lt;BR /&gt;    PARAMETER (TR_OUT_OF_MEMORY = 1503)&lt;BR /&gt;[/java]&lt;/PRE&gt;
&lt;BR /&gt;Then your code should compile and build. Later I will attach example code I have. Make sure that parameters values didn't change over the time (by checking with your version include file).&lt;BR /&gt;&lt;BR /&gt;Please also pay attention to Tim's and Gennady's posts, as they have more insight into old version (you're using) memmory related issues.&lt;BR /&gt;&lt;BR /&gt;A.&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Apr 2009 00:58:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-use-and-linking/m-p/858202#M7246</guid>
      <dc:creator>ArturGuzik</dc:creator>
      <dc:date>2009-04-21T00:58:01Z</dc:date>
    </item>
  </channel>
</rss>

