<?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: Illegal Instruction when calling dgemv on Mac Pro in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866656#M8059</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;Jonathan,&lt;BR /&gt;what mkl version you are using? And what is your linking line?&lt;BR /&gt;--Gennady?&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm using MKL version 10.0.5 with ifort 10.1 (I tried with ifort 11.0 with the same results)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;The relevant lines in my Makefile for the linking are below:&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;MKLLIB=/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/lib/em64t&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;MKLINC=/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/include&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;LAPACK = -L$(MKLLIB) -lmkl_lapack -lmkl_intel_lp64 -lmkl_core -lguide -lpthread&lt;/DIV&gt;
&lt;DIV&gt;F90  = ifort&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;FFLAGS = -O2&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;INCS  = -I. -I$(CFITSIO)/include -I$(MKLINC)&lt;/DIV&gt;
&lt;DIV&gt;LIBS  = -L. -L$(CFITSIO)/lib -lcfitsio $(LAPACK)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;test: $(OBJS) test.o&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt; &lt;/SPAN&gt;$(F90) $(FFLAGS) $(INCS) -o $@ test.o $(OBJS) $(LIBS)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks!&lt;/DIV&gt;
&lt;DIV&gt; Jonathan&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 09 Apr 2009 13:09:58 GMT</pubDate>
    <dc:creator>jpritchardcfa_harvar</dc:creator>
    <dc:date>2009-04-09T13:09:58Z</dc:date>
    <item>
      <title>Illegal Instruction when calling dgemv on Mac Pro</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866654#M8057</link>
      <description>&lt;SPAN style="font-family: verdana;"&gt;I'm trying to compile and run code with ifort linking MKL on a Mac Pro running Leopard. The code compiles fine, but when run it terminates with an "Illegal instruction" message when it calls dgemv. The same code compiles and runs without problem on my Macbook Pro running Tiger. I'm stumped.&lt;/SPAN&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Has anyone run into the same problem or know how to resolve it?&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Cheers,&lt;/DIV&gt;
&lt;DIV&gt; Jonathan&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Apr 2009 14:05:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866654#M8057</guid>
      <dc:creator>jpritchardcfa_harvar</dc:creator>
      <dc:date>2009-04-03T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Illegal Instruction when calling dgemv on Mac Pro</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866655#M8058</link>
      <description>&lt;BR /&gt;
&lt;P&gt;Jonathan,&lt;BR /&gt;what mkl version you are using? And what is your linking line?&lt;BR /&gt;--Gennady?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2009 18:33:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866655#M8058</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-04-05T18:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Illegal Instruction when calling dgemv on Mac Pro</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866656#M8059</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;Jonathan,&lt;BR /&gt;what mkl version you are using? And what is your linking line?&lt;BR /&gt;--Gennady?&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I'm using MKL version 10.0.5 with ifort 10.1 (I tried with ifort 11.0 with the same results)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;The relevant lines in my Makefile for the linking are below:&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;MKLLIB=/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/lib/em64t&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;MKLINC=/Library/Frameworks/Intel_MKL.framework/Versions/10.0.5.025/include&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;LAPACK = -L$(MKLLIB) -lmkl_lapack -lmkl_intel_lp64 -lmkl_core -lguide -lpthread&lt;/DIV&gt;
&lt;DIV&gt;F90  = ifort&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;FFLAGS = -O2&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;INCS  = -I. -I$(CFITSIO)/include -I$(MKLINC)&lt;/DIV&gt;
&lt;DIV&gt;LIBS  = -L. -L$(CFITSIO)/lib -lcfitsio $(LAPACK)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;test: $(OBJS) test.o&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="white-space: pre;"&gt; &lt;/SPAN&gt;$(F90) $(FFLAGS) $(INCS) -o $@ test.o $(OBJS) $(LIBS)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks!&lt;/DIV&gt;
&lt;DIV&gt; Jonathan&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Apr 2009 13:09:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866656#M8059</guid>
      <dc:creator>jpritchardcfa_harvar</dc:creator>
      <dc:date>2009-04-09T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Illegal Instruction when calling dgemv on Mac Pro</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866657#M8060</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/421378"&gt;jpritchardcfa.harvard.edu&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;LAPACK = -L$(MKLLIB) -lmkl_lapack -lmkl_intel_lp64 -lmkl_core -lguide -lpthread&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;F90  = ifort&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;FFLAGS = -O2&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;INCS  = -I. -I$(CFITSIO)/include -I$(MKLINC)&lt;/DIV&gt;
&lt;DIV&gt;LIBS  = -L. -L$(CFITSIO)/lib -lcfitsio $(LAPACK)&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I'd worry about this combination of libraries. Since you gave lp64, you must be using 64-bit OS and 64-bit integer data in your MKL calls, and there ought to be a recommendation for that combination in the docs.&lt;BR /&gt;I would be more comfortable with&lt;BR /&gt; LAPACK= -lmkl_intel_lp64 -lmkl_core -lmkl_thread&lt;BR /&gt;FFLAGS = -O2 -openmp&lt;BR /&gt;as you said you were using an ifort which should have its own MKL installation.&lt;BR /&gt;The most worrisome part is your attempt to link both 32-bit and 64-bit integer data support. You can't have it both ways.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Apr 2009 13:35:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Illegal-Instruction-when-calling-dgemv-on-Mac-Pro/m-p/866657#M8060</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-09T13:35:13Z</dc:date>
    </item>
  </channel>
</rss>

