<?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:vslCopyStreamState fails in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1724985#M37436</link>
    <description>&lt;P&gt;The bug fix is included in the new release.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Nov 2025 15:56:33 GMT</pubDate>
    <dc:creator>Aleksandra_K</dc:creator>
    <dc:date>2025-11-05T15:56:33Z</dc:date>
    <item>
      <title>vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1687857#M37113</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Since I upgraded MKL from 2024.0.0 to 2025.1.0 I observe crashes around the &lt;EM&gt;vslCopyStreamState&lt;/EM&gt; method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This simple program will fail on Linux OS:&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;#include &amp;lt;iostream&amp;gt;
#include &amp;lt;mkl_vsl.h&amp;gt;

int main()
{
    unsigned int scrambledSobolMaxBit = 32;
    unsigned int dimension = 399;

    int z = 0;
    for (; z &amp;lt; 100; z++)
    {
        std::cout &amp;lt;&amp;lt;"z:" &amp;lt;&amp;lt; z &amp;lt;&amp;lt;"\n";

        unsigned int nbParameters = 3 + scrambledSobolMaxBit * dimension;
        unsigned int* parameters = new unsigned int[nbParameters];
        
        int k = 0;
        parameters[k++] = dimension;
        parameters[k++] = VSL_USER_QRNG_INITIAL_VALUES;
        parameters[k++] = VSL_USER_DIRECTION_NUMBERS;
        for (; k &amp;lt; nbParameters; k++)
        {
            parameters[k] = 0;
        }

        VSLStreamStatePtr rngState;
        if (vslNewStreamEx(&amp;amp;rngState, VSL_BRNG_SOBOL, nbParameters, parameters) != VSL_STATUS_OK)
        {
            std::cout &amp;lt;&amp;lt;"fail to vslNewStreamEx rngState" &amp;lt;&amp;lt;"\n";
            return 1;
        }
        VSLStreamStatePtr tempState;
        if (vslNewStreamEx(&amp;amp;tempState, VSL_BRNG_SOBOL, nbParameters, parameters) != VSL_STATUS_OK)
        {
            std::cout &amp;lt;&amp;lt;"fail to vslNewStreamEx tempState" &amp;lt;&amp;lt;"\n";
            return 1;
        }
        delete[] parameters;
        std::cout &amp;lt;&amp;lt;"\t0\n";

        if (vslCopyStreamState(tempState, rngState) != VSL_STATUS_OK)
        {
            std::cout &amp;lt;&amp;lt; "\t0\t"&amp;lt;&amp;lt; "\tfail to copy streamState" &amp;lt;&amp;lt;"\n";
            return 1;
        }
        
        // no prb if use below commented code
        /*
        if (vslDeleteStream(&amp;amp;tempState) != VSL_STATUS_OK)
        {
            std::cout &amp;lt;&amp;lt; "\t0\t"&amp;lt;&amp;lt; "\tfail to vslDeleteStream" &amp;lt;&amp;lt;"\n";
            return 1;
        }
        if (vslCopyStream(&amp;amp;tempState, rngState) != VSL_STATUS_OK)
        {
            std::cout &amp;lt;&amp;lt; "\t0\t"&amp;lt;&amp;lt; "\tfail to vslCopyStream" &amp;lt;&amp;lt;"\n";
            return 1;
        }
        */

        std::cout &amp;lt;&amp;lt; "\t1\n";

        vslDeleteStream(&amp;amp;rngState);
        vslDeleteStream(&amp;amp;tempState);
    }
    return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The program crashs during the first&amp;nbsp;&lt;EM&gt;&lt;SPAN&gt;vslCopyStreamState&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;and show the msg:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="none"&gt;free(): invalid pointer
Aborted (core dumped)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Useful infos:&lt;/P&gt;&lt;P&gt;Compilation options:&lt;BR /&gt;&lt;EM&gt;-DISOLATION_AWARE_ENABLED -std=gnu++17 -m64 -mavx -axCORE-AVX2,CORE-AVX512 -fthreadsafe-statics -fexceptions -frtti -fomit-frame-pointer -fno-strict-aliasing -O0 -g2 -gdwarf-2 -fPIE -MD -MT&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Link options:&lt;BR /&gt;&lt;EM&gt;-pie -m64 -static-libgcc -static-libstdc++ -static-intel -Wl,--start-group libmkl_intel_lp64.a libmkl_sequential.a libmkl_core.a -Wl,--end-group -lpthread -ldl&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Cpuinfo:&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; vendor_id : AuthenticAMD&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; model name : AMD EPYC-Rome Processor&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;OS:&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; Red Hat Enterprise Linux release 9.5&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Env:&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; gcc == 13.1.0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; gxx == 13.1.0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; dpcpp_linux-64 == 2025.0.4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; mkl-static == 2025.1.0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fun facts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the program works fine with &lt;EM&gt;dimension &amp;lt;= 398&lt;/EM&gt;.&lt;/LI&gt;&lt;LI&gt;the program works fine if comment the first &lt;EM&gt;std::cout&lt;/EM&gt; (line 12).&lt;/LI&gt;&lt;LI&gt;the program works fine with the similar method &lt;EM&gt;vslCopyStream&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;the program works fine with MKL 2024.0.0&lt;/LI&gt;&lt;LI&gt;the same code crashs randomly on Windows 11 with an Intel(R) Xeon(R) W-11955M...&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guillaume A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 14:30:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1687857#M37113</guid>
      <dc:creator>Guillaume_A_</dc:creator>
      <dc:date>2025-05-06T14:30:19Z</dc:date>
    </item>
    <item>
      <title>Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689542#M37145</link>
      <description>&lt;P&gt;Hi Guillaume,&lt;/P&gt;&lt;P&gt;Could you specify how you are running the code? I tried icpx with the compilation and link options which you mentioned and got correct results.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 May 2025 12:16:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689542#M37145</guid>
      <dc:creator>Aleksandra_K</dc:creator>
      <dc:date>2025-05-13T12:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689550#M37147</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running it the most simple way, in the console: &lt;EM&gt;./myprogram.out&lt;/EM&gt; on Linux,&amp;nbsp;&lt;EM&gt;myprogram.exe&lt;/EM&gt; on Windows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you run it on Windows or Linux OS? With an AMD or Intel CPU?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Guillaume A.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 12:44:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689550#M37147</guid>
      <dc:creator>Guillaume_A_</dc:creator>
      <dc:date>2025-05-13T12:44:05Z</dc:date>
    </item>
    <item>
      <title>Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689553#M37148</link>
      <description>&lt;P&gt;Sorry for making the confusion, by 'running' I meant mainly compiling. I used Linux.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 May 2025 12:59:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689553#M37148</guid>
      <dc:creator>Aleksandra_K</dc:creator>
      <dc:date>2025-05-13T12:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689566#M37150</link>
      <description>&lt;P&gt;Oh ok, my whole compilation/link commands:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/Console # /root/bin/mf-current/bin/icpx -DISOLATION_AWARE_ENABLED -I/root/bin/mf-current/x86_64-conda-linux-gnu/include/c++/13.1.0 -I/root/bin/mf-current/x86_64-conda-linux-gnu/include/c++/13.1.0/x86_64-conda-linux-gnu -I/root/bin/mf-current/x86_64-conda-linux-gnu/sysroot/usr/include -I/root/bin/mf-current/include -std=gnu++17 -m64 -mavx -O0 -g2 -gdwarf-2 -fPIE -o myprogram.cpp.o -c myprogram.cpp&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/Console # /root/bin/mf-current/bin/icpx -pie -m64 --sysroot=/root/bin/mf-current/x86_64-conda-linux-gnu/sysroot -static-libgcc -static-libstdc++ -static-intel myprogram.cpp.o -o myprogram.out -Wl,--start-group /root/bin/mf-current/lib/libmkl_intel_lp64.a /root/bin/mf-current/lib/libmkl_sequential.a /root/bin/mf-current/lib/libmkl_core.a -Wl,--end-group -lpthread -ldl&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that&amp;nbsp;I removed some option to keep it simple, but I still reproduce the crash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gcc, g++, mkl and dpcpp have been installed with conda (miniforge).&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 14:10:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1689566#M37150</guid>
      <dc:creator>Guillaume_A_</dc:creator>
      <dc:date>2025-05-13T14:10:01Z</dc:date>
    </item>
    <item>
      <title>Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1691025#M37160</link>
      <description>&lt;P&gt;Hi, I eventually reproduced the issue and we will work on it internally. I'll post here with any news.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 May 2025 17:04:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1691025#M37160</guid>
      <dc:creator>Aleksandra_K</dc:creator>
      <dc:date>2025-05-19T17:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1698111#M37222</link>
      <description>&lt;P&gt;Hello, any news on this?&lt;/P&gt;&lt;P&gt;Guillaume A.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jun 2025 08:47:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1698111#M37222</guid>
      <dc:creator>Guillaume_A_</dc:creator>
      <dc:date>2025-06-18T08:47:30Z</dc:date>
    </item>
    <item>
      <title>Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1698115#M37223</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I confirmed that work on this issue is in progress. I'll post here once there are updates.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Jun 2025 09:22:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1698115#M37223</guid>
      <dc:creator>Aleksandra_K</dc:creator>
      <dc:date>2025-06-18T09:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1714523#M37314</link>
      <description>&lt;P class=""&gt;Hello, any news on this?&lt;/P&gt;&lt;P class=""&gt;Guillaume A.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 12:37:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1714523#M37314</guid>
      <dc:creator>Guillaume_A_</dc:creator>
      <dc:date>2025-09-01T12:37:55Z</dc:date>
    </item>
    <item>
      <title>Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1714695#M37315</link>
      <description>&lt;P&gt;The bug has been fixed and the fix will be included in the new oneMKL release.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Sep 2025 11:24:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1714695#M37315</guid>
      <dc:creator>Aleksandra_K</dc:creator>
      <dc:date>2025-09-02T11:24:25Z</dc:date>
    </item>
    <item>
      <title>Re:vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1724985#M37436</link>
      <description>&lt;P&gt;The bug fix is included in the new release.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Nov 2025 15:56:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1724985#M37436</guid>
      <dc:creator>Aleksandra_K</dc:creator>
      <dc:date>2025-11-05T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: vslCopyStreamState fails</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1725160#M37437</link>
      <description>&lt;P&gt;Indeed, the problem is fixed with MKL&amp;nbsp;2025.3.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Guillaume A.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 10:10:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/vslCopyStreamState-fails/m-p/1725160#M37437</guid>
      <dc:creator>Guillaume_A_</dc:creator>
      <dc:date>2025-11-06T10:10:56Z</dc:date>
    </item>
  </channel>
</rss>

