<?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 Threading problem in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Threading-problem/m-p/973847#M16937</link>
    <description>&lt;DIV&gt;Hi, I am using MKL 6 with the Intel C++ compilter, 7.0 on Windows 2000. I am writing a multi threaded program, and each thread makes thousands of calls to DftiComputeForward(). I use the _beginthread() function for the threading.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;In the scenario above, all is well. However, if I use the Visual C++ 6.0 compiler, instead of the intel one, some of the threads run fine, but at a certain point in my program, it crashes and gives the following message:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;"abort: stack overlapping detected!&lt;BR /&gt;Perhaps you are using over 2MB of stack with unsupported pthreads library that&lt;BR /&gt;was built without FLOATING_STACKS defined? This is the default for the&lt;BR /&gt;static pthreads library and many unsupported operating systems."&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have no idea what FLOATING_STACKS means. But this leads me to believe that the intel compiler uses it's own threading library which works ok, and VC++ uses a different one which doesn't work.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Has anyone seen this before? The reason I am concerned with getting it to compile with both compilers is that I may have to port it to Linux some day. Is there any sort of setting that I have to set in order to get this problem to go away? Even though it's a threading problem, since it's happening with the MKL functions, I figured someone here might know.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm guessing I have to set something relating to FLOATING_STACKS somewhere, but I have no idea where that is.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;thanks&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 21 Jan 2004 01:53:52 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2004-01-21T01:53:52Z</dc:date>
    <item>
      <title>Threading problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Threading-problem/m-p/973847#M16937</link>
      <description>&lt;DIV&gt;Hi, I am using MKL 6 with the Intel C++ compilter, 7.0 on Windows 2000. I am writing a multi threaded program, and each thread makes thousands of calls to DftiComputeForward(). I use the _beginthread() function for the threading.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;In the scenario above, all is well. However, if I use the Visual C++ 6.0 compiler, instead of the intel one, some of the threads run fine, but at a certain point in my program, it crashes and gives the following message:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;"abort: stack overlapping detected!&lt;BR /&gt;Perhaps you are using over 2MB of stack with unsupported pthreads library that&lt;BR /&gt;was built without FLOATING_STACKS defined? This is the default for the&lt;BR /&gt;static pthreads library and many unsupported operating systems."&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I have no idea what FLOATING_STACKS means. But this leads me to believe that the intel compiler uses it's own threading library which works ok, and VC++ uses a different one which doesn't work.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Has anyone seen this before? The reason I am concerned with getting it to compile with both compilers is that I may have to port it to Linux some day. Is there any sort of setting that I have to set in order to get this problem to go away? Even though it's a threading problem, since it's happening with the MKL functions, I figured someone here might know.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm guessing I have to set something relating to FLOATING_STACKS somewhere, but I have no idea where that is.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;thanks&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jan 2004 01:53:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Threading-problem/m-p/973847#M16937</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-01-21T01:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Threading problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Threading-problem/m-p/973848#M16938</link>
      <description>&lt;P&gt;Nevermind, I got it. The second argument to the _beginthread() function is the stack size. I just set it to some huge number like 100 million and it all worked fine. sorry about that, thanks&lt;/P&gt;
&lt;P&gt;-matt&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Jan 2004 02:14:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Threading-problem/m-p/973848#M16938</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-01-21T02:14:55Z</dc:date>
    </item>
  </channel>
</rss>

