<?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: Memory alignment with vmalloc under linux kernel in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913699#M14700</link>
    <description>Thanks Vladimir&lt;BR /&gt;&lt;BR /&gt;Actually ,I get strange behaviour when calling ipp function in a kernel space. From previous post in the forum I read that the static lib are compiled with -fPIC and because of that, ipp libs cannot be used in a driver under linux. Is this still true? Can I compile a linux kernel module using the ipp static ipp libs?&lt;BR /&gt;</description>
    <pubDate>Sat, 19 Aug 2006 04:30:02 GMT</pubDate>
    <dc:creator>adrien</dc:creator>
    <dc:date>2006-08-19T04:30:02Z</dc:date>
    <item>
      <title>Memory alignment with vmalloc under linux kernel</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913697#M14698</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I keep getting the "Misaligned pointer in operation ..." warning from ippsFFTInitAlloc_R_16s. My free() function seems to be called automaticaly right after the failure but generates the kernel warning --&amp;gt; Trying to vfree() bad address . The vmalloced and vfree addresses are the same and are 32 bytes aligned. Thats what I don't understand. Any help is appreciated. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Adrien&lt;BR /&gt;&lt;BR /&gt;void* malloc(int length)&lt;BR /&gt;{&lt;BR /&gt;  void *ptr = (void*)0; &lt;BR /&gt; ptr = vmalloc(length + 32 + sizeof(void*));&lt;BR /&gt; if (ptr) { &lt;BR /&gt; void **ap = (void**)( ((unsigned long)(ptr) +  &lt;BR /&gt;  32 + sizeof(void*) - 1 ) &amp;amp; (~0x1F) ); &lt;BR /&gt; ap[-1] = (void*)ptr; &lt;BR /&gt; return (void *)ap; &lt;BR /&gt; }else{&lt;BR /&gt;  return NULL;&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void free(void *ptr)&lt;BR /&gt;{&lt;BR /&gt; if( ptr )&lt;BR /&gt;  vfree( ((void**)ptr)[-1] );&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Aug 2006 07:52:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913697#M14698</guid>
      <dc:creator>adrien</dc:creator>
      <dc:date>2006-08-18T07:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Memory alignment with vmalloc under linux kernel</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913698#M14699</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;IPP functions like InitAlloc requires appropriate IPP Free counterpart functon. For example,&lt;/P&gt;
&lt;P&gt;ippsFFTInitAlloc_R_16s&lt;BR /&gt;and&lt;BR /&gt;ippsFFTFree_R_16s&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2006 02:22:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913698#M14699</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-08-19T02:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Memory alignment with vmalloc under linux kernel</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913699#M14700</link>
      <description>Thanks Vladimir&lt;BR /&gt;&lt;BR /&gt;Actually ,I get strange behaviour when calling ipp function in a kernel space. From previous post in the forum I read that the static lib are compiled with -fPIC and because of that, ipp libs cannot be used in a driver under linux. Is this still true? Can I compile a linux kernel module using the ipp static ipp libs?&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Aug 2006 04:30:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913699#M14700</guid>
      <dc:creator>adrien</dc:creator>
      <dc:date>2006-08-19T04:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Memory alignment with vmalloc under linux kernel</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913700#M14701</link>
      <description>&lt;P&gt;Starting from IPP 5.1 we also include IPP static libraries compiled without -fPIC, especially for Linux kernel module developers. You can find them in ipp/lib/nonpic folder after you install IPP&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2006 04:40:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913700#M14701</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-08-19T04:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Memory alignment with vmalloc under linux kernel</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913701#M14702</link>
      <description>Ok great. Though, the nonpic version has no dispatcher library.&lt;BR /&gt;There is an example on how to use the merged static libraries for windows by creating static dispatching stubs to select the correct function. How can I do the same under Linux. I can't seem to find any example.&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Adrien&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Aug 2006 06:42:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913701#M14702</guid>
      <dc:creator>adrien</dc:creator>
      <dc:date>2006-08-19T06:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Memory alignment with vmalloc under linux kernel</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913702#M14703</link>
      <description>&lt;P&gt;Please find IPP product integration sample on IPP &lt;A href="http://www3.intel.com/cd/software/products/asmo-na/eng/perflib/ipp/219967.htm"&gt;code samples&lt;/A&gt; page. It is available for both Windows and Linux.&lt;/P&gt;
&lt;P&gt;Vladimir&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2006 06:43:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Memory-alignment-with-vmalloc-under-linux-kernel/m-p/913702#M14703</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-08-21T06:43:04Z</dc:date>
    </item>
  </channel>
</rss>

