<?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:Alignment of Data arrays for use in Fortran in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190862#M29727</link>
    <description>&lt;P&gt;We see you already escalated the same issue via Online service Center ticket #&lt;SPAN&gt;04726666. Therefore you may attach your reproducer ( the code which we could build with the latest version of mkl )&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;into this ticket.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 03:54:07 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2020-07-09T03:54:07Z</dc:date>
    <item>
      <title>Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190427#M29709</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using pardiso for a large program that I have created, and I have noticed that multiple runs of the same exact input give different results for multi-threaded execution. After checking Intel's online resources, I have realized that, to resolve this issue, I will need to align the arrays that I use with pardiso. I checked the MKL user guide for Windows, it included an example (in Section 8.1) with alignment, but it was not clear to me on how I can use the described procedure for my own program.&lt;/P&gt;
&lt;P&gt;I wanted to ask whether there is a way to ask the compiler to pursue an array alignment on, e.g., 128 byte boundaries in a module, where I define ALLOCATABLE arrays to be eventually used by mkl and pardiso.&lt;/P&gt;
&lt;P&gt;For example, if I have the following declaration:&lt;/P&gt;
&lt;P&gt;real*8,allocatable,dimension(:) :: KffSMv&lt;/P&gt;
&lt;P&gt;how would I have to modify this declaration to inform the compiler that the array is aligned?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 21:57:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190427#M29709</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2020-07-07T21:57:23Z</dc:date>
    </item>
    <item>
      <title>Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190578#M29716</link>
      <description>&lt;P&gt;to get the same pardiso's output, please check iparm[33] == the number of OpenMP threads and keep is the same. Please refer to the reference guide to see more details.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jul 2020 08:49:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190578#M29716</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-07-08T08:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190646#M29717</link>
      <description>&lt;P&gt;Gennady, thank you for the prompt reply. I tried your suggestion, but it still does not work.&lt;/P&gt;
&lt;P&gt;Is there anything else I could try?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, thank you for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 12:19:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190646#M29717</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2020-07-08T12:19:46Z</dc:date>
    </item>
    <item>
      <title>Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190662#M29719</link>
      <description>&lt;P&gt;Do you use OpenMP threading?&lt;/P&gt;&lt;P&gt;Did you set ipar[33] == 8 as an example and see the computed results are different from run to run?&lt;/P&gt;&lt;P&gt;or you expect to see the identical results when you call pardiso with different #of threads?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:44:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190662#M29719</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-07-08T13:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190667#M29720</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;
&lt;P&gt;First, I must clarify that the problem I am referring to has to do with repeatedly running the SAME EXACT INPUT, on the SAME EXACT hardware, for the SAME EXACT&amp;nbsp; number of threads. If I had used different numbers of threads, then I would have expected to see some changes to the obtained results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use OpenMP threading. I give the requested number of threads in the input file that I run. This is used to initialize a variable in my program called NCPU1.&lt;/P&gt;
&lt;P&gt;The MKL number of threads is set equal to the requested number of OpenMP threads, by using mkl_set_num_threads(NCPU1) before I call pardiso.&lt;/P&gt;
&lt;P&gt;I need to add that I have definitely pinpointed pardiso as the reason for my issue. That is, when I run my program multi-threaded (there are other areas of the code where I use multiple threads), but I use&amp;nbsp;mkl_set_num_threads(1) before I call pardiso, then the problem vanishes: I get 100% identical results from multiple runs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked the pardiso reference guide, and I realized that for Fortran,&amp;nbsp; what you mention as iparm[33] would correspond to iparm(34). I also noticed that the pardiso guide only mentions that iparm(34) must be set equal to 1 or 0, it does not mention anything about setting iparm(34) equal to the actual number of threads (in my case NCPU1). By the way, I tried setting iparm(34) equal to both 1 and NCPU1, and for both cases, I still obtain discrepancies when I run the same exact input multiple times, for the same exact number of threads.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will keep checking my code to see whether, e.g., one of the optimization options causes the issue. In the meantime,&amp;nbsp;please let me know whether you think there is anything else I should try.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, thank you for your help.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 13:58:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190667#M29720</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2020-07-08T13:58:51Z</dc:date>
    </item>
    <item>
      <title>Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190677#M29722</link>
      <description>&lt;P&gt;yes, in the case of Fortran API, please set iparm(34)  &amp;gt; 0 as Developer Reference states.&lt;/P&gt;&lt;P&gt;My recommendation - could you create a standalone example, which we could build and run on our side to reproduce the issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jul 2020 14:35:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190677#M29722</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-07-08T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190708#M29726</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;
&lt;P&gt;I can privately share my code with Intel (and a sample input where the problem is manifested, together with some information).Will it be possible for you (or someone else from Intel) to reach me through e-mail or through a private message? I imagine you can see my profile information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Yannis&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2020 15:51:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190708#M29726</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2020-07-08T15:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190862#M29727</link>
      <description>&lt;P&gt;We see you already escalated the same issue via Online service Center ticket #&lt;SPAN&gt;04726666. Therefore you may attach your reproducer ( the code which we could build with the latest version of mkl )&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;into this ticket.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 03:54:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190862#M29727</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-07-09T03:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190883#M29729</link>
      <description>&lt;P&gt;The trivial example which I quickly built on my part, didn't discover the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 04:29:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1190883#M29729</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2020-07-09T04:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Alignment of Data arrays for use in Fortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1191022#M29736</link>
      <description>&lt;P&gt;Gennady,&lt;/P&gt;
&lt;P&gt;Thank you. I myself have noticed that there are cases (particularly small problems) where the issue is not observed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just uploaded (in my support request case) my source code with the buildlog, and also a sample input where the problem is manifested, together with a detailed description of the observed issue.&lt;/P&gt;
&lt;P&gt;Yannis&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 14:22:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Alignment-of-Data-arrays-for-use-in-Fortran/m-p/1191022#M29736</guid>
      <dc:creator>Ioannis_K_</dc:creator>
      <dc:date>2020-07-09T14:22:49Z</dc:date>
    </item>
  </channel>
</rss>

