<?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 ALLOCATE or MKL_MALLOC? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ALLOCATE-or-MKL-MALLOC/m-p/1000662#M18502</link>
    <description>&lt;P&gt;In Fortran, assuming I have a 64bit avx-able machine at my disposal, Is ALLOCATE statement guaranteed to allocate aligned arrays when the compiler is called with the "-align array64byte" flag? Or, do I need to call MKL_MALLOC in order to achieve this? I would really like to avoid&amp;nbsp; MKL_MALLOC if possible, because, according to the example from the MKL 11 reference, it uses Cray pointers. My entire program is Fortran 2008, I'd hate to pollute it with such things.&lt;/P&gt;

&lt;P&gt;Additionally, If there are no guarantees, is there a way to check if the allocation is aligned without resorting to an external C function which calculates the modulo?&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2014 08:50:26 GMT</pubDate>
    <dc:creator>Todor_K_</dc:creator>
    <dc:date>2014-04-24T08:50:26Z</dc:date>
    <item>
      <title>ALLOCATE or MKL_MALLOC?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ALLOCATE-or-MKL-MALLOC/m-p/1000662#M18502</link>
      <description>&lt;P&gt;In Fortran, assuming I have a 64bit avx-able machine at my disposal, Is ALLOCATE statement guaranteed to allocate aligned arrays when the compiler is called with the "-align array64byte" flag? Or, do I need to call MKL_MALLOC in order to achieve this? I would really like to avoid&amp;nbsp; MKL_MALLOC if possible, because, according to the example from the MKL 11 reference, it uses Cray pointers. My entire program is Fortran 2008, I'd hate to pollute it with such things.&lt;/P&gt;

&lt;P&gt;Additionally, If there are no guarantees, is there a way to check if the allocation is aligned without resorting to an external C function which calculates the modulo?&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2014 08:50:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ALLOCATE-or-MKL-MALLOC/m-p/1000662#M18502</guid>
      <dc:creator>Todor_K_</dc:creator>
      <dc:date>2014-04-24T08:50:26Z</dc:date>
    </item>
    <item>
      <title>"-align array64byte" compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ALLOCATE-or-MKL-MALLOC/m-p/1000663#M18503</link>
      <description>&lt;P&gt;"-align array64byte" compiler flag should give you what you need. See more details about aligning arrays in FORTRAN in this article:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/fortran-array-data-and-arguments-and-vectorization" target="_blank"&gt;https://software.intel.com/en-us/articles/fortran-array-data-and-arguments-and-vectorization&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 20:28:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/ALLOCATE-or-MKL-MALLOC/m-p/1000663#M18503</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2014-04-28T20:28:13Z</dc:date>
    </item>
  </channel>
</rss>

