<?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 Hi, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174216#M28780</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
	&lt;BR /&gt;
	I don't see a call to the mkl_sparse_destroy() routine.&lt;BR /&gt;
	(please, refer to&amp;nbsp;https://software.intel.com/en-us/mkl-developer-reference-fortran-mkl-sparse-destroy)&lt;BR /&gt;
	I guess this can be a root cause for the memory leak in your implementation.&lt;BR /&gt;
	&lt;BR /&gt;
	Please, let me know what you find out!&lt;BR /&gt;
	Best regards,&lt;BR /&gt;
	Maria&lt;/P&gt;</description>
    <pubDate>Tue, 25 Sep 2018 22:44:58 GMT</pubDate>
    <dc:creator>MariaZh</dc:creator>
    <dc:date>2018-09-25T22:44:58Z</dc:date>
    <item>
      <title>ifort with mkl and function mkl_sparse_d_mv</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174210#M28774</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I compile my program and it gives the following error:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I isolated the problem and it is occurring at the call of the&amp;nbsp;mkl_sparse_d_mv function of the following function:&lt;/P&gt;

&lt;P&gt;function dVdt(self, t, V)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class(MotorUnitPool), intent(inout) :: self&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; real(wp), intent(in) :: t&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; real(wp), intent(in) :: V(:)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; real(wp), dimension(self%totalNumberOfCompartments) :: dVdt&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; integer :: i, j, stat&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; real(wp), dimension(:), allocatable :: matInt&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; allocate(matInt(self%totalNumberOfCompartments))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do i = 1, self%MUnumber&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; do j = 1, self%unit(i)%compNumber&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self%iIonic((i-1)*self%unit(i)%compNumber+j) =&amp;nbsp;self%unit(i)%Compartments(j)%computeCurrent(t,&amp;nbsp;V((i-1)*self%unit(i)%compNumber+j))&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end do&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end do&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stat = mkl_sparse_d_mv(self%spOperation, &amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self%spAlpha, &amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self%GSp, &amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self%spDescr, &amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; V, &amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self%spBeta, &amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; matInt)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dVdt = (self%iIonic + matInt + self%iInjected&amp;nbsp;+ self%EqCurrent_nA) * self%capacitanceInv&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	end function&lt;/P&gt;

&lt;P&gt;I compile with gfortran without any problems. As compiler options to the ifort compiler i tried to use the option -heap_arrays, whith no success.&lt;/P&gt;

&lt;P&gt;This function is part of a bigger program, with some files. If you want to see the whole software, you can find it in&amp;nbsp;https://github.com/rnwatanabe/projectFR .&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Renato Watanabe&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 16:07:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174210#M28774</guid>
      <dc:creator>watanabe__renato</dc:creator>
      <dc:date>2018-08-22T16:07:10Z</dc:date>
    </item>
    <item>
      <title>could you isolate the case in</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174211#M28775</link>
      <description>&lt;P&gt;could you isolate the case in the form of standalone example whicj we may compile and execute on our side w/o extracted the code from your project!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 04:43:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174211#M28775</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-08-24T04:43:48Z</dc:date>
    </item>
    <item>
      <title>Thank you for  your answer</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174212#M28776</link>
      <description>&lt;P&gt;Thank you for&amp;nbsp; your answer Gennady.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I isolated the problem in one file.&amp;nbsp; It has a run-time segmentation fault&amp;nbsp; with ifort and not with gfortran:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Image&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Routine&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Line&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Source&lt;BR /&gt;
	spTest&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000860BAD&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	libpthread-2.23.s&amp;nbsp; 00007FBA1A709390&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	spTest&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000545E88&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	spTest&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004090B0&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	spTest&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000406DAA&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	spTest&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000040484C&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	spTest&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000040332E&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	libc-2.23.so&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00007FBA19E41830&amp;nbsp; __libc_start_main&amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;BR /&gt;
	spTest&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000403229&amp;nbsp; Unknown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Unknown&amp;nbsp; Unknown&lt;/P&gt;

&lt;P&gt;The file is attached.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 15:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174212#M28776</guid>
      <dc:creator>watanabe__renato</dc:creator>
      <dc:date>2018-08-24T15:28:00Z</dc:date>
    </item>
    <item>
      <title>could you please show the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174213#M28777</link>
      <description>&lt;P&gt;could you please show the linking line&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 10:42:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174213#M28777</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2018-08-27T10:42:41Z</dc:date>
    </item>
    <item>
      <title>The whole command line I used</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174214#M28778</link>
      <description>&lt;P&gt;The whole command line I used is :&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;ifort -c $MKLROOT/include/mkl_spblas.f90 &amp;amp;&amp;nbsp; ifort spTest.f90 -o spTest -O3&amp;nbsp; -Wl,--start-group $MKLROOT/lib/intel64/libmkl_intel_lp64.a $MKLROOT/lib/intel64/libmkl_sequential.a $MKLROOT/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -lm -ldl -I$MKLROOT/include&lt;/P&gt;

&lt;P&gt;The Linux version is:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Linux&amp;nbsp; 4.15.0-33-generic #36-Ubuntu&amp;nbsp; x86_64 x86_64 x86_64 GNU/Linux&lt;/P&gt;

&lt;P&gt;No LSB modules are available.&lt;BR /&gt;
	Distributor ID: Ubuntu&lt;BR /&gt;
	Description:&amp;nbsp; &amp;nbsp; Ubuntu 18.04.1 LTS&lt;BR /&gt;
	Release:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 18.04&lt;BR /&gt;
	Codename:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bionic&lt;/P&gt;

&lt;P&gt;The ifort version is:&lt;/P&gt;

&lt;P&gt;ifort (IFORT) 18.0.3 20180410&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The MKL version is the version released in May 2018.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Renato&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 14:38:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174214#M28778</guid>
      <dc:creator>watanabe__renato</dc:creator>
      <dc:date>2018-08-27T14:38:09Z</dc:date>
    </item>
    <item>
      <title>I found a way to solve the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174215#M28779</link>
      <description>&lt;P&gt;I found a way to solve the issue. If I create the sparse matrix every step of the simulation, it works fine, both with gfortran and ifort. The code is attached. The problem now is that there is a memory leak. on the creation of the sparse matrix. Any idea of why?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 22:04:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174215#M28779</guid>
      <dc:creator>watanabe__renato</dc:creator>
      <dc:date>2018-09-25T22:04:31Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174216#M28780</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
	&lt;BR /&gt;
	I don't see a call to the mkl_sparse_destroy() routine.&lt;BR /&gt;
	(please, refer to&amp;nbsp;https://software.intel.com/en-us/mkl-developer-reference-fortran-mkl-sparse-destroy)&lt;BR /&gt;
	I guess this can be a root cause for the memory leak in your implementation.&lt;BR /&gt;
	&lt;BR /&gt;
	Please, let me know what you find out!&lt;BR /&gt;
	Best regards,&lt;BR /&gt;
	Maria&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 22:44:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174216#M28780</guid>
      <dc:creator>MariaZh</dc:creator>
      <dc:date>2018-09-25T22:44:58Z</dc:date>
    </item>
    <item>
      <title>Thank you Maria! Now it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174217#M28781</link>
      <description>&lt;P&gt;Thank you Maria! Now it worked.&lt;/P&gt;

&lt;P&gt;Renato&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 16:16:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ifort-with-mkl-and-function-mkl-sparse-d-mv/m-p/1174217#M28781</guid>
      <dc:creator>watanabe__renato</dc:creator>
      <dc:date>2018-09-26T16:16:46Z</dc:date>
    </item>
  </channel>
</rss>

