<?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 Problem in trying to use LAPACK routines in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767805#M381</link>
    <description>How do I use the Make file to create the .mod files and use it within Visual Studio. I looked through the documentation carefully, and there doesn't seem to be any instructions about this. All I found is the following.....&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Siddarth&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;using lapack.f90 that includes improved interfaces. This file is used to generate the&lt;/P&gt;&lt;P&gt;module files lapack95.mod and f95_precision.mod. The module files&lt;/P&gt;&lt;P&gt;mkl95_lapack.mod and mkl95_precision.mod are also generated. See also the&lt;/P&gt;&lt;P&gt;section Fortran 95 interfaces and wrappers to LAPACK and BLAS of Intel MKL User's&lt;/P&gt;&lt;P&gt;Guide for details. The module files are used to process the FORTRAN use clauses&lt;/P&gt;&lt;P&gt;referencing the LAPACK interface: use lapack95 (or an equivalent use&lt;/P&gt;&lt;P&gt;mkl95_lapack) and use f95_precision (or an equivalent use mkl95_precision).&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 12 Aug 2010 19:15:05 GMT</pubDate>
    <dc:creator>ssiddarth</dc:creator>
    <dc:date>2010-08-12T19:15:05Z</dc:date>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767798#M374</link>
      <description>I am trying to use a couple of routines in the Intel Math Kernel library, specifically &lt;P&gt;dpotrf anddpotri, in order to get the inverse of a matrix.&lt;BR /&gt;&lt;BR /&gt;However, when I reach the line CALL dpotrf(TRUELAMBDAINV) in the following subroutine, I get an unhandled exceptionerror. I have also included the main program that calls this subroutine at the end of this message.&lt;BR /&gt;&lt;BR /&gt;I think I may not have the proper include and use statements, but can't figure out from the documentation where I am going wrong.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated&lt;BR /&gt;&lt;BR /&gt;Siddarth&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SUBROUTINE TRUE_PARAMS&lt;/P&gt;&lt;P&gt;USE SETTINGS&lt;/P&gt;&lt;P&gt;USE PARS&lt;/P&gt;&lt;P&gt;USE MKL_VSL_TYPE&lt;/P&gt;&lt;P&gt;USE MKL_VSL&lt;/P&gt;&lt;P&gt;use MKL95_LAPACK&lt;/P&gt;&lt;P&gt;use MKL95_PRECISION&lt;/P&gt;&lt;P&gt;IMPLICIT NONE&lt;/P&gt;&lt;P&gt;REAL*8 :: LBD12(NP,NP),RDRAW(NP),R(NP,1),TEMP(NP,1)&lt;/P&gt;&lt;P&gt;INTEGER :: I, J&lt;/P&gt;&lt;P&gt;INTEGER :: mstorage&lt;/P&gt;&lt;P&gt;TYPE (VSL_STREAM_STATE) :: stream&lt;/P&gt;&lt;P&gt;integer(kind=4) errcode&lt;/P&gt;&lt;P&gt;integer brng,method,seed,n&lt;/P&gt;&lt;P&gt;brng=VSL_BRNG_MT19937&lt;/P&gt;&lt;P&gt;method=VSL_METHOD_DGAUSSIAN_ICDF&lt;/P&gt;&lt;P&gt;seed=777&lt;/P&gt;&lt;P&gt;mstorage=VSL_MATRIX_STORAGE_FULL&lt;/P&gt;&lt;P&gt;DATA ((LBD12(I, J), J = 1,4), I = 1,4) / 5, 5, -1, 1, 0, 4, -2, 0, 0, 0, 3, 2, 0, 0,0, 1 / &lt;/P&gt;&lt;P&gt;LBD12=LBD12/2.0D0&lt;/P&gt;&lt;P&gt;TRUELAMBDA=MATMUL(TRANSPOSE(LBD12),LBD12)&lt;/P&gt;&lt;P&gt;TRUELAMBDAINV=TRUELAMBDA&lt;/P&gt;&lt;P&gt;CALL dpotrf(TRUELAMBDAINV)&lt;/P&gt;&lt;P&gt;CALL dpotri(TRUELAMBDAINV)&lt;/P&gt;&lt;P&gt;! ***** Initializing *****&lt;/P&gt;&lt;P&gt;errcode=vslnewstream( stream, brng, seed )&lt;/P&gt;&lt;P&gt;DO I=1,NSUB&lt;/P&gt;&lt;P&gt;errcode = vdrnggaussianmv( method, stream, 1, rdraw, np, mstorage, truemub, lbd12 )&lt;/P&gt;&lt;P&gt;TRUEB_S(I,:)=RDRAW&lt;/P&gt;&lt;P&gt;ENDDO&lt;/P&gt;&lt;P&gt;TRUESIGMA=5.0D0&lt;/P&gt;&lt;P&gt;END SUBROUTINE TRUE_PARAMS&lt;/P&gt;&lt;P&gt;! HB linear regression&lt;/P&gt;&lt;P&gt;! Y_i=X_i*Beta_i + epsilon_i&lt;/P&gt;&lt;P&gt;! Beta_i ~ N(Mu, Lambda)&lt;/P&gt;&lt;P&gt;! Mu ~ N (ETA, V0)&lt;/P&gt;&lt;P&gt;!Lambda ~ IW (f0, G0)&lt;/P&gt;&lt;P&gt;! epsilon_i ~ N(0, sigma^2*I)&lt;/P&gt;&lt;P&gt;!sigma^2 ~ IG(r0/2,s0/2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;! INCLUDE 'link_fnl_static.h' ! Include IMSL static library&lt;/P&gt;&lt;P&gt;! USE MKL_VSL_TYPE&lt;/P&gt;&lt;P&gt;! USE MKL_VSL&lt;/P&gt;&lt;P&gt;INCLUDE 'MKL_VSL.FI'&lt;/P&gt;&lt;P&gt;INCLUDE 'LAPACK.F90'&lt;/P&gt;&lt;P&gt;! INCLUDE 'MKL_LAPACK.FI'&lt;/P&gt;&lt;P&gt;! INCLUDE 'MKL_BLAS.FI'&lt;/P&gt;&lt;P&gt;MODULE SETTINGS&lt;/P&gt;&lt;P&gt;! Set sampler parameters&lt;/P&gt;&lt;P&gt;IMPLICIT NONE&lt;/P&gt;&lt;P&gt;INTEGER, PARAMETER :: NITER = 30000 ! Number of iterations&lt;/P&gt;&lt;P&gt;INTEGER, PARAMETER :: NETBURN = 20000 ! Number of additional iterations to burn&lt;/P&gt;&lt;P&gt;INTEGER, PARAMETER :: NSAVE = 25 ! Thining parameter &lt;/P&gt;&lt;P&gt;INTEGER, PARAMETER :: MONITOR = 1 ! Monitoring parameter (1/0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;! Set Data parameters&lt;/P&gt;&lt;P&gt;INTEGER, PARAMETER :: NSUB = 100 ! Number of cross-sectional units&lt;/P&gt;&lt;P&gt;INTEGER, PARAMETER :: NP = 4 ! Number of parameters &lt;/P&gt;&lt;P&gt;INTEGER, PARAMETER :: NVAR = 3 ! Number of explanatory variables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END MODULE SETTINGS&lt;/P&gt;&lt;P&gt;MODULE FILESPEC&lt;/P&gt;&lt;P&gt;IMPLICIT NONE&lt;/P&gt;&lt;P&gt;! Set model number and run number&lt;/P&gt;&lt;P&gt;CHARACTER*10, PARAMETER :: MODEL = 'HBREG' ! Model number&lt;/P&gt;&lt;P&gt;CHARACTER*4, PARAMETER :: RUN = '_1' ! Run number&lt;/P&gt;&lt;P&gt;! set directory for the output data&lt;/P&gt;&lt;P&gt;CHARACTER*60, PARAMETER :: OUTDIR = 'C:\\ALLWORK\\PROJECTS\\SML\\fortran\\output'&lt;/P&gt;&lt;P&gt;END MODULE FILESPEC&lt;/P&gt;&lt;P&gt;MODULE DATASETS&lt;/P&gt;&lt;P&gt;USE SETTINGS&lt;/P&gt;&lt;P&gt;IMPLICIT NONE&lt;/P&gt;&lt;P&gt;REAL*8, SAVE, DIMENSION(:,:), ALLOCATABLE :: XDATA,XI,YI&lt;/P&gt;&lt;P&gt;REAL*8, SAVE, DIMENSION(:), ALLOCATABLE :: Y&lt;/P&gt;&lt;P&gt;REAL*8 :: STARTEND(NSUB,2)&lt;/P&gt;&lt;P&gt;INTEGER, SAVE :: TOTROWS&lt;/P&gt;&lt;P&gt;END MODULE DATASETS&lt;/P&gt;&lt;P&gt;MODULE PARS&lt;/P&gt;&lt;P&gt;USE SETTINGS&lt;/P&gt;&lt;P&gt;IMPLICIT NONE&lt;/P&gt;&lt;P&gt;REAL*8, SAVE :: BETA_S(NSUB,NP),ILAMBDA(NP,NP),LAMBDA(NP,NP),MUB(NP,1),SIGMA&lt;/P&gt;&lt;P&gt;REAL*8, SAVE :: TRUEB_S(NSUB,NP),TRUELAMBDA(NP,NP),TRUELAMBDAINV(NP,NP),TRUEMUB(NP,1),TRUESIGMA&lt;/P&gt;&lt;P&gt;DATA TRUEMUB /2,-1,3,2/&lt;/P&gt;&lt;P&gt;END MODULE PARS&lt;/P&gt;&lt;P&gt;! *************** START MAIN PROGRAM **********************&lt;/P&gt;&lt;P&gt;PROGRAM HBREG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;! Modules&lt;/P&gt;&lt;P&gt;USE SETTINGS ! Settings for analysis &lt;/P&gt;&lt;P&gt;USE DATASETS ! Data for analysis &lt;/P&gt;&lt;P&gt;USE PARS ! Model parameters for analysis &lt;/P&gt;&lt;P&gt;USE FILESPEC ! Storage directories and model numbers&lt;/P&gt;&lt;P&gt;! USE LINEAR_OPERATORS&lt;/P&gt;&lt;P&gt;! Variable declaration&lt;/P&gt;&lt;P&gt;IMPLICIT NONE&lt;/P&gt;&lt;P&gt;INTEGER :: COUNT_ITER ! Count actual saved iterations &lt;/P&gt;&lt;P&gt;INTEGER :: I,ITER ! Indices&lt;/P&gt;&lt;P&gt;INTEGER :: IYR, IMON, IDAY, IHR, IMIN, ISEC, I100 ! TO get the day and time&lt;/P&gt;&lt;P&gt;INTEGER :: ISEED, IRANK ! Auxiliary variables&lt;/P&gt;&lt;P&gt;WRITE (6,382)IYR,IMON,IDAY &lt;/P&gt;&lt;P&gt;WRITE (6,383)IHR,IMIN,ISEC,I100&lt;/P&gt;&lt;P&gt;382 FORMAT(" Start Date -- ",I4,":",I2,":",I2)&lt;/P&gt;&lt;P&gt;383 FORMAT(" Start Time -- ",I2,":",I2,":",I2,".",I2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;! GENERATING THE TRUE PARAMETERS&lt;/P&gt;&lt;P&gt;CALL TRUE_PARAMS&lt;/P&gt;&lt;P&gt;! ************* Generating DATA **************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL LOAD_DATA(TRUEB_S,TRUESIGMA)&lt;/P&gt;&lt;P&gt;! ********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL GETDAT(IYR,IMON,IDAY)&lt;/P&gt;&lt;P&gt;CALL GETTIM(IHR,IMIN,ISEC,I100) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE (6,380)IYR,IMON,IDAY &lt;/P&gt;&lt;P&gt;WRITE (6,381)IHR,IMIN,ISEC,I100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;380 FORMAT(" End Date -- ",I4,":",I2,":",I2)&lt;/P&gt;&lt;P&gt;381 FORMAT(" End Time -- ",I2,":",I2,":",I2,".",I2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;! Close all the output files&lt;/P&gt;&lt;P&gt;CLOSE(21) &lt;/P&gt;&lt;P&gt;CLOSE(22)&lt;/P&gt;&lt;P&gt;END PROGRAM HBREG&lt;/P&gt;&lt;P&gt;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! &lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2010 01:02:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767798#M374</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-07T01:02:23Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767799#M375</link>
      <description>As you suggest, it would be useful to invoke the appropriate include files to permit argument checking for your lapack calls. &lt;BR /&gt;The lapack.f90 is set up for &lt;BR /&gt;USE lapack&lt;BR /&gt;while the .fi files are set up for include. You must choose one or the other.&lt;BR /&gt;With the absence of reasonable formatting and disregard for standard usage, it's difficult to scan your quoted source visually.&lt;BR /&gt;You haven't shown essential information such as whether you are in 32-bit mode, or in 64-bit mode, where you have a choice of either 32-bit integer arguments (lp64) or 64-bit (ilp64).&lt;BR /&gt;You would probably get more expert help on the MKL forum.</description>
      <pubDate>Sat, 07 Aug 2010 01:39:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767799#M375</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-08-07T01:39:01Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767800#M376</link>
      <description>Your code calls the F77 routines DPOTRF and DPOTRI, which must be called with all their parameters (Fortran 77 did not have OPTIONAL arguments).&lt;BR /&gt;&lt;BR /&gt;For example, in your code, the call to the factorization routine should be&lt;BR /&gt;&lt;BR /&gt;CALL dpotrf('U',np,TRUELAMBDAINV,np,info)&lt;BR /&gt;&lt;BR /&gt;Alternatively, you may use the Fortran 9X interfaces in LAPACK95, in which case the call should be &lt;BR /&gt;&lt;BR /&gt;call potrf(TRUELAMBDAINV)&lt;BR /&gt;&lt;BR /&gt;Furthermore, since you did not &lt;BR /&gt;&lt;BR /&gt;USE f95_lapack&lt;BR /&gt;&lt;BR /&gt;which would have provided the compiler with the interfaces for DPOTRF and DPOTRI, you forced the compiler to use the Fortran-77 convention of "user is responsible for providing correct argument list". Had you included this statement, the compiler would have told you&lt;BR /&gt;&lt;BR /&gt;"error #6631: A non-optional actual argument must be present when invoking a procedure with an explicit interface. &lt;N&gt;&lt;BR /&gt;CALL dpotrf(TRUELAMBDAINV)"&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;It would benefit you greatly to understand about Fortran interfaces, modules, and the implications of USE versus those of INCLUDE.&lt;BR /&gt;&lt;BR /&gt;Next time you post code, please use the "syntax highlighter" tool (the icon with a diagonally placed pencil visible when you are creating a message).&lt;BR /&gt;&lt;/N&gt;</description>
      <pubDate>Sat, 07 Aug 2010 15:31:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767800#M376</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-07T15:31:15Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767801#M377</link>
      <description>Thanks for the input.&lt;BR /&gt;&lt;BR /&gt;I tried the USE f95_lapackstatementalong with a call to potrf(truelambdainv) but still get the following error&lt;BR /&gt;&lt;BR /&gt;C:\Allwork\PROJECTS\SML\FORTRAN\PROGRAMS\Test1.f90(123): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL95_LAPACK]&lt;BR /&gt;&lt;BR /&gt;Is theresome part of the documentation that clearly states the steps that one needs to go through in order to get Visual fortran compiler to go through? &lt;BR /&gt;&lt;BR /&gt;Also is there some place which clearly states what I need to do in terms of include files and so on that I must add in for it to work?&lt;BR /&gt;&lt;BR /&gt;Siddarth&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Aug 2010 22:40:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767801#M377</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-09T22:40:32Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767802#M378</link>
      <description>Depending on the version of MKL/Intel Fortran that you have installed, you may need to build the Lapack95 module and library files. Sources and a makefile for doing that are provided undern &lt;INSTALL directory=""&gt;\Compiler\11.1\065\mkl\interfaces. The resulting .mod and .lib files can be installed in different directories, and the directory information needs to be provided to the compiler, either through environment variables,r through command line or IDE options. This is a one-time setup needed to build and install Lapack95.&lt;BR /&gt;&lt;BR /&gt;Alternatively, you may use the F77 interface and call DPOTRF with all its arguments included.&lt;BR /&gt;&lt;BR /&gt;The User Guide does cover the topics you ask about. However, you will probably not find a sequence of instructions that can be mechanically followed, because every installation of Intel Fortran, Visual Studio and other tools can be slightly different.&lt;/INSTALL&gt;</description>
      <pubDate>Tue, 10 Aug 2010 01:39:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767802#M378</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-10T01:39:04Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767803#M379</link>
      <description>&lt;P&gt;I see the Makefile and the sources. How do I run it and create the .mod and .lib file?&lt;BR /&gt;&lt;BR /&gt;I also tried to use the F77 version of the command by &lt;BR /&gt;&lt;BR /&gt;a) Using the INCLUDE 'MKL_LAPACK.FI' in the main program (as mentioned in the manual)&lt;BR /&gt;b) Including the line call dpotrf( 'up', np, truelambdainv, np, info )&lt;BR /&gt;&lt;BR /&gt;However this gave a number of compiler errors including the following (there were 31 compiler errors). It looks like I am no closer to using these routines.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Siddarth&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;C:\PROGRA~2\Intel\Compiler\11.1\065\mkl\include\MKL_LAPACK.FI(31): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: * &lt;IDENTIFIER&gt;&lt;/IDENTIFIER&gt;&lt;/P&gt;&lt;P&gt;C:\PROGRA~2\Intel\Compiler\11.1\065\mkl\include\MKL_LAPACK.FI(32): error #5276: Unbalanced parentheses&lt;/P&gt;&lt;P&gt;C:\PROGRA~2\Intel\Compiler\11.1\065\mkl\include\MKL_LAPACK.FI(32): error #5082: Syntax error, found IDENTIFIER 'RWORK' when expecting one of: ( % : . = =&amp;gt;&lt;/P&gt;&lt;P&gt;C:\PROGRA~2\Intel\Compiler\11.1\065\mkl\include\MKL_LAPACK.FI(32): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: ( % . = =&amp;gt;&lt;/P&gt;&lt;P&gt;C:\PROGRA~2\Intel\Compiler\11.1\065\mkl\include\MKL_LAPACK.FI(63): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: * &lt;IDENTIFIER&gt;&lt;/IDENTIFIER&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2010 20:41:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767803#M379</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-10T20:41:34Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767804#M380</link>
      <description>You will get these types of error messages as a result of including a fixed format file (MKL_LAPACK.fi) in a free format file. You may either convert one of them into the format of the other or, if you are sure that the arguments are correct, leave out the INCLUDE statement altogether.</description>
      <pubDate>Wed, 11 Aug 2010 03:50:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767804#M380</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-11T03:50:41Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767805#M381</link>
      <description>How do I use the Make file to create the .mod files and use it within Visual Studio. I looked through the documentation carefully, and there doesn't seem to be any instructions about this. All I found is the following.....&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Siddarth&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;using lapack.f90 that includes improved interfaces. This file is used to generate the&lt;/P&gt;&lt;P&gt;module files lapack95.mod and f95_precision.mod. The module files&lt;/P&gt;&lt;P&gt;mkl95_lapack.mod and mkl95_precision.mod are also generated. See also the&lt;/P&gt;&lt;P&gt;section Fortran 95 interfaces and wrappers to LAPACK and BLAS of Intel MKL User's&lt;/P&gt;&lt;P&gt;Guide for details. The module files are used to process the FORTRAN use clauses&lt;/P&gt;&lt;P&gt;referencing the LAPACK interface: use lapack95 (or an equivalent use&lt;/P&gt;&lt;P&gt;mkl95_lapack) and use f95_precision (or an equivalent use mkl95_precision).&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Aug 2010 19:15:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767805#M381</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-12T19:15:05Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767806#M382</link>
      <description>Near the beginning of the makefile, there are given some examples of usage:&lt;BR /&gt;&lt;BR /&gt;## examples of using:&lt;BR /&gt;##&lt;BR /&gt;## nmake lib32 install_dir=lib95 - build by Intel Fortran Compiler (as default)&lt;BR /&gt;## for 32-bit applications, static linking&lt;BR /&gt;##&lt;BR /&gt;## nmake lib64 install_dir=lib95 - build by Intel Fortran Compiler (as default)&lt;BR /&gt;## for 64-bit applications - Intel Itanium, static linking&lt;BR /&gt;##&lt;BR /&gt;## nmake libem64t install_dir=lib95 - build by Intel Fortran Compiler (as default)&lt;BR /&gt;## for 32-bit with Intel EM64T applications - static linking&lt;BR /&gt;&lt;BR /&gt;Replace 'lib95' by the name of the directory where you want the library to be installed.</description>
      <pubDate>Thu, 12 Aug 2010 20:50:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767806#M382</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-12T20:50:16Z</dc:date>
    </item>
    <item>
      <title>It worked</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767807#M383</link>
      <description>&lt;P&gt;Thanks for your patience!&lt;BR /&gt;&lt;BR /&gt;Inoticed that the directory C:\Program Files (x86)\Intel\Compiler\11.1\065\mkl\include\em64t\lp64&lt;BR /&gt;&lt;BR /&gt;already contains blas95.mod, f95_precison.mod, lapack95.mod, mkl95_lapack.mod, mkl95_blas.mod, and mkl95_precision.mod&lt;BR /&gt;&lt;BR /&gt;I added this directory to the Additional Include Directories and then I was able to compile and run without error when I used the f77 version of the command.&lt;BR /&gt;&lt;BR /&gt;However, when I used thef90 version, i.e. CALL potrf(TRUELAMBDAINV). I get the following errors.&lt;BR /&gt;&lt;BR /&gt;Error 1 error LNK2019: unresolved external symbol DPOTRF_F95 referenced in function TRUE_PARAMS Test3.obj &lt;/P&gt;&lt;P&gt;Error 2 error LNK2019: unresolved external symbol DPOTRI_F95 referenced in function TRUE_PARAMS Test3.obj &lt;BR /&gt;&lt;BR /&gt;When I changed the above command to CALL DPOTRF(TRUELAMBDAINV) the linking error went away but I got an unhandled exception execution error.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2010 23:39:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767807#M383</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-12T23:39:03Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767808#M384</link>
      <description>The .mod files are required at compile time, so you need them in the include path (either in your environment, or -I directive for compiler). I don't know why the include path doesn't have them by default.&lt;BR /&gt;Adding them to link path won't have any effect.</description>
      <pubDate>Fri, 13 Aug 2010 00:26:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767808#M384</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-08-13T00:26:26Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767809#M385</link>
      <description>&lt;P&gt;Thanks for your patience!&lt;/P&gt;&lt;P&gt;I noticed that the directory C:\Program Files (x86)\Intel\Compiler\11.1\065\mkl\include\em64t\lp64&lt;/P&gt;&lt;P&gt;already contains blas95.mod, f95_precison.mod, lapack95.mod, mkl95_lapack.mod, mkl95_blas.mod, and mkl95_precision.mod&lt;/P&gt;&lt;P&gt;I added this directory to the Additional Include Directories and then I was able to compile and run without error when I used the f77 version of the command.&lt;/P&gt;&lt;P&gt;However, when I used the f90 version, i.e. CALL potrf(TRUELAMBDAINV). I get the following errors.&lt;/P&gt;&lt;P&gt;Error 1 error LNK2019: unresolved external symbol DPOTRF_F95 referenced in function TRUE_PARAMS Test3.obj &lt;/P&gt;&lt;P&gt;Error 2 error LNK2019: unresolved external symbol DPOTRI_F95 referenced in function TRUE_PARAMS Test3.obj &lt;/P&gt;&lt;P&gt;When I changed the above command to CALL DPOTRF(TRUELAMBDAINV) the linking error went away but I got an unhandled exception execution error.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2010 00:37:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767809#M385</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-13T00:37:27Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767810#M386</link>
      <description>You have, unfortunately, come full-circle and are repeating earlier errors.&lt;BR /&gt;&lt;BR /&gt;Here is working code that calls DPOTRF:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[fortran]program DPOTRFEX&lt;BR /&gt;!DEC$ OBJCOMMENT LIB:'mkl_intel_c_dll'&lt;BR /&gt;!DEC$ OBJCOMMENT LIB:'mkl_sequential_dll'&lt;BR /&gt;&lt;BR /&gt;IMPLICIT NONE&lt;BR /&gt;INTEGER, PARAMETER :: NP = 4&lt;BR /&gt;INTEGER :: INFO,I,J&lt;BR /&gt;REAL*8 :: LBD12(NP,NP), TRUELAMBDA(NP,NP), TRUELAMBDAINV(NP,NP)&lt;BR /&gt;DATA ((LBD12(I, J), J = 1,4), I = 1,4) / 5, 5, -1, 1, 0, 4, -2, 0, 0, 0, 3, 2, 0, 0,0, 1 /&lt;BR /&gt;&lt;BR /&gt;LBD12=LBD12/2.0D0&lt;BR /&gt;&lt;BR /&gt;TRUELAMBDA=MATMUL(TRANSPOSE(LBD12),LBD12)&lt;BR /&gt;&lt;BR /&gt;TRUELAMBDAINV=TRUELAMBDA&lt;BR /&gt;&lt;BR /&gt;CALL dpotrf('U',np,TRUELAMBDAINV,np,info)&lt;BR /&gt;write(*,10)((TRUELAMBDAINV(I,J),J=1,NP),I=1,NP)&lt;BR /&gt;10 format(1x,4ES15.7)&lt;BR /&gt;&lt;BR /&gt;end program DPOTRFEX[/fortran]&lt;/PRE&gt; Compiling:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]c:LANG&amp;gt;ifort dpot.f90&lt;BR /&gt;Intel Visual Fortran Compiler Professional for applications running on IA-32, Version 11.1    Build 2010041&lt;BR /&gt;4 Package ID: w_cprof_p_11.1.065&lt;BR /&gt;Copyright (C) 1985-2010 Intel Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;Microsoft  Incremental Linker Version 9.00.30729.01&lt;BR /&gt;Copyright (C) Microsoft Corporation.  All rights reserved.&lt;BR /&gt;&lt;BR /&gt;-out:dpot.exe&lt;BR /&gt;-subsystem:console&lt;BR /&gt;dpot.obj[/bash]&lt;/PRE&gt; Running:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]c:LANG&amp;gt;dpot&lt;BR /&gt;   2.5000000E+00  2.5000000E+00 -5.0000000E-01  5.0000000E-01&lt;BR /&gt;   6.2500000E+00  2.0000000E+00 -1.0000000E+00  0.0000000E+00&lt;BR /&gt;  -1.2500000E+00 -3.2500000E+00  1.5000000E+00  1.0000000E+00&lt;BR /&gt;   1.2500000E+00  1.2500000E+00  1.2500000E+00  5.0000000E-01[/bash]&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Aug 2010 03:46:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767810#M386</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-13T03:46:00Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767811#M387</link>
      <description>As I said previously, the F77 version of the code did work for me. &lt;BR /&gt;&lt;BR /&gt;My question was abouthow to make the f95 call work. Inour previous correspondencewe haddiscussed CALLpotrf(TRUELAMBDAINV). &lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Aug 2010 04:32:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767811#M387</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-13T04:32:19Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767812#M388</link>
      <description>To call the generic subroutine POTRF, add &lt;BR /&gt;&lt;BR /&gt; USE lapack95&lt;BR /&gt;&lt;BR /&gt;and link to lapack95.lib in addition to the other libraries.&lt;BR /&gt;&lt;BR /&gt;Please read the documentation.</description>
      <pubDate>Fri, 13 Aug 2010 15:19:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767812#M388</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-13T15:19:36Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767813#M389</link>
      <description>&lt;PRE&gt;[bash]&lt;PRE name="code" class="sectionBodyText"&gt;That's what I had done (I've pasted the subroutine below) But I get the following build errors&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error 1 error LNK2019: unresolved external symbol DPOTRF_F95 referenced in function TRUE_PARAMS Test3.obj &lt;/P&gt;&lt;P&gt;Error 2 error LNK2019: unresolved external symbol DPOTRI_F95 referenced in function TRUE_PARAMS Test3.obj &lt;/P&gt;&lt;P&gt;Error 3 fatal error LNK1120: 2 unresolved externals x64SimpleConsole1.exe &lt;/P&gt;&lt;BR /&gt;By the way I am linking to the lapack95.lib is by including the following directory in the Additional Include Directories under&lt;BR /&gt;the Fortran General tab. This directory contains lapack95.mod (as well as the others).&lt;BR /&gt;&lt;BR /&gt;C:Program Files (x86)IntelCompiler11.1&amp;#0;65mklincludeem64tlp64;&lt;BR /&gt;Is there something else I need to do? Thanks!&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SUBROUTINE TRUE_PARAMS&lt;/P&gt;&lt;P&gt;USE SETTINGS&lt;/P&gt;&lt;P&gt;USE PARS&lt;/P&gt;&lt;P&gt;USE MKL_VSL_TYPE&lt;/P&gt;&lt;P&gt;USE MKL_VSL&lt;/P&gt;&lt;P&gt;USE LAPACK95&lt;/P&gt;&lt;P&gt;!USE MKL95_LAPACK&lt;/P&gt;&lt;P&gt;USE F95_PRECISION&lt;/P&gt;&lt;P&gt;!USE MKL95_PRECISION&lt;/P&gt;&lt;P&gt;IMPLICIT NONE&lt;/P&gt;&lt;P&gt;REAL*8 :: LBD12(NP,NP),RDRAW(NP),R(NP,1),TEMP(NP,1)&lt;/P&gt;&lt;P&gt;INTEGER :: I, J&lt;/P&gt;&lt;P&gt;INTEGER :: mstorage, info&lt;/P&gt;&lt;P&gt;TYPE (VSL_STREAM_STATE) :: stream&lt;/P&gt;&lt;P&gt;integer(kind=4) errcode&lt;/P&gt;&lt;P&gt;integer brng,method,seed,n&lt;/P&gt;&lt;P&gt;brng=VSL_BRNG_MT19937&lt;/P&gt;&lt;P&gt;method=VSL_METHOD_DGAUSSIAN_ICDF&lt;/P&gt;&lt;P&gt;seed=777&lt;/P&gt;&lt;P&gt;mstorage=VSL_MATRIX_STORAGE_FULL&lt;/P&gt;&lt;P&gt;DATA ((LBD12(I, J), J = 1,4), I = 1,4) / 5, 5, -1, 1, 0, 4, -2, 0, 0, 0, 3, 2, 0, 0,0, 1 / &lt;/P&gt;&lt;P&gt;LBD12=LBD12/2.0D0&lt;/P&gt;&lt;P&gt;TRUELAMBDA=MATMUL(TRANSPOSE(LBD12),LBD12)&lt;/P&gt;&lt;P&gt;TRUELAMBDAINV=TRUELAMBDA&lt;/P&gt;&lt;P&gt;!call dpotrf( 'up', np, truelambdainv, np, info )&lt;/P&gt;&lt;P&gt;CALL potrf(TRUELAMBDAINV)&lt;/P&gt;&lt;P&gt;!call dpotri( 'up', np, truelambdainv, np, info )&lt;/P&gt;&lt;P&gt;CALL potri(TRUELAMBDAINV)&lt;/P&gt;&lt;P&gt;END SUBROUTINE TRUE_PARAMS&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[/bash]&lt;/PRE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 Aug 2010 20:44:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767813#M389</guid>
      <dc:creator>ssiddarth</dc:creator>
      <dc:date>2010-08-13T20:44:06Z</dc:date>
    </item>
    <item>
      <title>Problem in trying to use LAPACK routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767814#M390</link>
      <description>You must also tell the linker to use lapack95.lib .</description>
      <pubDate>Fri, 13 Aug 2010 21:20:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-in-trying-to-use-LAPACK-routines/m-p/767814#M390</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2010-08-13T21:20:51Z</dc:date>
    </item>
  </channel>
</rss>

