<?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 Hang on exit on Macintosh threaded application using MKL 10.3 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819399#M4602</link>
    <description>&lt;P&gt;Oritmay easy for youto build a test case based on MKLexample code: lapacke_sgels_row.c under &lt;MKL install="" directory=""&gt;\examples\lapacke\source and add two pthread call to simulate yourscene? &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying &lt;/MKL&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2012 08:15:32 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2012-02-09T08:15:32Z</dc:date>
    <item>
      <title>Hang on exit on Macintosh threaded application using MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819393#M4596</link>
      <description>I just upgraded to MKL 10.3 update 8 as a part of upgrading my Fortran compiler. I am running on Mac OS X 10.6.8.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Since the upgrade, the application hangs on exit if at some point I call sgels() from an application thread. That is, we allocate several threads and call sgels() from each thread. Our threads use Macintosh API's, which means we are using pthreads.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;If I break into gdb when hung I see this stack trace:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;#0	0x99271bd2 in swtch_pri&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#1	0x992e8239 in sched_yield&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#2	0x02a44250 in rml::internal::doInitialization&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#3	0x02a86714 in __kmp_internal_end_atexit&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#4	0x99290c0a in __cxa_finalize&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#5	0x99290b14 in exit&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#6	0x94195444 in ExitToShell&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#7	0x011656b1 in MacIgorMain at Igor.cpp:1441&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;#8	0x0116e593 in main at MacMain.cpp:8&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;#0	0x99271bd2 in swtch_pri#1	0x992e8239 in sched_yield#2	0x02a44250 in rml::internal::doInitialization#3	0x02a86714 in __kmp_internal_end_atexit#4	0x99290c0a in __cxa_finalize#5	0x99290b14 in exit#6	0x94195444 in ExitToShell#7	0x011656b1 in MacIgorMain at Igor.cpp:1441#8	0x0116e593 in main at MacMain.cpp:8&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I tried calling&lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 19px;" class="sectionbody"&gt;mkl_set_num_threads(1) before the call to sgels, but it didn't help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 19px;" class="sectionbody"&gt;Does anyone know anything about this? Seen anything like it before?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 19px;" class="sectionbody"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 19px;" class="sectionbody"&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #333333; font-family: 'Courier New', Courier, monospace; font-size: 13px; line-height: 19px;" class="sectionbody"&gt;John Weeks&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Jan 2012 22:20:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819393#M4596</guid>
      <dc:creator>jd_weeks</dc:creator>
      <dc:date>2012-01-30T22:20:07Z</dc:date>
    </item>
    <item>
      <title>Hang on exit on Macintosh threaded application using MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819394#M4597</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;At the first glance it's a problem in libiomp5 library.... or alsoinMacIgorMain at Igor.cpp:1441.&lt;BR /&gt;Could you please create a small testcase to reproduce this on our side?&lt;BR /&gt;Pleaseadd details on used linking line with MKL.</description>
      <pubDate>Tue, 31 Jan 2012 04:32:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819394#M4597</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-01-31T04:32:31Z</dc:date>
    </item>
    <item>
      <title>Hang on exit on Macintosh threaded application using MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819395#M4598</link>
      <description>&lt;DIV&gt;Thank you, Victor. This is part of a very large and complex application. I'm not sure I even know how to create such a test case without bringing in lots of our code.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;Another engineer here seems possibly to have solved the problem by explicitly closing our own threads before exit. That would solve our problem, but I'm still left puzzled by why our threads would cause a hang in MKL code.&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;-John Weeks&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Jan 2012 16:54:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819395#M4598</guid>
      <dc:creator>jd_weeks</dc:creator>
      <dc:date>2012-01-31T16:54:13Z</dc:date>
    </item>
    <item>
      <title>Hang on exit on Macintosh threaded application using MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819396#M4599</link>
      <description>&lt;DIV&gt;John, in that case one thing we can recommend you to try linking your code with sequential version of MKL.&lt;/DIV&gt;&lt;DIV&gt;See here &lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;Linker Adviser&lt;/A&gt; how to do that.&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Jan 2012 17:35:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819396#M4599</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-01-31T17:35:56Z</dc:date>
    </item>
    <item>
      <title>Hang on exit on Macintosh threaded application using MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819397#M4600</link>
      <description>A big reason for us to use MKL is the threaded LAPACK support.&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;-John&lt;/DIV&gt;</description>
      <pubDate>Tue, 31 Jan 2012 17:51:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819397#M4600</guid>
      <dc:creator>jd_weeks</dc:creator>
      <dc:date>2012-01-31T17:51:56Z</dc:date>
    </item>
    <item>
      <title>Hang on exit on Macintosh threaded application using MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819398#M4601</link>
      <description>John,&lt;BR /&gt;&lt;BR /&gt;To use threaded MKL (which is based on OpenMPlibiomp5-library) together with your pthreads in one application it needs to have some "consensus" on run-time with running threads or so.&lt;BR /&gt;If it's not easy to create some reproducer, then my suggestion is to use some workaround first to find out later real problems in your application or in MKL/Iomp etc.</description>
      <pubDate>Wed, 01 Feb 2012 06:18:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819398#M4601</guid>
      <dc:creator>barragan_villanueva_</dc:creator>
      <dc:date>2012-02-01T06:18:48Z</dc:date>
    </item>
    <item>
      <title>Hang on exit on Macintosh threaded application using MKL 10.3</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819399#M4602</link>
      <description>&lt;P&gt;Oritmay easy for youto build a test case based on MKLexample code: lapacke_sgels_row.c under &lt;MKL install="" directory=""&gt;\examples\lapacke\source and add two pthread call to simulate yourscene? &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying &lt;/MKL&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 08:15:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Hang-on-exit-on-Macintosh-threaded-application-using-MKL-10-3/m-p/819399#M4602</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-02-09T08:15:32Z</dc:date>
    </item>
  </channel>
</rss>

