<?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: Re:A memory allocation problem in cluster_sparse_solver in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1540090#M35392</link>
    <description>&lt;P&gt;Thanks for your kind reply. I have attached the project below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The environment has been updated to the latest, for instance, OneAPI 2023.2.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 01:20:28 GMT</pubDate>
    <dc:creator>DreamlikeCastle</dc:creator>
    <dc:date>2023-11-03T01:20:28Z</dc:date>
    <item>
      <title>A memory allocation problem in cluster_sparse_solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1538383#M35378</link>
      <description>&lt;P&gt;Hi, friends. I'm writing a fortran code that separates different&amp;nbsp;cluster_sparse_solver phases. However, I get the following error info:&lt;/P&gt;&lt;P&gt;RANK # 3 failed to allocate -0.0291 Gb (-31195472). Memory already allocated 0.0000 Gb&lt;/P&gt;&lt;P&gt;Could anybody try the following code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;include 'mkl_cluster_sparse_solver.f90'&lt;BR /&gt;module pardiso_cluster&lt;BR /&gt;use mkl_cluster_sparse_solver&lt;BR /&gt;use mpi&lt;BR /&gt;implicit none&lt;BR /&gt;private&lt;BR /&gt;TYPE(MKL_CLUSTER_SPARSE_SOLVER_HANDLE), allocatable :: pt(:)&lt;BR /&gt;integer, allocatable :: iparm(:)&lt;BR /&gt;integer :: maxfct, mnum, n, nnz, mtype, phase, msglvl, error, idum(1), nrhs, i, mpi_stat, rank, mkl_comm&lt;BR /&gt;real(8) :: ddum(1)&lt;BR /&gt;public :: pardiso_cluster_1,pardiso_cluster_2,pardiso_cluster_3&lt;BR /&gt;contains&lt;BR /&gt;subroutine pardiso_cluster_1(ia,ja,va)&lt;BR /&gt;implicit none&lt;BR /&gt;integer,allocatable :: ia(:),ja(:)&lt;BR /&gt;real(8),allocatable :: va(:)&lt;BR /&gt;! Initialize task data on master MPI process&lt;BR /&gt;MKL_COMM = MPI_COMM_WORLD&lt;BR /&gt;call mpi_init(mpi_stat)&lt;BR /&gt;call mpi_comm_rank(MKL_COMM, rank, mpi_stat)&lt;BR /&gt;! initialize pardiso working arrays and parameters&lt;BR /&gt;allocate(iparm(64),pt(64))&lt;BR /&gt;do i=1,64&lt;BR /&gt;iparm(i) = 0&lt;BR /&gt;pt(i)%dummy = 0&lt;BR /&gt;end do&lt;BR /&gt;maxfct = 1&lt;BR /&gt;mnum = 1&lt;BR /&gt;mtype = -2&lt;BR /&gt;n = size(ia)-1&lt;BR /&gt;nnz = size(ja)&lt;BR /&gt;msglvl = 1&lt;BR /&gt;error = 0&lt;BR /&gt;nrhs = 1&lt;BR /&gt;! pardiso phase 1 and 2&lt;BR /&gt;phase = 12&lt;BR /&gt;!print*,ia&lt;BR /&gt;call cluster_sparse_solver (pt, maxfct, mnum, mtype, phase, n, Va, ia, ja, idum, nrhs, iparm, msglvl, ddum, ddum, MKL_COMM, error )&lt;BR /&gt;!print*,error&lt;BR /&gt;if (error.ne.0.and.rank.eq.0) stop "PARDISO PHASE 12 error"&lt;BR /&gt;end subroutine pardiso_cluster_1&lt;BR /&gt;subroutine pardiso_cluster_2 (b,x)&lt;BR /&gt;implicit none&lt;BR /&gt;real(8),allocatable :: b(:),x(:)&lt;BR /&gt;! pardiso phase 3&lt;BR /&gt;phase = 33&lt;BR /&gt;call cluster_sparse_solver ( pt, maxfct, mnum, mtype, phase, n, ddum, idum, idum, idum, nrhs, iparm, msglvl, b, x, MKL_COMM, error )&lt;BR /&gt;if (error.ne.0.and.rank.eq.0) stop "PARDISO PHASE 3 error"&lt;BR /&gt;end subroutine pardiso_cluster_2&lt;BR /&gt;subroutine pardiso_cluster_3&lt;BR /&gt;implicit none&lt;BR /&gt;! pardiso phase -1&lt;BR /&gt;phase = -1&lt;BR /&gt;call cluster_sparse_solver ( pt, maxfct, mnum, mtype, phase, n, ddum, idum, idum, idum, nrhs, iparm, msglvl, ddum, ddum, MKL_COMM, error )&lt;BR /&gt;if (error.ne.0.and.rank.eq.0) stop "PARDISO PHASE -1 error"&lt;BR /&gt;! deallocate arrays&lt;BR /&gt;if ( allocated(pt)) deallocate(pt)&lt;BR /&gt;if ( allocated(iparm)) deallocate(iparm)&lt;BR /&gt;! finalize MPI process&lt;BR /&gt;call mpi_finalize(mpi_stat)&lt;BR /&gt;if (error.ne.0.and.rank.eq.0) stop "MPI error"&lt;BR /&gt;end subroutine pardiso_cluster_3&lt;BR /&gt;end module pardiso_cluster&lt;BR /&gt;&lt;BR /&gt;program main&lt;BR /&gt;use pardiso_cluster&lt;BR /&gt;implicit none&lt;BR /&gt;integer mtype, phase&lt;BR /&gt;integer i, n, nnz&lt;BR /&gt;integer, allocatable :: ia( : )&lt;BR /&gt;integer, allocatable :: ja( : )&lt;BR /&gt;real(8), allocatable :: a( : )&lt;BR /&gt;real(8), allocatable :: b( : )&lt;BR /&gt;real(8), allocatable :: x( : )&lt;BR /&gt;data n /8/, nnz /18/&lt;BR /&gt;allocate( ia ( n + 1 ) )&lt;BR /&gt;allocate( ja ( nnz ) )&lt;BR /&gt;allocate( a ( nnz ) )&lt;BR /&gt;allocate( b ( n ) )&lt;BR /&gt;allocate( x ( n ) )&lt;BR /&gt;ia = (/1, 5, 8, 10, 12, 15, 17, 18, 19/)&lt;BR /&gt;ja = (/1, 3, 6, 7, &amp;amp;&lt;BR /&gt;2, 3, 5, &amp;amp;&lt;BR /&gt;3, 8, &amp;amp;&lt;BR /&gt;4, 7, &amp;amp;&lt;BR /&gt;5, 6, 7, &amp;amp;&lt;BR /&gt;6, 8, &amp;amp;&lt;BR /&gt;7, &amp;amp;&lt;BR /&gt;8/)&lt;BR /&gt;a = (/7.d0, 1.d0, 2.d0,7.d0, &amp;amp;&lt;BR /&gt;-4.d0,8.d0, 2.d0, &amp;amp;&lt;BR /&gt;1.d0, 5.d0,&amp;amp;&lt;BR /&gt;7.d0, 9.d0, &amp;amp;&lt;BR /&gt;5.d0,1.d0,5.d0, &amp;amp;&lt;BR /&gt;-1.d0, 5.d0,&amp;amp;&lt;BR /&gt;11.d0, &amp;amp;&lt;BR /&gt;5.d0/)&lt;BR /&gt;b = 1.d0&lt;BR /&gt;CALL pardiso_cluster_1(ia,ja,a)&lt;BR /&gt;CALL pardiso_cluster_2(B,X)&lt;BR /&gt;print*,x&lt;BR /&gt;CALL pardiso_cluster_3&lt;BR /&gt;end program main&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2023 16:56:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1538383#M35378</guid>
      <dc:creator>DreamlikeCastle</dc:creator>
      <dc:date>2023-10-29T16:56:42Z</dc:date>
    </item>
    <item>
      <title>Re:A memory allocation problem in cluster_sparse_solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1538916#M35381</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share your MKL version, software and hardware details so that we can reproduce the issue from our end?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please share the compiled code in a file to avoid indentation errors?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Aryan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Oct 2023 06:24:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1538916#M35381</guid>
      <dc:creator>AryanK_Intel</dc:creator>
      <dc:date>2023-10-31T06:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re:A memory allocation problem in cluster_sparse_solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1540051#M35390</link>
      <description>&lt;P&gt;Thanks for your kind reply. I have attached the code example, please use the Release configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My environment has been updated to the latest, including Windows 11 22621.2506, Visual Studio 17.7.6, and OneAPI 2023.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my system, the error message is like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PARDISO PHASE 12 error&lt;BR /&gt;RANK # 2 failed to allocate -0.0000 Gb (-20). Memory already allocated 0.0000 Gb&lt;BR /&gt;RANK # 3 failed to allocate -0.0000 Gb (-16). Memory already allocated 0.0000 Gb&lt;/P&gt;&lt;P&gt;===================================================================================&lt;BR /&gt;= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES&lt;BR /&gt;= RANK 1 PID 38608 RUNNING AT DESKTOP-MGAJ355&lt;BR /&gt;= EXIT STATUS: -1 (ffffffff)&lt;BR /&gt;===================================================================================&lt;/P&gt;&lt;P&gt;===================================================================================&lt;BR /&gt;= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES&lt;BR /&gt;= RANK 2 PID 31120 RUNNING AT DESKTOP-MGAJ355&lt;BR /&gt;= EXIT STATUS: -1 (ffffffff)&lt;BR /&gt;===================================================================================&lt;/P&gt;&lt;P&gt;===================================================================================&lt;BR /&gt;= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES&lt;BR /&gt;= RANK 3 PID 36292 RUNNING AT DESKTOP-MGAJ355&lt;BR /&gt;= EXIT STATUS: -1 (ffffffff)&lt;BR /&gt;===================================================================================&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 22:00:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1540051#M35390</guid>
      <dc:creator>DreamlikeCastle</dc:creator>
      <dc:date>2023-11-02T22:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re:A memory allocation problem in cluster_sparse_solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1540090#M35392</link>
      <description>&lt;P&gt;Thanks for your kind reply. I have attached the project below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The environment has been updated to the latest, for instance, OneAPI 2023.2.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 01:20:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1540090#M35392</guid>
      <dc:creator>DreamlikeCastle</dc:creator>
      <dc:date>2023-11-03T01:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: A memory allocation problem in cluster_sparse_solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1542665#M35427</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for providing the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please kindly execute the code on the Intel oneAPI command prompt for Intel 64 with Visual Studio 2022 and let us know if the issue persists? Additionally, could you please provide us with the commands being used so that we can reproduce the same at our end?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Aryan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 12:15:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1542665#M35427</guid>
      <dc:creator>AryanK_Intel</dc:creator>
      <dc:date>2023-11-10T12:15:38Z</dc:date>
    </item>
    <item>
      <title>Re:A memory allocation problem in cluster_sparse_solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1544970#M35452</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Gentle reminder&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on the above information?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Aryan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Nov 2023 15:23:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1544970#M35452</guid>
      <dc:creator>AryanK_Intel</dc:creator>
      <dc:date>2023-11-17T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re:A memory allocation problem in cluster_sparse_solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1547102#M35492</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Gentle reminder&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on the above information?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Aryan&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Nov 2023 09:20:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/A-memory-allocation-problem-in-cluster-sparse-solver/m-p/1547102#M35492</guid>
      <dc:creator>AryanK_Intel</dc:creator>
      <dc:date>2023-11-24T09:20:29Z</dc:date>
    </item>
  </channel>
</rss>

