<?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: Program aborting in DGEMM, complaining that memory cannot b in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877242#M9080</link>
    <description>If you don't want the threaded MKL, link with the mkllp64, core, and sequential libraries. For the threaded version, you may need to increase thread stack size by the kmp_stacksize environment variable or library subroutine call.</description>
    <pubDate>Fri, 06 Jun 2008 00:01:20 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2008-06-06T00:01:20Z</dc:date>
    <item>
      <title>Program aborting in DGEMM, complaining that memory cannot be allocated</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877241#M9079</link>
      <description>I am trying to use DGEMM in MKL and my code is segfaulting. I am getting&lt;BR /&gt;the following error:&lt;BR /&gt;&lt;BR /&gt;cannot allocate memory for thread-local data: ABORT&lt;BR /&gt;&lt;BR /&gt;System configuration:&lt;BR /&gt;&lt;BR /&gt;Intel ifort: 10.1.012&lt;BR /&gt;Intel MKL: 10.0.1.014&lt;BR /&gt;OS: Linux Redhat Enterprise 4.4 (upgraded to stock 2.6.20.20 kernel)&lt;BR /&gt;glibc: 2.3.4&lt;BR /&gt;&lt;BR /&gt;I am linking with:&lt;BR /&gt;&lt;BR /&gt;-L/opt/intel/mkl/10.0.1.014/lib/em64t -lguide -lpthread -lmkl&lt;BR /&gt;&lt;BR /&gt;athough I don't want the parallel version. The call to dgemm is buried in&lt;BR /&gt;an MPI program.&lt;BR /&gt;&lt;BR /&gt;The values of M,N,K are approximately 95, 1030, and 64 respectively (they vary a little between MPI tasks).&lt;BR /&gt;&lt;BR /&gt;Any ideas what is causing this error message?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Craig&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jun 2008 22:59:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877241#M9079</guid>
      <dc:creator>crtierney42</dc:creator>
      <dc:date>2008-06-05T22:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Program aborting in DGEMM, complaining that memory cannot b</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877242#M9080</link>
      <description>If you don't want the threaded MKL, link with the mkllp64, core, and sequential libraries. For the threaded version, you may need to increase thread stack size by the kmp_stacksize environment variable or library subroutine call.</description>
      <pubDate>Fri, 06 Jun 2008 00:01:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877242#M9080</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-06-06T00:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Program aborting in DGEMM, complaining that memory cannot b</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877243#M9081</link>
      <description>Thanks for the tip. I tried linking with:&lt;BR /&gt;&lt;BR /&gt;-L/opt/intel/mkl/10.0.1.014/lib/em64t -lmkl_core -lmkl_sequential -lmkl_intel_lp64&lt;BR /&gt;&lt;BR /&gt;And verified that the executable was using the correct libraries. I still get the error message. My stacksize (via limit) is set to unlimited.&lt;BR /&gt;&lt;BR /&gt;I found a reference on a NCSA that the problem can be alleviated by statically linking the libraries. So I am trying to link the libraries statically. I am trying to link libmkl_sequential.a,libmkl_intel_lp64.a, and libmkl_core.a to my executable. However,&lt;BR /&gt;the linker complains that dgemm_ is not found. I have tried moving libmkl_core.a to the front of the list, but this didn't help. &lt;BR /&gt;&lt;BR /&gt;What is the proper order for linking?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Craig&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Jun 2008 18:50:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877243#M9081</guid>
      <dc:creator>crtierney42</dc:creator>
      <dc:date>2008-06-06T18:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Program aborting in DGEMM, complaining that memory cannot b</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877244#M9082</link>
      <description>&lt;P&gt;There are examples of static link in the notes in /doc/ showing how to use -Wl,--begin-group .... -Wl,--end-group. This depends on your compiler and binutils being sufficiently up to date. It didn't work consistently with Intel compilers until 10.1.012. Otherwise, you have to list libmkl_intel_lp64.a libmkl_core.a libmkl_sequential.a (full path names) 3 times to resolve circular dependencies, more times if out of order. I think of lp_64 or ilp64 as the one with the interfaces you call in your code, and mkl_sequential as the one which stubs out OpenMP library calls, as a way to remember the order.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2008 23:21:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Program-aborting-in-DGEMM-complaining-that-memory-cannot-be/m-p/877244#M9082</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-06-06T23:21:53Z</dc:date>
    </item>
  </channel>
</rss>

