<?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 Dima,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-allocate-arbitrary-sized-array-of-MKL-Complex16-numbers/m-p/917365#M12716</link>
    <description>&lt;P&gt;Hi Dima,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;you where actually right. I forgot to put mkl.h into includes. I only&amp;nbsp;put&amp;nbsp;#include "mkl_dfti.h" which was not enough.&lt;/P&gt;

&lt;P&gt;Everything works now.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Nov 2013 15:01:05 GMT</pubDate>
    <dc:creator>Bogdan_S_</dc:creator>
    <dc:date>2013-11-23T15:01:05Z</dc:date>
    <item>
      <title>How to allocate arbitrary sized array of MKL_Complex16 numbers?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-allocate-arbitrary-sized-array-of-MKL-Complex16-numbers/m-p/917363#M12714</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I have been trying&amp;nbsp;to alloacate arbitrary sized&amp;nbsp;array of complex numbers using mkl_malloc and&amp;nbsp;MKL_Complex16 or 8. However the regular mkl_malloc syntax (used say for array of double values)&amp;nbsp;seems to produce segmentation_fault. On the other hand if mkl_malloc is changed to regular malloc everything passes but MKL_FFT functions don't return correct&amp;nbsp;result. Here is the line I try to use:&lt;/P&gt;

&lt;P&gt;struct _MKL_Complex16 * x = (struct _MKL_Complex16*) mkl_malloc(128 * sizeof(struct _MKL_Complex16), 64);&lt;/P&gt;

&lt;P&gt;Where for example I try&amp;nbsp;to allocate memory for 128 complex numbers. and 64 is allignment&amp;nbsp;becuase my OS is 64-bit (is this correct?)... In real pratcitce I will need to allocate much more then 128 numbers. My advisor is telling me that on cluster we will need arrays sized in gigabytes so I really need a mechanism that can allocate lots of memory on heap.&lt;/P&gt;

&lt;P&gt;Thanks for any help,&lt;/P&gt;

&lt;P&gt;Bogdan&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 16:48:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-allocate-arbitrary-sized-array-of-MKL-Complex16-numbers/m-p/917363#M12714</guid>
      <dc:creator>Bogdan_S_</dc:creator>
      <dc:date>2013-11-21T16:48:53Z</dc:date>
    </item>
    <item>
      <title>Please make sure the compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-allocate-arbitrary-sized-array-of-MKL-Complex16-numbers/m-p/917364#M12715</link>
      <description>&lt;P&gt;Please make sure the compiler knows the prototype of mkl_malloc function. That is, #include &amp;lt;mkl.h&amp;gt; or at least #include &amp;lt;mkl_service.h&amp;gt;. Including just mkl_types.h is not enough.&lt;/P&gt;

&lt;P&gt;Also, a correct program may produce segmentation faults if it is linked incorrectly. Could you post your build lines?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Dima&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2013 02:39:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-allocate-arbitrary-sized-array-of-MKL-Complex16-numbers/m-p/917364#M12715</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2013-11-22T02:39:17Z</dc:date>
    </item>
    <item>
      <title>Hi Dima, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-allocate-arbitrary-sized-array-of-MKL-Complex16-numbers/m-p/917365#M12716</link>
      <description>&lt;P&gt;Hi Dima,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;you where actually right. I forgot to put mkl.h into includes. I only&amp;nbsp;put&amp;nbsp;#include "mkl_dfti.h" which was not enough.&lt;/P&gt;

&lt;P&gt;Everything works now.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2013 15:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-allocate-arbitrary-sized-array-of-MKL-Complex16-numbers/m-p/917365#M12716</guid>
      <dc:creator>Bogdan_S_</dc:creator>
      <dc:date>2013-11-23T15:01:05Z</dc:date>
    </item>
  </channel>
</rss>

