<?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: Divide by zero with ScaLAPACK's PDDBSV in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875805#M8910</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/334681"&gt;Gennady Fedorov&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;Hello, could you please try to use the folowwing linking dependencies:&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 9.5pt; font-family: Arial;"&gt;libmkl_scalapack_core.a libmkl_blacs_intel20.a libmkl_intel_lp64.a libmkl_intel_thread.a libmkl_core.a&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 9.5pt; font-family: Arial;"&gt;--Gennady&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;There seems to be neither a libmkl_scalapack_core.a nor a libmkl_blacs_intel20.a. I substituted libmkl_scalapack.a and libmkl_blacs_intelmpi20_lp64.a for them. The program still crashed with the same error message.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Oct 2008 19:05:59 GMT</pubDate>
    <dc:creator>styc</dc:creator>
    <dc:date>2008-10-02T19:05:59Z</dc:date>
    <item>
      <title>Divide by zero with ScaLAPACK's PDDBSV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875803#M8908</link>
      <description>&lt;P&gt;I was trying to solve some linear systems involving dense diagonally-dominant matrices with ScaLAPACK's PDDBSV routine. The code is listed below. I used ifort 10.1.018 and MKL 10.0.5.025 to compile the program and ran it under MPICH2 1.0.7 on a Q6600 Linux machine. The compiler flags were "-xT -O3 -g -lmkl_scalapack -lmkl_lapack -lmkl_blacs_intelmpi20_lp64 -lmkl -openmp". Every time I ran it, it crashed with the message "forrtl: severe (71): integer divide by zero". According to the crash address, it seemed that the division occurred in the PDDBTRF routine.&lt;/P&gt;&lt;P&gt;I have checked the code back and forth against MKL's documentation and was unable to locate the cause of trouble. Am I missing anything?&lt;/P&gt; &lt;PRE&gt;      PROGRAM PDDBSV_TEST

      EXTERNAL BLACS_PINFO, BLACS_GET, BLACS_GRIDINIT, BLACS_GRIDINFO
      EXTERNAL BLACS_EXIT
      EXTERNAL DESCINIT, DGESD2D, DGERV2D, NUMROC
      EXTERNAL PDDBSV, PDLANGE
      INTEGER NUMROC
      DOUBLE PRECISION PDLANGE

      INTEGER MYPNUM, NPROCS
      INTEGER NPROW, NPCOL
      INTEGER MYPROW, MYPCOL
      INTEGER PROW, PCOL
      INTEGER ICONTXT

      INTEGER N, NRHS, MB, NB, BWL, BWU, BWM, LWORK
      PARAMETER(N = 64, NRHS = 1, MB = 4, NB = 4)
      PARAMETER(BWL = N - 1, BWU = N - 1, BWM = MAX(BWL, BWU))
      PARAMETER(LWORK = NB * (BWL + BWU)
     &amp;gt;                  + BWM * (6 * BWM + MAX(BWM, NRHS)))

      DOUBLE PRECISION, ALLOCATABLE ::  A(:, :)
      DOUBLE PRECISION, ALLOCATABLE ::  B(:, :)
      DOUBLE PRECISION, ALLOCATABLE :: SENDBUF(:, :), WORK(:)
      DOUBLE PRECISION NORM

      INTEGER DLEN_
      PARAMETER(DLEN_ = 9)
      INTEGER DESCA(DLEN_), DESCB(DLEN_)
      INTEGER NAROW, NACOL, NBROW, NBCOL
      INTEGER NXROW, NXCOL
      INTEGER INFO
      INTEGER I, J, IGLB, JGLB

      NPROW = 2
      NPCOL = 2

      CALL BLACS_PINFO(MYPNUM, NPROCS)
      CALL BLACS_GET(0, 0, ICONTXT)
      CALL BLACS_GRIDINIT(ICONTXT, 'R', NPROW, NPCOL)
      CALL BLACS_GRIDINFO(ICONTXT, NPROW, NPCOL, MYPROW, MYPCOL)

      IF ((MYPROW .LT. 0) .OR. (MYPROW .GE. NPROW)) GOTO 999
      IF ((MYPCOL .LT. 0) .OR. (MYPCOL .GE. NPCOL)) GOTO 999
      
      NAROW = NUMROC(N, MB, MYPROW, 0, NPROW)
      NACOL = NUMROC(N, NB, MYPCOL, 0, NPCOL)
      NBROW = NAROW
      NBCOL = NUMROC(NRHS, MB, MYPCOL, 0, NPCOL)

      ALLOCATE(A(MAX(NAROW, BWL + BWU + 1), MAX(NACOL, 1)))
      ALLOCATE(B(MAX(NBROW, NB), MAX(NBCOL, 1)))
      ALLOCATE(WORK(LWORK))

      CALL DESCINIT(DESCA, N, N, MB, NB, 0, 0, ICONTXT,
     &amp;gt;          MAX(NAROW, BWL + BWU + 1), INFO)
      CALL DESCINIT(DESCB, N, NRHS, MB, NB, 0, 0, ICONTXT,
     &amp;gt;          MAX(NBROW, NB), INFO)

!     MATRIX CREATION &amp;amp; DISTRIBUTION CODE GOES HERE&lt;BR /&gt;&lt;BR /&gt;      CALL PDDBSV(N, BWL, BWU, NRHS, A, 1, DESCA, B, 1, DESCB, WORK,
     &amp;gt;          LWORK, INFO)

      DEALLOCATE(A)
      DEALLOCATE(B)
      DEALLOCATE(WORK)

  999 CONTINUE

      CALL BLACS_EXIT(0)

      END&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Oct 2008 22:35:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875803#M8908</guid>
      <dc:creator>styc</dc:creator>
      <dc:date>2008-10-01T22:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero with ScaLAPACK's PDDBSV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875804#M8909</link>
      <description>&lt;DIV style="margin:0px;"&gt;Hello, could you please try to use the folowwing linking dependencies:&lt;/DIV&gt;&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 9.5pt; font-family: Arial;"&gt;libmkl_scalapack_core.a libmkl_blacs_intel20.a libmkl_intel_lp64.a libmkl_intel_thread.a libmkl_core.a&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 9.5pt; font-family: Arial;"&gt;--Gennady&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2008 08:27:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875804#M8909</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-10-02T08:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero with ScaLAPACK's PDDBSV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875805#M8910</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/334681"&gt;Gennady Fedorov&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;Hello, could you please try to use the folowwing linking dependencies:&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 9.5pt; font-family: Arial;"&gt;libmkl_scalapack_core.a libmkl_blacs_intel20.a libmkl_intel_lp64.a libmkl_intel_thread.a libmkl_core.a&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-weight: bold; font-size: 9.5pt; font-family: Arial;"&gt;--Gennady&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;There seems to be neither a libmkl_scalapack_core.a nor a libmkl_blacs_intel20.a. I substituted libmkl_scalapack.a and libmkl_blacs_intelmpi20_lp64.a for them. The program still crashed with the same error message.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2008 19:05:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875805#M8910</guid>
      <dc:creator>styc</dc:creator>
      <dc:date>2008-10-02T19:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero with ScaLAPACK's PDDBSV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875806#M8911</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;I dont think this is a linking error.&lt;/P&gt;
&lt;P&gt;I would check all the parameters once again.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Oct 2008 00:17:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875806#M8911</guid>
      <dc:creator>Tabrez_Ali</dc:creator>
      <dc:date>2008-10-04T00:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero with ScaLAPACK's PDDBSV</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875807#M8912</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;At the first glance all are Ok with your code and probably this is really issue with MKL. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: maroon; font-family: Verdana;"&gt;I would recommend you submit the issue against MKL to Premier support( &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: Verdana;"&gt;&lt;A href="https://premier.intel.com/"&gt;https://premier.intel.com/&lt;/A&gt; )&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: Verdana;"&gt;--Gennady&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2008 13:13:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Divide-by-zero-with-ScaLAPACK-s-PDDBSV/m-p/875807#M8912</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2008-10-06T13:13:03Z</dc:date>
    </item>
  </channel>
</rss>

