<?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 example of dcgmrhs in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784770#M1759</link>
    <description>problem solved after initialization of ipar and dpar arrays</description>
    <pubDate>Sat, 03 Dec 2011 03:31:30 GMT</pubDate>
    <dc:creator>alvesker86</dc:creator>
    <dc:date>2011-12-03T03:31:30Z</dc:date>
    <item>
      <title>example of dcgmrhs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784766#M1755</link>
      <description>Can anyone provide a simple example to solve the symmetric 
positive-definite system with multiple right hand side with dsgmrhs 
(Fortran 90)?&lt;BR /&gt;&lt;BR /&gt;I tried to follow the instruction of link advisor. Below are the libraries that were linked.&lt;BR /&gt;&lt;BR /&gt;libmkl_gf.a, libmkl_intel_thread.a, libmkl_core.a, libmkl_lapack.a, libmkl_solver.a, liomp5, lpthread&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But when I try to compile my code I got the following:&lt;BR /&gt;&lt;BR /&gt;/usr/local/intel/mkl/10.1.0.015/lib/32/libmkl_solver.a(dcgmrhs.o): In function `dcgmrhs_':&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xa3): undefined reference to `dcopy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xcc): undefined reference to `dscal_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x112): undefined reference to `daxpy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x18b): undefined reference to `dnrm2_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x4b4): undefined reference to `dcopy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x5e3): undefined reference to `daxpy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x624): undefined reference to `daxpy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x6a2): undefined reference to `daxpy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x6ea): undefined reference to `daxpy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x748): undefined reference to `dnrm2_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x827): undefined reference to `dcopy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x8fb): undefined reference to `dscal_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0x923): undefined reference to `daxpy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xa09): undefined reference to `dcopy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xa7c): undefined reference to `dcopy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xaa5): undefined reference to `dscal_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xaeb): undefined reference to `daxpy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xb0d): undefined reference to `dnrm2_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xbf3): undefined reference to `dcopy_'&lt;BR /&gt;../../../../solvers_is/kernel/default/dcgmrhs.f:(.text+0xcc7): undefined reference to `dcopy_'</description>
      <pubDate>Wed, 30 Nov 2011 06:54:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784766#M1755</guid>
      <dc:creator>alvesker86</dc:creator>
      <dc:date>2011-11-30T06:54:13Z</dc:date>
    </item>
    <item>
      <title>example of dcgmrhs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784767#M1756</link>
      <description>An example would not be of much help (although you could try cg_mrhs.f in the .../mkl/examples/solverf/source directory --this is in the MKL version distributed with the 12.1 Fortran compiler), since your problem is with linking. Libraries are searched in the order listed, and your list of libraries shows libmkl_solver.a appearing &lt;SPAN style="text-decoration: underline;"&gt;after&lt;/SPAN&gt; libmkl_core.a. This would cause the BLAS routines needed by the solver routines to go unresolved.&lt;BR /&gt;&lt;BR /&gt;The Link Line Advisor gave me this:&lt;BR /&gt;&lt;BR /&gt; $(MKLROOT)/lib/32/libmkl_solver.a -Wl,--start-group $(MKLROOT)/lib/32/libmkl_intel.a $(MKLROOT)/lib/32/libmkl_intel_thread.a $(MKLROOT)/lib/32/libmkl_core.a -Wl,--end-group -openmp -lpthread&lt;BR /&gt;&lt;BR /&gt;However, the much simpler command &lt;BR /&gt;&lt;BR /&gt; $ ifort -mkl cg_mrhs.f&lt;BR /&gt;&lt;BR /&gt;may suffice, depending on the compiler version that you use.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2011 08:42:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784767#M1756</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-11-30T08:42:54Z</dc:date>
    </item>
    <item>
      <title>example of dcgmrhs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784768#M1757</link>
      <description>Thanks for the quick respond mecej4!&lt;BR /&gt;&lt;BR /&gt;The problem was really in the order of libraries to link&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2011 00:50:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784768#M1757</guid>
      <dc:creator>alvesker86</dc:creator>
      <dc:date>2011-12-01T00:50:25Z</dc:date>
    </item>
    <item>
      <title>example of dcgmrhs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784769#M1758</link>
      <description>The other question is that according to the MKL userguide if ipar(10)=1 the routine dcgmrhs should perform user defined stopped test by settinh RCI_request=2&lt;BR /&gt;&lt;BR /&gt;call dcgmrhs_init(N, xi1, 3, xi, 1, RCI_request, ipar, dpar, tmp)&lt;BR /&gt; xi1 = 0._DP&lt;BR /&gt; call dcgmrhs_check(N, xi1, 3, xi, RCI_request, ipar, dpar, tmp)&lt;BR /&gt; 1 print*,ipar(10)&lt;BR /&gt; call dcgmrhs(N, xi1, 3, xi, RCI_request, ipar, dpar, tmp)&lt;BR /&gt; print*,ipar(10)&lt;BR /&gt; print*,RCI_request&lt;BR /&gt;&lt;BR /&gt;when I run this it prints RCI_request=1 first (after that as written in userguide I multiply a matrix by tmp(:,1) and copy to tmp(:,2)), the RCI_request=0 instead of 2. But how it is possible as ipar(10)=1?&lt;BR /&gt;&lt;BR /&gt;I haven't this problem when use dcg, it sets RCI_request=3 normally</description>
      <pubDate>Thu, 01 Dec 2011 01:01:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784769#M1758</guid>
      <dc:creator>alvesker86</dc:creator>
      <dc:date>2011-12-01T01:01:14Z</dc:date>
    </item>
    <item>
      <title>example of dcgmrhs</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784770#M1759</link>
      <description>problem solved after initialization of ipar and dpar arrays</description>
      <pubDate>Sat, 03 Dec 2011 03:31:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/example-of-dcgmrhs/m-p/784770#M1759</guid>
      <dc:creator>alvesker86</dc:creator>
      <dc:date>2011-12-03T03:31:30Z</dc:date>
    </item>
  </channel>
</rss>

