<?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 Quote:manuel m. wrote: in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784012#M1665</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;manuel m. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;i just downloaded version 11.1 of MKL, and the same code works fine in 32b and crashes on 64&lt;/P&gt;

&lt;P&gt;Unhandled exception at 0x00007ff7f06241bc in template.exe: 0xC0000005: Access violation writing location 0x0000000000000000.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;What is template.exe? Is this your application?&lt;/P&gt;

&lt;P&gt;It seems that null pointer was dereferenced. If you have an access to source code you can try to investigate this issue.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jun 2014 07:09:13 GMT</pubDate>
    <dc:creator>Bernard</dc:creator>
    <dc:date>2014-06-24T07:09:13Z</dc:date>
    <item>
      <title>Segmentation fault with LAPACK routine dsytrf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784005#M1658</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm running the MKL version 10.1 Update 1 on an iMac (Darwin 9.8.0) with the Intel c++ compiler 11.0.064. The iMac has LAPACK installed by default and the test problem below works fine when linked with that, but I get a seg fault when I link it with the MKL.&lt;BR /&gt;&lt;BR /&gt;Here is the test code:&lt;BR /&gt;&lt;BR /&gt;[cpp]// This program tests the call to dsytrf using lapack and the mkl.

#include &lt;IOSTREAM&gt;

extern "C"
{
  extern int dsytrf(char *uplo, int *n, double *a, int *lda, int *ipiv, double *work, int *lwork, int *info);
}

using namespace std;

int main(int argc, char **argv)
{
  int m, info, work_sz;
  double tmp;
  
  work_sz = -1;
  m = 3;
  
  dsytrf("L", (int *)&amp;amp;m, NULL, (int *)&amp;amp;m, NULL, (double *)&amp;amp;tmp, (int *)&amp;amp;work_sz, (int *)&amp;amp;info);
  cout &amp;lt;&amp;lt; "info = " &amp;lt;&amp;lt; info &amp;lt;&amp;lt; endl;
  cout &amp;lt;&amp;lt; "tmp = " &amp;lt;&amp;lt; (int)tmp &amp;lt;&amp;lt; endl;
  
  return 0;
}[/cpp] Here is the Makefile I use to compile it:&lt;BR /&gt;&lt;BR /&gt;[bash]# Makefile for test.cpp

# Generic LAPACK variables
LDFLAGS = -L/usr/lib -L.
LAPACKLIBS=-llapack -lblas -lm

# MKL variables
MLAPACKLIBS_PATH = /opt/intel/Compiler/11.0/064/Frameworks/mkl/lib/em64t
MLDFLAGS = -L$(MLAPACKLIBS_PATH) -L.
LP=$(MLAPACKLIBS_PATH)
IP=/opt/intel/Compiler/11.0/064/lib
MLAPACKLIBS = $(LP)/libmkl_intel_lp64.a $(LP)/libmkl_sequential.a $(LP)/libmkl_core.a
MLAPACKLIBS += -lpthread $(IP)/libiomp5.a -lm

# Use LAPACKLIBS for generic LAPACK and MLAPACKLIBS for MKL
LIBS = $(MLAPACKLIBS)
# Use LDFLAGS for generic LAPACK and MLDFLAGS for MKL
LD = $(MLDFLAGS)

all:
	icpc test.cpp -c -g -O0
	icpc -o test test.o $(LD) $(LIBS)

clean:
	rm test test.o[/bash] &lt;BR /&gt;Here is the output when linking with the generic LAPACK:&lt;BR /&gt;&lt;BR /&gt;[bash]&amp;gt; ./test 
info = 0
tmp = 240
[/bash] And here is the output from idb when linking with the MKL:&lt;BR /&gt;&lt;BR /&gt;[bash]&amp;gt; idb test
Intel Debugger for applications running on Intel 64, Version 11.0, Build [1.1510.2.109]
------------------ 
object file name: test 
Reading symbols from /home/sci/rawlins/Examples/optimization/levmar/test...done.
(idb) r
Starting program: /home/sci/rawlins/Examples/optimization/levmar/test
Program received signal SIGBUS
_DSYTRF () in /home/sci/rawlins/Examples/optimization/levmar/test
(idb) bt
#0  0x00000001000014ab in _DSYTRF () in /home/sci/rawlins/Examples/optimization/levmar/test
#1  0x00007fff5fbff510
[/bash]&lt;/IOSTREAM&gt;</description>
      <pubDate>Mon, 26 Mar 2012 19:52:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784005#M1658</guid>
      <dc:creator>Rawlins__David</dc:creator>
      <dc:date>2012-03-26T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault with LAPACK routine dsytrf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784006#M1659</link>
      <description>With Intel C++ 12.1.3.300, MKL 10.3, on Windows 7 X64 I get &lt;BR /&gt;&lt;BR /&gt; T:\lang&amp;gt;icl /Qmkl cdsy.cpp&lt;BR /&gt;Intel C++ Intel 64 Compiler XE for applications running on Intel 64, Version 12.1.3.300 Build 20120130&lt;BR /&gt;&lt;BR /&gt; T:\lang&amp;gt;cdsy&lt;BR /&gt;info = 0&lt;BR /&gt;tmp = 3&lt;BR /&gt;&lt;BR /&gt;I get the same results with the 32-bit versions of the C compiler and MKL. With Cygwin-lapack and GFortran I get tmp = 192. All these results are acceptable since the workspace size returned in 'tmp' is implementation-dependent.&lt;BR /&gt;&lt;BR /&gt;Sorry, I do not have a Macintosh.</description>
      <pubDate>Mon, 26 Mar 2012 21:10:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784006#M1659</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-03-26T21:10:48Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault with LAPACK routine dsytrf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784007#M1660</link>
      <description>I cannot see the problem with the latest version either. the one thing we can recommend you know - to download the evaluation version (valid for 30 days) from intel registration center for checking the problem on your side.</description>
      <pubDate>Tue, 27 Mar 2012 10:00:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784007#M1660</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-03-27T10:00:19Z</dc:date>
    </item>
    <item>
      <title>Segmentation fault with LAPACK routine dsytrf</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784008#M1661</link>
      <description>Gennady,&lt;BR /&gt;&lt;BR /&gt;I haven't downloaded the evaluation version yet, but I did compile it on Linux using icpc version 11.0.083 and MKL version 10.3 update 1 and I'm getting the same error. I'll try the evaluation version next.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;&lt;BR /&gt;p.s. Nevermind. I realized that I needed to reset the MKL environment variables. Once I did that, it works!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Wed, 28 Mar 2012 22:16:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784008#M1661</guid>
      <dc:creator>Rawlins__David</dc:creator>
      <dc:date>2012-03-28T22:16:36Z</dc:date>
    </item>
    <item>
      <title>Hello Dave,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784009#M1662</link>
      <description>&lt;P&gt;Hello Dave,&lt;/P&gt;

&lt;P&gt;I use Windows 7 and MKL 10. dsytrf() works fine for me on 32bit, but dies on 64bit architechure, trying to write to some location.&lt;/P&gt;

&lt;P&gt;Could you please share which MKL environment variables you have changed to make it work? Maybe I have the same issue?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yuri Rzhanov&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 15:02:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784009#M1662</guid>
      <dc:creator>Yuri_R_1</dc:creator>
      <dc:date>2013-11-27T15:02:05Z</dc:date>
    </item>
    <item>
      <title>i just downloaded version 11</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784010#M1663</link>
      <description>&lt;P&gt;i just downloaded version 11.1 of MKL, and the same code works fine in 32b and crashes on 64&lt;/P&gt;

&lt;P&gt;Unhandled exception at 0x00007ff7f06241bc in template.exe: 0xC0000005: Access violation writing location 0x0000000000000000.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jun 2014 19:04:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784010#M1663</guid>
      <dc:creator>manuel_m_4</dc:creator>
      <dc:date>2014-06-22T19:04:00Z</dc:date>
    </item>
    <item>
      <title>I find that on Windows the 32</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784011#M1664</link>
      <description>&lt;P&gt;I find that on Windows the 32- and 64-bit Intel C compilers 14.0.2.176 and MKL&amp;nbsp;11.1.3 give correct results.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 19:46:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784011#M1664</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2014-06-23T19:46:03Z</dc:date>
    </item>
    <item>
      <title>Quote:manuel m. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784012#M1665</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;manuel m. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;i just downloaded version 11.1 of MKL, and the same code works fine in 32b and crashes on 64&lt;/P&gt;

&lt;P&gt;Unhandled exception at 0x00007ff7f06241bc in template.exe: 0xC0000005: Access violation writing location 0x0000000000000000.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;What is template.exe? Is this your application?&lt;/P&gt;

&lt;P&gt;It seems that null pointer was dereferenced. If you have an access to source code you can try to investigate this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 07:09:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Segmentation-fault-with-LAPACK-routine-dsytrf/m-p/784012#M1665</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2014-06-24T07:09:13Z</dc:date>
    </item>
  </channel>
</rss>

