<?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: Linux app goes to sleep (permanently) inside __kmp_suspend in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-app-goes-to-sleep-permanently-inside-kmp-suspend/m-p/938540#M14324</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If you set MKL_SERIAL=YES or Set OMP_NUM_THREADS=1, can this problem be removed?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Chao&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Apr 2006 20:05:09 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2006-04-03T20:05:09Z</dc:date>
    <item>
      <title>Linux app goes to sleep (permanently) inside __kmp_suspend</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-app-goes-to-sleep-permanently-inside-kmp-suspend/m-p/938539#M14323</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm building and running an application on a 32-bit RedHat Linux 3, kernel 2.4.21-4.ELsmp, glibc 2.3.2, dual-Xeon machine. I build it with the Intel C/C++ compiler for Linux, version 8.1. The application uses MKL 7.2.1 libraries (BLAS &amp;amp; Lapack routines.)&lt;BR /&gt;&lt;BR /&gt;It was working fine until recently when I began linking in a new shared library, developed at a different site within my company, which also uses MKL. Now when I execute my application, I find that it gets hung up inside (what I think are) OpenMP routines. If I attach to the running app with gdb and do "where", it says&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#0 0xb75ebc32 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2&lt;BR /&gt;#1 0xb608c1ee in pthread_cond_wait@@GLIBC_2.3.2 ()&lt;BR /&gt;from /lib/tls/libpthread.so.0&lt;BR /&gt;#2 0xb68a5af5 in __kmp_suspend ()&lt;BR /&gt;from /400gb1/bracken/bin/libmynewlibrary.so&lt;BR /&gt;#3 0x00000008 in ?? ()&lt;BR /&gt;#4 0x08306104 in ?? ()&lt;BR /&gt;#5 0xb68a66a4 in __kmp_wait_sleep ()&lt;BR /&gt;from /400gb1/bracken/bin/libmynewlibrary.so&lt;BR /&gt;#6 0x00000000 in ?? ()&lt;BR /&gt;&lt;BR /&gt;What could cause a problem like this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;--Eric&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;P.S. Typical command line for compiling object files:&lt;BR /&gt;&lt;BR /&gt;icpc -O2 -mp -pthread -cxxlib-icc -D_FILE_OFFSET_BITS=64 -fpic -c myfile.cpp&lt;BR /&gt;&lt;BR /&gt;Typical link line:&lt;BR /&gt;&lt;BR /&gt;icpc -o myprog.exe -pthread -cxxlib-icc -L/path/to/MKL_V7.2.1/linux/ia32 -lmkl_lapack64 -lmkl_lapack32 -lmkl -lguide [lots of object files and libraries]</description>
      <pubDate>Tue, 28 Mar 2006 05:13:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-app-goes-to-sleep-permanently-inside-kmp-suspend/m-p/938539#M14323</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-03-28T05:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linux app goes to sleep (permanently) inside __kmp_suspend</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-app-goes-to-sleep-permanently-inside-kmp-suspend/m-p/938540#M14324</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If you set MKL_SERIAL=YES or Set OMP_NUM_THREADS=1, can this problem be removed?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Chao&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Apr 2006 20:05:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-app-goes-to-sleep-permanently-inside-kmp-suspend/m-p/938540#M14324</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2006-04-03T20:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Linux app goes to sleep (permanently) inside __kmp_suspend</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-app-goes-to-sleep-permanently-inside-kmp-suspend/m-p/938541#M14325</link>
      <description>Hi Chao,&lt;BR /&gt;&lt;BR /&gt;Setting OMP_NUM_THREADS=1 has no effect. Setting MKL_SERIAL=yes seems to work (the application successfully completes.)&lt;BR /&gt;&lt;BR /&gt;Of course, disabling multithreading is not desirable for performance reasons...&lt;BR /&gt;&lt;BR /&gt;One other clue: The hang occurs when we call DGETRF. Inside the code we are calling omp_set_num_threads() fairly early on. If we remove this call, then it does not hang.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;--Eric</description>
      <pubDate>Tue, 04 Apr 2006 00:05:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linux-app-goes-to-sleep-permanently-inside-kmp-suspend/m-p/938541#M14325</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2006-04-04T00:05:42Z</dc:date>
    </item>
  </channel>
</rss>

