<?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 Eigenvalue and Eigenvector Example Problem Help in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932455#M13844</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've put together a quick program to figure out how to use the MKL library to calculate the eigenvalues and eigenvectors of a real symmetric matrix A. However, I get the following error message when compiling: "Error 1 error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_LAPACK]". Can anyone help find my mistake? Any help would be appreciated. I have attached the sample project.&lt;/P&gt;
&lt;P&gt;-Uly&lt;/P&gt;
&lt;P&gt;Here is the code just in case the zip file doesn't upload:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt; program MKL_SpectralDecomp&lt;/P&gt;
&lt;P&gt;use mkl_lapack&lt;/P&gt;
&lt;P&gt;implicit none&lt;BR /&gt; &lt;BR /&gt; integer n, ldz,lwork,liwork,lda,iwork,info&lt;BR /&gt; integer apsize&lt;BR /&gt; &lt;BR /&gt; parameter (n=3)&lt;BR /&gt; parameter (lwork=n**2+6*n+1)&lt;BR /&gt; parameter (liwork=5*n+3)&lt;BR /&gt; parameter (ldz=n)&lt;BR /&gt; parameter (iwork=liwork)&lt;BR /&gt; parameter (lda=n)&lt;/P&gt;
&lt;P&gt;character jobz,uplo&lt;BR /&gt; double precision ap(n*(n+1)/2),work(iwork)&lt;BR /&gt; double precision w(n),z(ldz,n)&lt;BR /&gt; data ap /3.0,4.0,6.0,5.0,7.0,8.0/&lt;BR /&gt; external dspevd&lt;/P&gt;
&lt;P&gt;!!set parameters:&lt;BR /&gt; jobz='V'&lt;BR /&gt; uplo='U'&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; call dspevd(jobz, uplo, n, ap, w, z, ldz, work,&lt;BR /&gt; + lwork, iwork, liwork, info)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; pause&lt;BR /&gt; end&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2012 21:47:21 GMT</pubDate>
    <dc:creator>Ulysses</dc:creator>
    <dc:date>2012-10-22T21:47:21Z</dc:date>
    <item>
      <title>Eigenvalue and Eigenvector Example Problem Help</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932455#M13844</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I've put together a quick program to figure out how to use the MKL library to calculate the eigenvalues and eigenvectors of a real symmetric matrix A. However, I get the following error message when compiling: "Error 1 error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_LAPACK]". Can anyone help find my mistake? Any help would be appreciated. I have attached the sample project.&lt;/P&gt;
&lt;P&gt;-Uly&lt;/P&gt;
&lt;P&gt;Here is the code just in case the zip file doesn't upload:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt; program MKL_SpectralDecomp&lt;/P&gt;
&lt;P&gt;use mkl_lapack&lt;/P&gt;
&lt;P&gt;implicit none&lt;BR /&gt; &lt;BR /&gt; integer n, ldz,lwork,liwork,lda,iwork,info&lt;BR /&gt; integer apsize&lt;BR /&gt; &lt;BR /&gt; parameter (n=3)&lt;BR /&gt; parameter (lwork=n**2+6*n+1)&lt;BR /&gt; parameter (liwork=5*n+3)&lt;BR /&gt; parameter (ldz=n)&lt;BR /&gt; parameter (iwork=liwork)&lt;BR /&gt; parameter (lda=n)&lt;/P&gt;
&lt;P&gt;character jobz,uplo&lt;BR /&gt; double precision ap(n*(n+1)/2),work(iwork)&lt;BR /&gt; double precision w(n),z(ldz,n)&lt;BR /&gt; data ap /3.0,4.0,6.0,5.0,7.0,8.0/&lt;BR /&gt; external dspevd&lt;/P&gt;
&lt;P&gt;!!set parameters:&lt;BR /&gt; jobz='V'&lt;BR /&gt; uplo='U'&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; &lt;BR /&gt; call dspevd(jobz, uplo, n, ap, w, z, ldz, work,&lt;BR /&gt; + lwork, iwork, liwork, info)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; pause&lt;BR /&gt; end&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2012 21:47:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932455#M13844</guid>
      <dc:creator>Ulysses</dc:creator>
      <dc:date>2012-10-22T21:47:21Z</dc:date>
    </item>
    <item>
      <title>Since you use the Fortran-77</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932456#M13845</link>
      <description>Since you use the Fortran-77 calling convention, you may obtain the interface to the MKL routine by inserting "include 'mkl.fi'" after the IMPLICIT NONE declaration. You have an incorrect declaration for the integer workspace IWORK(LIWORK). 

After you have added "include 'mkl.fi'", you need to remove the unneeded and inconsistent declaration of DSPEVD as EXTERNAL.

Alternatively, use the much simpler Fortran 9X interface:&lt;BR /&gt;&lt;FORTRAN&gt;
      program MKL_SpectralDecomp

      use mkl95_lapack, only : SPEVD
      implicit none

      integer, parameter :: n=3
      integer info

      double precision ap(n*(n+1)/2), w(n), z(n,n)
      data ap /3d0,4d0,6d0,5d0,7d0,8d0/

      call spevd(ap, w, 'U', z, info)
      write(*,*)' Info from SPEVD: ',info
      write(*,*)w

      end
&lt;/FORTRAN&gt;</description>
      <pubDate>Tue, 23 Oct 2012 11:49:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932456#M13845</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2012-10-23T11:49:07Z</dc:date>
    </item>
    <item>
      <title>Thank you mecej4! Seems I put</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932457#M13846</link>
      <description>Thank you mecej4! Seems I put that example together too quickly. With your help I was able to find the problems in the code example.
-Uly</description>
      <pubDate>Tue, 23 Oct 2012 15:58:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932457#M13846</guid>
      <dc:creator>Ulysses</dc:creator>
      <dc:date>2012-10-23T15:58:33Z</dc:date>
    </item>
    <item>
      <title>Thank you mecej4! Seems I put</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932458#M13847</link>
      <description>Thank you mecej4! Seems I put that example together too quickly. With your help I was able to find the problems in the code example.
-Uly</description>
      <pubDate>Tue, 23 Oct 2012 15:59:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Eigenvalue-and-Eigenvector-Example-Problem-Help/m-p/932458#M13847</guid>
      <dc:creator>Ulysses</dc:creator>
      <dc:date>2012-10-23T15:59:36Z</dc:date>
    </item>
  </channel>
</rss>

