<?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:standard deviation of large vector in ippsStdDev_32f is zero in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1443172#M28248</link>
    <description>&lt;P&gt;Hi Lei,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;If there is any update on this issue, please let me know, thanks.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sure, we will get back to you if there is any update on this issue and till then we appreciate your patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Jan 2023 08:49:47 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2023-01-02T08:49:47Z</dc:date>
    <item>
      <title>standard deviation of large vector in ippsStdDev_32f is zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1439642#M28220</link>
      <description>&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the&amp;nbsp;ippsStdDev_32f with "ippAlgHintFast" mode to calculate standard deviation of a vector. It seems than the&amp;nbsp;standard deviation value is zero when the length of vector is greater than 10000(maybe 8192).&amp;nbsp;For comparison, the standard deviation value in&amp;nbsp;ippsMeanStdDev_32f is not zero with the same&amp;nbsp;parameters.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was described in the document that "ippAlgHintFast is&lt;LI-WRAPPER&gt;&lt;SPAN&gt;&amp;nbsp;faster but less accurate calculation". However, is it bug to have a result of zero in ippsStdDev_32f？&lt;/SPAN&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using IPP version 2021.7.0, windows10 1809, visual studio 2019.&lt;/P&gt;
&lt;P&gt;I tested three hint mode of both two functions&amp;nbsp;in c++:&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;int iSrcLength = 10000;
float fStdDevValue = 123.0f; //initialize
float fMeanValue = 123.0f; //initialize
std::unique_ptr&amp;lt;float[]&amp;gt; pInput(new float[iSrcLength]);
for (int idx = 0; idx &amp;lt; iSrcLength; ++idx)
{
    pInput[idx] = static_cast&amp;lt;float&amp;gt;(idx);
}
std::cout &amp;lt;&amp;lt; "the length of the vector is: " &amp;lt;&amp;lt; iSrcLength &amp;lt;&amp;lt; std::endl;
if (ippStsNoErr != ippsStdDev_32f(pInput.get(), iSrcLength, &amp;amp;fStdDevValue, ippAlgHintNone))
{
    std::cout &amp;lt;&amp;lt; "ERROR:ippsStdDev_32f" &amp;lt;&amp;lt; std::endl;
}
std::cout &amp;lt;&amp;lt; "StdDev Value in ippsStdDev_32f() with ippAlgHintNone:" &amp;lt;&amp;lt; fStdDevValue &amp;lt;&amp;lt; std::endl;
    
if (ippStsNoErr != ippsStdDev_32f(pInput.get(), iSrcLength, &amp;amp;fStdDevValue, ippAlgHintFast))
{
    std::cout &amp;lt;&amp;lt; "ERROR:ippsStdDev_32f" &amp;lt;&amp;lt; std::endl;
}
std::cout &amp;lt;&amp;lt; "StdDev Value in ippsStdDev_32f() with ippAlgHintFast:" &amp;lt;&amp;lt; fStdDevValue &amp;lt;&amp;lt; std::endl;

if (ippStsNoErr != ippsStdDev_32f(pInput.get(), iSrcLength, &amp;amp;fStdDevValue, ippAlgHintAccurate))
{
    std::cout &amp;lt;&amp;lt; "ERROR:ippsStdDev_32f" &amp;lt;&amp;lt; std::endl;
}
std::cout &amp;lt;&amp;lt; "StdDev Value in ippsStdDev_32f() with ippAlgHintAccurate:" &amp;lt;&amp;lt; fStdDevValue &amp;lt;&amp;lt; std::endl;

if (ippStsNoErr != ippsMeanStdDev_32f(pInput.get(), iSrcLength, &amp;amp;fMeanValue, &amp;amp;fStdDevValue, ippAlgHintNone))
{
    std::cout &amp;lt;&amp;lt; "ERROR:ippsMeanStdDev_32f" &amp;lt;&amp;lt; std::endl;
}
std::cout &amp;lt;&amp;lt; "StdDev Value in ippsMeanStdDev_32f() with ippAlgHintNone:" &amp;lt;&amp;lt; fStdDevValue &amp;lt;&amp;lt; std::endl;

if (ippStsNoErr != ippsMeanStdDev_32f(pInput.get(), iSrcLength, &amp;amp;fMeanValue, &amp;amp;fStdDevValue, ippAlgHintFast))
{
    std::cout &amp;lt;&amp;lt; "ERROR:ippsMeanStdDev_32f" &amp;lt;&amp;lt; std::endl;
}
std::cout &amp;lt;&amp;lt; "StdDev Value in ippsMeanStdDev_32f() with ippAlgHintFast:" &amp;lt;&amp;lt; fStdDevValue &amp;lt;&amp;lt; std::endl;

if (ippStsNoErr != ippsMeanStdDev_32f(pInput.get(), iSrcLength, &amp;amp;fMeanValue, &amp;amp;fStdDevValue, ippAlgHintAccurate))
{
    std::cout &amp;lt;&amp;lt; "ERROR:ippsMeanStdDev_32f" &amp;lt;&amp;lt; std::endl;
}
std::cout &amp;lt;&amp;lt; "StdDev Value in ippsMeanStdDev_32f() with ippAlgHintAccurate:" &amp;lt;&amp;lt; fStdDevValue &amp;lt;&amp;lt; std::endl;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;results:&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;the length of the vector is: 10000
StdDev Value in ippsStdDev_32f() with ippAlgHintNone:2886.9
StdDev Value in ippsStdDev_32f() with ippAlgHintFast:0
StdDev Value in ippsStdDev_32f() with ippAlgHintAccurate:2886.9
StdDev Value in ippsMeanStdDev_32f() with ippAlgHintNone:2886.9
StdDev Value in ippsMeanStdDev_32f() with ippAlgHintFast:2886.9
StdDev Value in ippsMeanStdDev_32f() with ippAlgHintAccurate:2886.9&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2022 06:02:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1439642#M28220</guid>
      <dc:creator>zhulei2017</dc:creator>
      <dc:date>2022-12-19T06:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: standard deviation of large vector in ippsStdDev_32f is zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1440071#M28228</link>
      <description>&lt;P&gt;Hi Lei,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us and bringing up this issue.&lt;/P&gt;
&lt;P&gt;I could reproduce the issue in the &lt;STRONG&gt;Windows&lt;/STRONG&gt; environment with large vector size and could see the mismatch in the &lt;STRONG&gt;results&lt;/STRONG&gt; same as yours&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;the length of the vector is: 10000
StdDev Value in ippsStdDev_32f() with ippAlgHintNone:2886.9
StdDev Value in ippsStdDev_32f() with ippAlgHintFast:0
StdDev Value in ippsStdDev_32f() with ippAlgHintAccurate:2886.9
StdDev Value in ippsMeanStdDev_32f() with ippAlgHintNone:2886.9
StdDev Value in ippsMeanStdDev_32f() with ippAlgHintFast:2886.9
StdDev Value in ippsMeanStdDev_32f() with ippAlgHintAccurate:2886.9&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the same code when tried running in a &lt;STRONG&gt;Linux&lt;/STRONG&gt; environment the &lt;STRONG&gt;results&lt;/STRONG&gt; are the same for both APIs&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1671531405683.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/36348i07140583F8EF32B7/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1671531405683.png" alt="VidyalathaB_Intel_0-1671531405683.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways we will update you with the reason behind the mismatch in the results of standard deviation on Windows and till then we appreciate your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 10:17:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1440071#M28228</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-12-20T10:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: standard deviation of large vector in ippsStdDev_32f is zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1441435#M28238</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Vidya,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply. I haven't tried it in a Linux environment. But, in Windows IPP version 2019.0.4,&amp;nbsp;the results are the same as Linux environment. If there is any update on this issue, please let me know, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Regards,&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Lei.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2022 04:56:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1441435#M28238</guid>
      <dc:creator>zhulei2017</dc:creator>
      <dc:date>2022-12-24T04:56:27Z</dc:date>
    </item>
    <item>
      <title>Re:standard deviation of large vector in ippsStdDev_32f is zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1443172#M28248</link>
      <description>&lt;P&gt;Hi Lei,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;If there is any update on this issue, please let me know, thanks.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Sure, we will get back to you if there is any update on this issue and till then we appreciate your patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jan 2023 08:49:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1443172#M28248</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2023-01-02T08:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: standard deviation of large vector in ippsStdDev_32f is zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1546775#M28562</link>
      <description>&lt;P&gt;Hi Lei,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue raised by you has been fixed in the Intel IPP version 2021.10 which is the latest version and you can download the latest version by using this&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html" target="_self"&gt;link&amp;nbsp;&lt;/A&gt;Could you please try with the latest version of IPP and let us know if your issue still persists?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a Good Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 09:09:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1546775#M28562</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-11-23T09:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: standard deviation of large vector in ippsStdDev_32f is zero</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1550089#M28565</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/269292"&gt;@zhulei2017&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have not heard back from you. The issue raised by you has been fixed in the Intel IPP version 2021.10 which is the latest version and you can download the latest version by using this&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit-download.html?operatingsystem=linux&amp;amp;distributions=offline" target="_self"&gt;link&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a Good Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 06:56:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/standard-deviation-of-large-vector-in-ippsStdDev-32f-is-zero/m-p/1550089#M28565</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-12-12T06:56:23Z</dc:date>
    </item>
  </channel>
</rss>

