<?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 include 'mkl_rci.fi'  in a F90 interface in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809727#M3762</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please provide the updated example code?&lt;/P&gt;&lt;P&gt;How did you build example (command line(s))?&lt;/P&gt;&lt;P&gt;-Vladimir&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2010 08:49:06 GMT</pubDate>
    <dc:creator>Vladimir_Koldakov__I</dc:creator>
    <dc:date>2010-05-28T08:49:06Z</dc:date>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809726#M3761</link>
      <description>HI there,&lt;BR /&gt;&lt;BR /&gt;I am trying to use the INTEL iterative solver RCI FGMRES and I am trying to run the INTEL example as my first step. I can't get the correct answers. &lt;BR /&gt;&lt;BR /&gt;I am copying the code from INTEL example which is for a f77 compiler. I am changing the code from f77 to f95 but I am keeping the header file which is 'mkl_rci.f' .&lt;BR /&gt;&lt;BR /&gt;As far as I know this header file is for a F77 interface. IS it okay to use this header file while having the rest of the code in F90 ?&lt;BR /&gt;&lt;BR /&gt;I mean instead of "double precision" declarationsm I am using REAL*8 and INTEGER*8.&lt;BR /&gt;&lt;BR /&gt;My final answer are all either infinity or NaN as mentioned in my other thread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=74658" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=74658&lt;/A&gt;&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Is it possible to use a F77 interface header file in a F90 code ? &lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Fri, 28 May 2010 05:12:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809726#M3761</guid>
      <dc:creator>miramin</dc:creator>
      <dc:date>2010-05-28T05:12:20Z</dc:date>
    </item>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809727#M3762</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please provide the updated example code?&lt;/P&gt;&lt;P&gt;How did you build example (command line(s))?&lt;/P&gt;&lt;P&gt;-Vladimir&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2010 08:49:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809727#M3762</guid>
      <dc:creator>Vladimir_Koldakov__I</dc:creator>
      <dc:date>2010-05-28T08:49:06Z</dc:date>
    </item>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809728#M3763</link>
      <description>Assuming that you meant 'mkl_rci.fi' rather than 'mkl_rci.f' as the include file, I'd suggest running the fixed format INTEL example and getting it to work before changing the code to free format F95. &lt;BR /&gt;&lt;BR /&gt;Fortran 77 has one format for source files: fixed format, with statements starting in column-7,etc. Fortran 9x allows fixed format as well, but introduced free format -- each source file has to adhere to one of the two formats. Almost all of Fortran 77 is a subset of Fortran 9x. &lt;BR /&gt;&lt;BR /&gt;There are some parts of fixed format Fortran source (e.g., line continuations) that are not compatible with free format. As long as the preprocessor output does not run afoul of these incompatibilities, there should be no problem.&lt;BR /&gt;&lt;BR /&gt;The consequence of all this is that &lt;I&gt;you do not have to make any changes to F77 code&lt;/I&gt; in order to compile it with an F9x compiler. There may be other reasons to change the code, but mere compiling is not reason enough.</description>
      <pubDate>Fri, 28 May 2010 12:54:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809728#M3763</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-05-28T12:54:05Z</dc:date>
    </item>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809729#M3764</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=93629" class="basic" href="https://community.intel.com/en-us/profile/93629/"&gt;Vladimir Koldakov (Intel)&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Could you please provide the updated example code?&lt;/P&gt;&lt;P&gt;How did you build example (command line(s))?&lt;/P&gt;&lt;P&gt;-Vladimir&lt;/P&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vladimir ,&lt;/P&gt;&lt;P&gt;My comiler version is INTEL 10.1 and MKL library is 10.1. My code is also attached to this message. &lt;/P&gt;&lt;P&gt;I am using the follwoing command to compile my code :&lt;/P&gt;&lt;P&gt;&lt;B&gt;ifort RCIFGMRES_INTEL.f90 -g -o ISS.exe -I 
/usr/local/compilers/Intel/mkl-10.1/include -L$MKL_HOME/lib/em64t -lmkl 
-lmkl_lapack -lguide -Wl,--start-group 
$MKL_HOME/lib/em64/libmkl_solver_ilp64_sequential.a 
$MKL_HOME/lib/em64t/libmkl_intel_ilp64.a 
$MKL_HOME/lib/em64t/libmkl_solver_ilp64_sequential.a 
$MKL_HOME/lib/em64t/libmkl_core.a -lpthread -Wl,--end-group &lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;I can compile it , there is no error here!&lt;/P&gt;&lt;P&gt;But when I run it I get NaN values and infinity as follows :&lt;/P&gt;&lt;P&gt;&lt;I&gt;The system has been solved&lt;BR /&gt;&lt;BR /&gt; The following solution has been obtained:&lt;BR /&gt;COMPUTED_SOLUTION(1)= NaN &lt;BR /&gt;COMPUTED_SOLUTION(2)= -Infinity&lt;BR /&gt;COMPUTED_SOLUTION(3)= NaN &lt;BR /&gt;COMPUTED_SOLUTION(4)= Infinity &lt;BR /&gt;COMPUTED_SOLUTION(5)= NaN &lt;BR /&gt;&lt;BR /&gt; The expected solution is:&lt;BR /&gt;EXPECTED_SOLUTION(1)=-0.100E+01&lt;BR /&gt;EXPECTED_SOLUTION(2)= 0.100E+01&lt;BR /&gt;EXPECTED_SOLUTION(3)= 0.000E+00&lt;BR /&gt;EXPECTED_SOLUTION(4)= 0.100E+01&lt;BR /&gt;EXPECTED_SOLUTION(5)=-0.100E+01&lt;BR /&gt;&lt;BR /&gt; Number of iterations: 1&lt;BR /&gt;This example may have FAILED as either the number of iterations differs from the expected number of iterations 5 or the computed solution differs much from the expected solution (Euclidean norm is 0.0000000000000000E+00), or both.&lt;BR /&gt;1&lt;BR /&gt;[smirsa1@philip1 ISS]$ &lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2010 16:27:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809729#M3764</guid>
      <dc:creator>miramin</dc:creator>
      <dc:date>2010-05-28T16:27:13Z</dc:date>
    </item>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809730#M3765</link>
      <description>&lt;DIV id="tiny_quote"&gt;
                &lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=9662" class="basic" href="https://community.intel.com/en-us/profile/9662/"&gt;mecej4&lt;/A&gt;&lt;/DIV&gt;
                &lt;DIV style="background-color: #e5e5e5; padding: 5px; border: 1px inset; margin-left: 2px; margin-right: 2px;"&gt;&lt;I&gt;Assuming that you meant 'mkl_rci.fi' rather than 'mkl_rci.f' as the include file, I'd suggest running the fixed format INTEL example and getting it to work before changing the code to free format F95. &lt;BR /&gt;&lt;BR /&gt;Fortran 77 has one format for source files: fixed format, with statements starting in column-7,etc. Fortran 9x allows fixed format as well, but introduced free format -- each source file has to adhere to one of the two formats. Almost all of Fortran 77 is a subset of Fortran 9x. &lt;BR /&gt;&lt;BR /&gt;There are some parts of fixed format Fortran source (e.g., line continuations) that are not compatible with free format. As long as the preprocessor output does not run afoul of these incompatibilities, there should be no problem.&lt;BR /&gt;&lt;BR /&gt;The consequence of all this is that &lt;I&gt;you do not have to make any changes to F77 code&lt;/I&gt; in order to compile it with an F9x compiler. There may be other reasons to change the code, but mere compiling is not reason enough.&lt;/I&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi mecej4,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could compile the F77 EXAMPE Of INTEL[ &lt;B&gt;Intel MKL RCI (P)FGMRES ((Preconditioned) Flexible Generalize Minimal
 RESidual method) example&lt;/B&gt;] with no problem with the following command :&lt;B&gt; &lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;ifort exm.f -g -o I.exe -I /usr/local/compilers/Intel/mkl-10.1/include -L$MKL_HOME/lib/em64t -lmkl -lmkl_lapack -lguide -Wl,--start-group $MKL_HOME/lib/em64t/libmkl_solver_ilp64_sequential.a $MKL_HOME/lib/em64t/libmkl_intel_ilp64.a $MKL_HOME/lib/em64t/libmkl_core.a -lpthread -lmkl -lmkl_lapack -lguide -Wl,--end-group -lpthread &lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I run it , it is aborted :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[smirsa1@philip1 ISS]$ ./I.exe &lt;BR /&gt;--------------------------------------------------&lt;BR /&gt;The SIMPLEST example of usage of RCI FGMRES solver&lt;BR /&gt;to solve a non-symmetric indefinite non-degenerate&lt;BR /&gt; algebraic system of linear equations&lt;BR /&gt;--------------------------------------------------&lt;BR /&gt;Aborted&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a debugger on INTEL I could use ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2010 17:31:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809730#M3765</guid>
      <dc:creator>miramin</dc:creator>
      <dc:date>2010-05-28T17:31:53Z</dc:date>
    </item>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809731#M3766</link>
      <description>&lt;DIV id="_mcePaste"&gt;Can you upload the exm.f file you are using?&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;why you link threaded and sequentional libraries together?&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;See the link advisor at the top of the forum - it will give you the proper linking line&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;Can you upload the exm.f file you are using?why you link threaded and sequentional libraries together?See the link advisor at the top of the forum - it will give you the proper linking line&lt;DIV&gt;--Gennady&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 May 2010 16:14:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809731#M3766</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-05-30T16:14:08Z</dc:date>
    </item>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809732#M3767</link>
      <description>&lt;DIV id="_mcePaste"&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;quote: "Is there a debugger on INTEL I could use ?"Yes, sure. The Intel Debugger (IDB) is a component of Intel C++ and Intel Fortran Compilers and If you have installed Intel compiler then you have intel debugger also.&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 30 May 2010 18:57:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809732#M3767</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-05-30T18:57:24Z</dc:date>
    </item>
    <item>
      <title>include 'mkl_rci.fi'  in a F90 interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809733#M3768</link>
      <description>Dear Gennady,&lt;BR /&gt;&lt;BR /&gt;Finally, I could run the example successfully. And my result was right. The adminitrator on the system I am using, installed the latest version of MKL library (10.2) and my problems were all solved. The latest version of INTEL compiler and MKL version 10.1 do not go together, at least thsi was the case for me. &lt;BR /&gt;&lt;BR /&gt;Thank you so much fo ryour input and help.&lt;BR /&gt;&lt;BR /&gt;Amin</description>
      <pubDate>Mon, 31 May 2010 15:26:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/include-mkl-rci-fi-in-a-F90-interface/m-p/809733#M3768</guid>
      <dc:creator>miramin</dc:creator>
      <dc:date>2010-05-31T15:26:23Z</dc:date>
    </item>
  </channel>
</rss>

