<?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 shared memory with pre allocate ipp memory  in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/shared-memory-with-pre-allocate-ipp-memory/m-p/1105912#M25285</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm working on windows platform.&lt;/P&gt;

&lt;P&gt;I have one application (process) that generate data to a second application (different process). The second app is doing some heavy signal processing computation using the ipp functions. I would like to pre-allocate the shared memory with ippMalloc. Can anyone please help my understand how i do such thing ?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2016 08:15:18 GMT</pubDate>
    <dc:creator>needle__brosh</dc:creator>
    <dc:date>2016-08-22T08:15:18Z</dc:date>
    <item>
      <title>shared memory with pre allocate ipp memory</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/shared-memory-with-pre-allocate-ipp-memory/m-p/1105912#M25285</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm working on windows platform.&lt;/P&gt;

&lt;P&gt;I have one application (process) that generate data to a second application (different process). The second app is doing some heavy signal processing computation using the ipp functions. I would like to pre-allocate the shared memory with ippMalloc. Can anyone please help my understand how i do such thing ?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 08:15:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/shared-memory-with-pre-allocate-ipp-memory/m-p/1105912#M25285</guid>
      <dc:creator>needle__brosh</dc:creator>
      <dc:date>2016-08-22T08:15:18Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/shared-memory-with-pre-allocate-ipp-memory/m-p/1105913#M25286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;There's no need to use ippMalloc for the shared memory, no magic in ippMalloc. For IPP needs you can use any memory, obtained by any way. ippMalloc is just a wrapper for system malloc to create aligned - 64 bit alignment - pointer.&lt;/P&gt;

&lt;P&gt;It's like&lt;/P&gt;

&lt;P&gt;void* my_ptr = malloc(my_size + 64) &amp;amp; (~63);&lt;/P&gt;

&lt;P&gt;The only problem here is that you may not pass my_ptr to system's free function. 'Free' function requires original pointer:&lt;/P&gt;

&lt;P&gt;void* orig_ptr = malloc(my_size + 64);&lt;BR /&gt;
	void* ptr_for_ipp = orig_ptr &amp;amp; (~63);&lt;BR /&gt;
	...&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; free(orig_ptr);&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2016 06:20:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/shared-memory-with-pre-allocate-ipp-memory/m-p/1105913#M25286</guid>
      <dc:creator>Sergey_K_Intel</dc:creator>
      <dc:date>2016-08-23T06:20:04Z</dc:date>
    </item>
  </channel>
</rss>

