<?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: Segmentation Fault in poisson solver (d_commit_helmholtz_2d) in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511356#M34908</link>
    <description>&lt;P&gt;I built the example using the source file&amp;nbsp;d_Helmholtz_2D_c.c in the MKL distribution and ran the resulting EXE (LP64 version) on Windows 11. The program ran normally and produced the expected output; I used the current versions of the Intel C compiler (icl, icx) and MKL in OneAPI 2023.2.0.&lt;/P&gt;&lt;P&gt;I found it confusing to see you saying that you used the example source file in&amp;nbsp;&lt;SPAN&gt;MKLRoot/examples/f/pdepoisson. That would be a Fortran version, whereas the lines of code that you showed are in C++.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please state whether you changed the source file in question in any way, and state how you built and ran the program.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 22:49:20 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2023-08-04T22:49:20Z</dc:date>
    <item>
      <title>Segmentation Fault in poisson solver (d_commit_helmholtz_2d)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511101#M34904</link>
      <description>&lt;P&gt;Hi I am a new user to oneMKL.&lt;BR /&gt;I am trying to solve a 2-dimensional Poisson Equation with oneMKL's Fast Poisson Solver. I am using C++ to test the Example (MKLRoot/examples/f/pdepoisson) in the library.&lt;/P&gt;&lt;P&gt;It works fine until &lt;STRONG&gt;d_init_helmholtz_2d(),&lt;/STRONG&gt; then I get a &lt;STRONG&gt;Segmentation fault&lt;/STRONG&gt; in &lt;STRONG&gt;d_commit_helmholtz_2d().&lt;/STRONG&gt; I've attached the code below, please let me know what the issue is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;size_t total_size=(nx+1) * (ny+1);&lt;/P&gt;&lt;P&gt;double* f = new double[total_size];&lt;/P&gt;&lt;P&gt;double* bd_ax = new double[ny+1];&lt;/P&gt;&lt;P&gt;double* bd_bx = new double[ny+1];&lt;/P&gt;&lt;P&gt;double* bd_ay = new double[nx+1];&lt;/P&gt;&lt;P&gt;double* bd_by = new double[nx+1];&lt;/P&gt;&lt;P&gt;DFTI_DESCRIPTOR_HANDLE xhandle;&lt;/P&gt;&lt;P&gt;MKL_INT* ipar = new MKL_INT[128];&lt;/P&gt;&lt;P&gt;double* dpar = new double[5*(nx/2)+7];&lt;/P&gt;&lt;P&gt;MKL_INT stat&lt;/P&gt;&lt;P&gt;d_commit_helmholtz_2d(f, bd_ax, bd_bx, bd_ay, bd_by, &amp;amp;xhandle, ipar, dpar, &amp;amp;stat);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 06:22:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511101#M34904</guid>
      <dc:creator>zudol0104</dc:creator>
      <dc:date>2023-08-04T06:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation Fault in poisson solver (d_commit_helmholtz_2d)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511356#M34908</link>
      <description>&lt;P&gt;I built the example using the source file&amp;nbsp;d_Helmholtz_2D_c.c in the MKL distribution and ran the resulting EXE (LP64 version) on Windows 11. The program ran normally and produced the expected output; I used the current versions of the Intel C compiler (icl, icx) and MKL in OneAPI 2023.2.0.&lt;/P&gt;&lt;P&gt;I found it confusing to see you saying that you used the example source file in&amp;nbsp;&lt;SPAN&gt;MKLRoot/examples/f/pdepoisson. That would be a Fortran version, whereas the lines of code that you showed are in C++.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please state whether you changed the source file in question in any way, and state how you built and ran the program.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 22:49:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511356#M34908</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-08-04T22:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation Fault in poisson solver (d_commit_helmholtz_2d)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511543#M34909</link>
      <description>&lt;P&gt;Thank you for your quick response. &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;I tested it with the C code inside the oneMKL Package (sorry for the typo /f -&amp;gt; /c).&lt;BR /&gt;The MKL version is either &lt;STRONG&gt;2022.2.1&lt;/STRONG&gt; or &lt;STRONG&gt;2023.2.0&lt;/STRONG&gt;. I used cmake's &lt;STRONG&gt;find_package&lt;/STRONG&gt; and it found 2 versions, I'm not sure which one I used as I don't have much knowledge of cmake, but I saw the following message.&lt;/P&gt;&lt;P&gt;Found MKL: /oneapi/mkl/2022.2.1/lib/intel64/libmkl_intel_ilp64.so&lt;BR /&gt;Found MKL: /oneapi/mkl/2022.2.1/lib/intel64/libmkl_core.so&lt;BR /&gt;Found MKL: /oneapi/mkl/2022.2.1/lib/intel64/libmkl_intel_thread.so&lt;BR /&gt;Found MKL: /oneapi/compiler/2023.2.0/linux/compiler/lib/intel64_lin/libiomp5.so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Build System State is as follows&lt;/P&gt;&lt;P&gt;OS= "Red Hat Enterprise Linux Server", Version="7.6 (Maipo)".&lt;/P&gt;&lt;P&gt;C Compiler = /oneAPI/compiler/&lt;STRONG&gt;2021.2.0&lt;/STRONG&gt;/linux/bin/intel64/icc&lt;BR /&gt;CXX compiler = C Compiler = /oneAPI/compiler/&lt;STRONG&gt;2021.2.0&lt;/STRONG&gt;/linux/bin/intel64/icpc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could this be due to different versions of the compiler and mkl?&lt;BR /&gt;I'll try to test it by setting the two versions to be the same.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 00:00:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511543#M34909</guid>
      <dc:creator>zudol0104</dc:creator>
      <dc:date>2023-08-07T00:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation Fault in poisson solver (d_commit_helmholtz_2d)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511676#M34912</link>
      <description>&lt;P&gt;Mixing portions of different version of MKL can lead to problems.&lt;/P&gt;&lt;P&gt;Rather than relying on Cmake to ascertain the version of MKL that is actually being used, you may add a call to &lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-2/mkl-get-version-string.html" target="_self"&gt;mkl_get_version_string&lt;/A&gt; in your code, and print out the string that is returned. There is a related routine, &lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-c/2023-2/mkl-get-version.html" target="_self"&gt;mkl_get_version&lt;/A&gt;, which allows you to retrieve a collection of integers that make up the version number.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 11:35:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1511676#M34912</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2023-08-07T11:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Segmentation Fault in poisson solver (d_commit_helmholtz_2d)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1512302#M34923</link>
      <description>&lt;P&gt;Mixing MKL versions seems to be the problem.&lt;BR /&gt;I added the following syntax to "CMakeLists.txt" to ensure that I use the same version when building d_Helmholtz_2D_c.c.&lt;/P&gt;&lt;P&gt;set(MKL_ROOT /my/dir/oneapi/mkl/latest)&lt;BR /&gt;list(APPEND CMAKE_MODULE_PATH "MKL_ROOT/lib/cmake")&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 02:07:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1512302#M34923</guid>
      <dc:creator>zudol0104</dc:creator>
      <dc:date>2023-08-09T02:07:43Z</dc:date>
    </item>
    <item>
      <title>Re:Segmentation Fault in poisson solver (d_commit_helmholtz_2d)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1513192#M34943</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;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Mixing MKL versions seems to be the problem.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Good Day!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Aug 2023 08:23:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-Fault-in-poisson-solver-d-commit-helmholtz-2d/m-p/1513192#M34943</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-08-11T08:23:00Z</dc:date>
    </item>
  </channel>
</rss>

