<?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 You may be hitting stack in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970636#M16557</link>
    <description>&lt;P&gt;You may be hitting stack limit, if you didn't set&lt;/P&gt;
&lt;P&gt;ulimit -s unlimited&amp;nbsp; #bash et al&lt;/P&gt;
&lt;P&gt;limit stacksize unlimited #tcsh et al&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2013 01:16:13 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2013-08-07T01:16:13Z</dc:date>
    <item>
      <title>DGEMM with pgithread is giving segmentation fault</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970635#M16556</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code uses multithreaded MKL dgemm. I use following to link the code&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-L$(MKL_LIBDIR) -lmkl_intel_lp64 -lmkl_pgi_thread -lmkl_core -L/usr/common/usg/intel/lib/intel64 -lpthread -lm -pgf90libs&lt;/P&gt;
&lt;P&gt;The code for some reasons give segmentation at some calls to DGEMM. I ran gdb this is output of backtrace&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Program received signal SIGSEGV, Segmentation fault.&lt;BR /&gt;[Switching to Thread 0x43c08940 (LWP 30503)]&lt;BR /&gt;0x00002aaaf7ee7df5 in mkl_blas_mc3_dgemm_copyan ()&lt;BR /&gt; from /usr/common/usg/intel/13.0.028/composer_xe_2013.1.117/mkl/lib/intel64/libmkl_mc3.so&lt;BR /&gt;(gdb) bt&lt;BR /&gt;#0 0x00002aaaf7ee7df5 in mkl_blas_mc3_dgemm_copyan ()&lt;BR /&gt; from /usr/common/usg/intel/13.0.028/composer_xe_2013.1.117/mkl/lib/intel64/libmkl_mc3.so&lt;BR /&gt;#1 0x00002aaaab4ccef2 in mkl_blas_dgemm_2d_acopy_n ()&lt;BR /&gt; from /usr/common/usg/intel/13.0.028/composer_xe_2013.1.117/mkl/lib/intel64/libmkl_pgi_thread.so&lt;BR /&gt;#2 0x00002aaaab4c9a75 in gemm_host ()&lt;BR /&gt; from /usr/common/usg/intel/13.0.028/composer_xe_2013.1.117/mkl/lib/intel64/libmkl_pgi_thread.so&lt;BR /&gt;#3 0x00002aaaab4c8951 in mkl_blas_dgemm ()&lt;BR /&gt; from /usr/common/usg/intel/13.0.028/composer_xe_2013.1.117/mkl/lib/intel64/libmkl_pgi_thread.so&lt;BR /&gt;#4 0x00002aaaaada7799 in dgemm_ ()&lt;BR /&gt; from /usr/common/usg/intel/13.0.028/composer_xe_2013.1.117/mkl/lib/intel64/libmkl_intel_lp64.so&lt;BR /&gt;#5 0x000000000045c6ef in my_dgemm_ (a=0x519863 "N", b=0x519863 "N", c=0x7fffffffad64, &lt;BR /&gt; d=0x7fffffffad48, e=0x7fffffffad98, f=0x7fffffffaeb0, g=0x59b5fd0, h=0x7fffffffad40, &lt;BR /&gt; i=0x2aaaf6db5010, j=0x7fffffffad98, k=0x7fffffffaea8, l=0x2aaac72c4010, m=0x7fffffffad64, n=1, &lt;BR /&gt; o=1) at ./pdgstrf.c:165&lt;/P&gt;
&lt;P&gt;I ran this code on dual socket xeon 5550 2.67GHz system. The code doesn't give segfault until &amp;nbsp;MKL_NUM_THREADS is set to 1, 2, 3, ..7, but for 8 it does. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2013 23:44:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970635#M16556</guid>
      <dc:creator>Piyush_S_2</dc:creator>
      <dc:date>2013-08-06T23:44:08Z</dc:date>
    </item>
    <item>
      <title>You may be hitting stack</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970636#M16557</link>
      <description>&lt;P&gt;You may be hitting stack limit, if you didn't set&lt;/P&gt;
&lt;P&gt;ulimit -s unlimited&amp;nbsp; #bash et al&lt;/P&gt;
&lt;P&gt;limit stacksize unlimited #tcsh et al&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 01:16:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970636#M16557</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-08-07T01:16:13Z</dc:date>
    </item>
    <item>
      <title>It doesn't work :( .</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970637#M16558</link>
      <description>&lt;P&gt;It doesn't work :( . Following is the output for command limit&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;cputime unlimited&lt;BR /&gt;filesize unlimited&lt;BR /&gt;datasize unlimited&lt;BR /&gt;stacksize unlimited&lt;BR /&gt;coredumpsize 0 kbytes&lt;BR /&gt;memoryuse unlimited&lt;BR /&gt;vmemoryuse 41943040 kbytes&lt;BR /&gt;descriptors 8960 &lt;BR /&gt;memorylocked unlimited&lt;BR /&gt;maxproc 409600&lt;/P&gt;
&lt;P&gt;I would also like ot mention that, when linking if I use intel_thread it works alright, i.e. instead of above linking, I link mkl as follows&lt;/P&gt;
&lt;P&gt;BLASLIB = -L$(MKL_LIBDIR) -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -L/usr/common/usg/intel/lib/intel64 -liomp5 -lpthread -lm&lt;/P&gt;
&lt;P&gt;The segmentation fault doesn't occur. I intend to use openmp (with pg c compiler and MKL multithreaded) &amp;nbsp;hence, even though this option works I can't use it &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 02:24:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970637#M16558</guid>
      <dc:creator>Piyush_S_2</dc:creator>
      <dc:date>2013-08-07T02:24:19Z</dc:date>
    </item>
    <item>
      <title>please give us the standalone</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970638#M16559</link>
      <description>&lt;P&gt;please give us the standalone example of this case.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 03:22:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970638#M16559</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-08-07T03:22:28Z</dc:date>
    </item>
    <item>
      <title> I'm attaching this example</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970639#M16560</link>
      <description>&lt;P&gt;&amp;nbsp;I'm attaching this example which also gives segementation fault when MKL_NUM_THREAD is set to 8 (otherwise it works fine). &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 05:00:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970639#M16560</guid>
      <dc:creator>Piyush_S_2</dc:creator>
      <dc:date>2013-08-07T05:00:39Z</dc:date>
    </item>
    <item>
      <title>ok, there are pgi compiler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970640#M16561</link>
      <description>&lt;P&gt;ok, there are pgi compiler avalable right now - what version of this compiler do you use?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 07:35:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970640#M16561</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2013-08-07T07:35:49Z</dc:date>
    </item>
    <item>
      <title>I use pgcc 12.9-0 64-bit (on</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970641#M16562</link>
      <description>&lt;P&gt;I use pgcc 12.9-0 64-bit (on linux)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2013 07:40:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/DGEMM-with-pgithread-is-giving-segmentation-fault/m-p/970641#M16562</guid>
      <dc:creator>Piyush_S_2</dc:creator>
      <dc:date>2013-08-07T07:40:45Z</dc:date>
    </item>
  </channel>
</rss>

