<?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 SIGSEGV with Poisson Solver in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/SIGSEGV-with-Poisson-Solver/m-p/1121487#M24993</link>
    <description>&lt;P&gt;I have been running and debugging a code with the Intel visual fortran composer that uses the MKL poisson solver. It runs without issues in Windows. But when I run it in a UNIX system I get a SIGSEGV error. I am compiling it in 64 bits and I have checked that that is happening. I &amp;nbsp;have tried: -heap-arrays, ulimit -s unlimited and none of them have fixed the problem. I used -traceback and it points &amp;nbsp;to the line where I do&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;call D_COMMIT_HELMHOLTZ_3D (f, bd_ax, bd_bx, bd_ay, bd_by, bd_az , bd_bz, xhandle, yhandle, ipar, dpar, stat)&lt;/PRE&gt;

&lt;P&gt;The subroutine where this call is:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;    subroutine solvePoisson3DVorticityPerMKL(f, bd_ax, bd_bx , bd_ay, bd_by, bd_az, bd_bz, nx, ny, nz, ax, bx, ay, by, az, bz, i)
    double precision dpar(5*(nx+ny)/2+9)
    integer ipar(128), i, stat, nx, ny, nz
    double precision :: bd_ax(:,:), bd_bx(:,:) , bd_ay(:,:), bd_by(:,:), bd_az(:,:), bd_bz(:,:)
    double precision :: f(:,:,:), finish, start
    character(6) BCtype
    double precision q, ax, bx, ay, by, az, bz
    type(DFTI_DESCRIPTOR), pointer :: xhandle, yhandle

    SELECT CASE (i) ! select component
    CASE (1)
        BCtype = 'PPDDPP'
#ifndef SHEAR_FLOW         
        bd_ay  =0
        bd_by  =0
#endif       
    case (2)
        BCtype = 'PPNNPP'

    case (3)
        BCtype = 'PPDDPP'
#ifndef SHEAR_FLOW
        print *,"Unidirectional flow"
        bd_ay  =- 0.1*(bx-ax)/2 ! for unidirectional flow
        bd_by  =0.1*(bx-ax)/2
#endif        
    end select
    q=0.0
    ipar =0

    
    call D_INIT_HELMHOLTZ_3D(ax, bx, ay, by, az, bz, nx, ny, nz, BCtype , q, ipar, dpar, stat)
    ipar(3)=0 ! dissable warnings
    call D_COMMIT_HELMHOLTZ_3D (f, bd_ax, bd_bx, bd_ay, bd_by, bd_az , bd_bz, xhandle, yhandle, ipar, dpar, stat)
    call D_HELMHOLTZ_3D(f, bd_ax, bd_bx, bd_ay, bd_by, bd_az , bd_bz, xhandle, yhandle, ipar, dpar, stat)
    call free_Helmholtz_3D(xhandle, yhandle, ipar, stat)

    end subroutine solvePoisson3DVorticityPerMKL&lt;/PRE&gt;

&lt;P&gt;The error :&lt;/P&gt;

&lt;P&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&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 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000519B15 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000005178D7 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004CBB94 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004CB9A6 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000047F4B6 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000482AD0 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libpthread.so.0 &amp;nbsp; &amp;nbsp;00002B3F0728F130 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libmkl_def.so &amp;nbsp; &amp;nbsp; &amp;nbsp;00002B3F095743E4 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libmkl_core.so &amp;nbsp; &amp;nbsp; 00002B3F05D48E59 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libmkl_intel_ilp6 &amp;nbsp;00002B3F0475F7CF &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000447A77 &amp;nbsp;vorticitysolverut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 380 &amp;nbsp;FluidUtilities.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004579CC &amp;nbsp;vorticitysolverut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2596 &amp;nbsp;FluidUtilities.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000045648F &amp;nbsp;vorticitysolverut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2567 &amp;nbsp;FluidUtilities.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000403865 &amp;nbsp;MAIN__ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;135 &amp;nbsp;main.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004030DE &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libc.so.6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00002B3F079D1AF5 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000402FE9 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I have allocated the vectors previously. Again the code works without an issue on windows. Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 18:08:00 GMT</pubDate>
    <dc:creator>Camilo_P_</dc:creator>
    <dc:date>2016-05-09T18:08:00Z</dc:date>
    <item>
      <title>SIGSEGV with Poisson Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/SIGSEGV-with-Poisson-Solver/m-p/1121487#M24993</link>
      <description>&lt;P&gt;I have been running and debugging a code with the Intel visual fortran composer that uses the MKL poisson solver. It runs without issues in Windows. But when I run it in a UNIX system I get a SIGSEGV error. I am compiling it in 64 bits and I have checked that that is happening. I &amp;nbsp;have tried: -heap-arrays, ulimit -s unlimited and none of them have fixed the problem. I used -traceback and it points &amp;nbsp;to the line where I do&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;call D_COMMIT_HELMHOLTZ_3D (f, bd_ax, bd_bx, bd_ay, bd_by, bd_az , bd_bz, xhandle, yhandle, ipar, dpar, stat)&lt;/PRE&gt;

&lt;P&gt;The subroutine where this call is:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;    subroutine solvePoisson3DVorticityPerMKL(f, bd_ax, bd_bx , bd_ay, bd_by, bd_az, bd_bz, nx, ny, nz, ax, bx, ay, by, az, bz, i)
    double precision dpar(5*(nx+ny)/2+9)
    integer ipar(128), i, stat, nx, ny, nz
    double precision :: bd_ax(:,:), bd_bx(:,:) , bd_ay(:,:), bd_by(:,:), bd_az(:,:), bd_bz(:,:)
    double precision :: f(:,:,:), finish, start
    character(6) BCtype
    double precision q, ax, bx, ay, by, az, bz
    type(DFTI_DESCRIPTOR), pointer :: xhandle, yhandle

    SELECT CASE (i) ! select component
    CASE (1)
        BCtype = 'PPDDPP'
#ifndef SHEAR_FLOW         
        bd_ay  =0
        bd_by  =0
#endif       
    case (2)
        BCtype = 'PPNNPP'

    case (3)
        BCtype = 'PPDDPP'
#ifndef SHEAR_FLOW
        print *,"Unidirectional flow"
        bd_ay  =- 0.1*(bx-ax)/2 ! for unidirectional flow
        bd_by  =0.1*(bx-ax)/2
#endif        
    end select
    q=0.0
    ipar =0

    
    call D_INIT_HELMHOLTZ_3D(ax, bx, ay, by, az, bz, nx, ny, nz, BCtype , q, ipar, dpar, stat)
    ipar(3)=0 ! dissable warnings
    call D_COMMIT_HELMHOLTZ_3D (f, bd_ax, bd_bx, bd_ay, bd_by, bd_az , bd_bz, xhandle, yhandle, ipar, dpar, stat)
    call D_HELMHOLTZ_3D(f, bd_ax, bd_bx, bd_ay, bd_by, bd_az , bd_bz, xhandle, yhandle, ipar, dpar, stat)
    call free_Helmholtz_3D(xhandle, yhandle, ipar, stat)

    end subroutine solvePoisson3DVorticityPerMKL&lt;/PRE&gt;

&lt;P&gt;The error :&lt;/P&gt;

&lt;P&gt;forrtl: severe (174): SIGSEGV, segmentation fault occurred&lt;BR /&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 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000519B15 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000005178D7 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004CBB94 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004CB9A6 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000047F4B6 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000482AD0 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libpthread.so.0 &amp;nbsp; &amp;nbsp;00002B3F0728F130 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libmkl_def.so &amp;nbsp; &amp;nbsp; &amp;nbsp;00002B3F095743E4 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libmkl_core.so &amp;nbsp; &amp;nbsp; 00002B3F05D48E59 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libmkl_intel_ilp6 &amp;nbsp;00002B3F0475F7CF &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000447A77 &amp;nbsp;vorticitysolverut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 380 &amp;nbsp;FluidUtilities.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004579CC &amp;nbsp;vorticitysolverut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2596 &amp;nbsp;FluidUtilities.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;000000000045648F &amp;nbsp;vorticitysolverut &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2567 &amp;nbsp;FluidUtilities.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000403865 &amp;nbsp;MAIN__ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;135 &amp;nbsp;main.f90&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;00000000004030DE &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	libc.so.6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;00002B3F079D1AF5 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;BR /&gt;
	CoupledSystem &amp;nbsp; &amp;nbsp; &amp;nbsp;0000000000402FE9 &amp;nbsp;Unknown &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unknown &amp;nbsp;Unknown&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I have allocated the vectors previously. Again the code works without an issue on windows. Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 18:08:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/SIGSEGV-with-Poisson-Solver/m-p/1121487#M24993</guid>
      <dc:creator>Camilo_P_</dc:creator>
      <dc:date>2016-05-09T18:08:00Z</dc:date>
    </item>
    <item>
      <title>I found the issue, I had an</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/SIGSEGV-with-Poisson-Solver/m-p/1121488#M24994</link>
      <description>&lt;P&gt;I found the issue, I had an error in my makefile. I was not adding the flags when compiling the file that had the calls to the Helmoltz functions.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 19:42:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/SIGSEGV-with-Poisson-Solver/m-p/1121488#M24994</guid>
      <dc:creator>Camilo_P_</dc:creator>
      <dc:date>2016-05-09T19:42:55Z</dc:date>
    </item>
    <item>
      <title>Hi, I'm facing the same</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/SIGSEGV-with-Poisson-Solver/m-p/1121489#M24995</link>
      <description>&lt;P&gt;Hi, I'm facing the same problem..&lt;/P&gt;&lt;P&gt;Can you explain how did you solve the problem and which flag have you added?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 11:43:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/SIGSEGV-with-Poisson-Solver/m-p/1121489#M24995</guid>
      <dc:creator>cavaiola__mattia</dc:creator>
      <dc:date>2020-06-15T11:43:46Z</dc:date>
    </item>
  </channel>
</rss>

