<?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 using CLAPACK in mkl in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831497#M5646</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I recently installed shifted my code to the intel compiler. &lt;BR /&gt;I have been using the clapack routines as provided in the ATLAS BLAS library and i am also using clapack for BLAS operations like ddot, daxpy, dnrm2 etc.&lt;BR /&gt;&lt;BR /&gt;My code does not seem to compile correctly. i get undefined references fro all my clapack calls&lt;BR /&gt;clapack_dpotrs, clapack_dpotrf, clapack_daxpy clapack_ddot clapack_dnrm2. all of them are flagged as undefined references&lt;BR /&gt;&lt;BR /&gt;I am including mkl.h and mkl_lapack.h (i couldn't find mkl_lapacke.h as suggested in the documentation)&lt;BR /&gt;&lt;BR /&gt;the library component of my linkline looks like the following. whereINLIB2 is the path&lt;BR /&gt;opt/intel/Compiler/11.1/073/mkl/lib/em64t/&lt;BR /&gt;&lt;BR /&gt;-Wl,--start-group -L$(INLIB2)/mkl_c.lib -L$(INLIB)/libmkl_intel_ilp64.a -L$(INLIB2)/libmkl_sequential.a -L$(INLIB2)/libmkl_core.a -Wl,--end-group -lpthread&lt;BR /&gt;&lt;BR /&gt;I was earlier using ATLAS. My code development environment is for linux 64 bit environment. I am running the code on a Xeon machine.&lt;BR /&gt;&lt;BR /&gt;I would really appreciate if someone could guide me where am i going wrong. I must mention the reason i am using clapack is that i cam coding in C and i wish to stay with the row major convention of storing the matrices.&lt;BR /&gt;&lt;BR /&gt;thanks for reading my query&lt;BR /&gt;&lt;BR /&gt;rohit</description>
    <pubDate>Mon, 02 May 2011 11:24:11 GMT</pubDate>
    <dc:creator>itabhiyanta</dc:creator>
    <dc:date>2011-05-02T11:24:11Z</dc:date>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831497#M5646</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I recently installed shifted my code to the intel compiler. &lt;BR /&gt;I have been using the clapack routines as provided in the ATLAS BLAS library and i am also using clapack for BLAS operations like ddot, daxpy, dnrm2 etc.&lt;BR /&gt;&lt;BR /&gt;My code does not seem to compile correctly. i get undefined references fro all my clapack calls&lt;BR /&gt;clapack_dpotrs, clapack_dpotrf, clapack_daxpy clapack_ddot clapack_dnrm2. all of them are flagged as undefined references&lt;BR /&gt;&lt;BR /&gt;I am including mkl.h and mkl_lapack.h (i couldn't find mkl_lapacke.h as suggested in the documentation)&lt;BR /&gt;&lt;BR /&gt;the library component of my linkline looks like the following. whereINLIB2 is the path&lt;BR /&gt;opt/intel/Compiler/11.1/073/mkl/lib/em64t/&lt;BR /&gt;&lt;BR /&gt;-Wl,--start-group -L$(INLIB2)/mkl_c.lib -L$(INLIB)/libmkl_intel_ilp64.a -L$(INLIB2)/libmkl_sequential.a -L$(INLIB2)/libmkl_core.a -Wl,--end-group -lpthread&lt;BR /&gt;&lt;BR /&gt;I was earlier using ATLAS. My code development environment is for linux 64 bit environment. I am running the code on a Xeon machine.&lt;BR /&gt;&lt;BR /&gt;I would really appreciate if someone could guide me where am i going wrong. I must mention the reason i am using clapack is that i cam coding in C and i wish to stay with the row major convention of storing the matrices.&lt;BR /&gt;&lt;BR /&gt;thanks for reading my query&lt;BR /&gt;&lt;BR /&gt;rohit</description>
      <pubDate>Mon, 02 May 2011 11:24:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831497#M5646</guid>
      <dc:creator>itabhiyanta</dc:creator>
      <dc:date>2011-05-02T11:24:11Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831498#M5647</link>
      <description>The C_Lapack interfaces were not delivered with the 11.1 compilers. You can use the Fortran 77 interfaces, or download the C_Lapack source form Netlib and build the interface library. &lt;BR /&gt;&lt;BR /&gt;A better alternative is the LapackE interface, which you can download and build likewise; one advantage of LapackE over C_Lapack is that the former is now integrated into MKL in version 12.0 of the compiler (10.3 is the MKL version).&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2011 12:55:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831498#M5647</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-05-02T12:55:06Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831499#M5648</link>
      <description>Hi mecej4&lt;BR /&gt;&lt;BR /&gt;thanks for your quick reply. so if i download the new version of the compiler (under the non-commercial section of intel's site) and the MKL and build both of them and then use the same link line as i had pasted in my original question it should ideally work right?&lt;BR /&gt;&lt;BR /&gt;the other solution you suggest would mean one more library (which i compile against icc) which results from the compilation of the clapack source at netlib right?&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;rohit</description>
      <pubDate>Mon, 02 May 2011 13:35:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831499#M5648</guid>
      <dc:creator>itabhiyanta</dc:creator>
      <dc:date>2011-05-02T13:35:11Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831500#M5649</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;actually my cblas interface is also not working&lt;BR /&gt;&lt;BR /&gt;host_deflakernel.c_o: In function `calculate_Ptx':&lt;BR /&gt;host_deflakernel.c:(.text+0x11a2): undefined reference to `clapack_dpotrs'&lt;BR /&gt;wrapper.c_o: In function `hostcall':&lt;BR /&gt;wrapper.c:(.text+0x5bf): undefined reference to `cblas_dnrm2'&lt;BR /&gt;wrapper.c:(.text+0x627): undefined reference to `cblas_dnrm2'&lt;BR /&gt;slave_DPCG.c_o: In function `slaveDPCG':&lt;BR /&gt;slave_DPCG.c:(.text+0x7a8): undefined reference to `cblas_dcopy'&lt;BR /&gt;slave_DPCG.c:(.text+0x7d0): undefined reference to `cblas_daxpy'&lt;BR /&gt;slave_DPCG.c:(.text+0x7f0): undefined reference to `cblas_dcopy'&lt;BR /&gt;slave_DPCG.c:(.text+0x815): undefined reference to `cblas_dcopy'&lt;BR /&gt;slave_DPCG.c:(.text+0x9e1): undefined reference to `cblas_daxpy'&lt;BR /&gt;slave_DPCG.c:(.text+0xe4a): undefined reference to `cblas_dcopy'&lt;BR /&gt;host_cgkernel.c_o: In function `seq_cgsolver':&lt;BR /&gt;host_cgkernel.c:(.text+0xaf8): undefined reference to `cblas_dcopy'&lt;BR /&gt;host_cgkernel.c:(.text+0xb1e): undefined reference to `cblas_daxpy'&lt;BR /&gt;host_cgkernel.c:(.text+0xb3c): undefined reference to `cblas_dcopy'&lt;BR /&gt;host_cgkernel.c:(.text+0xb5a): undefined reference to `cblas_dcopy'&lt;BR /&gt;host_cgkernel.c:(.text+0xc70): undefined reference to `CLAPACK_dpotrf'&lt;BR /&gt;host_cgkernel.c:(.text+0xca1): undefined reference to `CLAPACK_dpotrs'&lt;BR /&gt;host_cgkernel.c:(.text+0xdcd): undefined reference to `cblas_daxpy'&lt;BR /&gt;host_cgkernel.c:(.text+0x10d3): undefined reference to `cblas_dnrm2'&lt;BR /&gt;host_cgkernel.c:(.text+0x19eb): undefined reference to `clapack_dpotrs'&lt;BR /&gt;host_cgkernel.c_o: In function `solverhost':&lt;BR /&gt;host_cgkernel.c:(.text+0x3888): undefined reference to `cblas_dcopy'&lt;BR /&gt;host_cgkernel.c:(.text+0x38ae): undefined reference to `cblas_daxpy'&lt;BR /&gt;host_cgkernel.c:(.text+0x38cc): undefined reference to `cblas_dcopy'&lt;BR /&gt;host_cgkernel.c:(.text+0x38ea): undefined reference to `cblas_dcopy'&lt;BR /&gt;host_cgkernel.c:(.text+0x3a00): undefined reference to `CLAPACK_dpotrf'&lt;BR /&gt;host_cgkernel.c:(.text+0x3a31): undefined reference to `CLAPACK_dpotrs'&lt;BR /&gt;host_cgkernel.c:(.text+0x3b5d): undefined reference to `cblas_daxpy'&lt;BR /&gt;host_cgkernel.c:(.text+0x3e63): undefined reference to `cblas_dnrm2'&lt;BR /&gt;host_cgkernel.c:(.text+0x477b): undefined reference to `clapack_dpotrs'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i ma using compiler version 11.1 and mkl version is 10.3 on a linux system (64 bit).&lt;BR /&gt;&lt;BR /&gt;i am using the following link line library setting&lt;BR /&gt;-L/opt/intel/Compiler/11.1/073/mkl/lib/em64t//libmkl_blas95_ilp64.a -L/opt/intel/Compiler/11.1/073/mkl/lib/em64t//libmkl_lapack95_ilp64.a -L/libmkl_intel_ilp64.a -L/opt/intel/Compiler/11.1/073/mkl/lib/em64t/libmkl_sequential.a -L/opt/intel/Compiler/11.1/073/mkl/lib/em64t//libmkl_core.a -lpthread -lm&lt;BR /&gt;&lt;BR /&gt;please suggest/advise.&lt;BR /&gt;&lt;BR /&gt;rohit</description>
      <pubDate>Mon, 02 May 2011 14:19:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831500#M5649</guid>
      <dc:creator>itabhiyanta</dc:creator>
      <dc:date>2011-05-02T14:19:25Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831501#M5650</link>
      <description>Since you are confused about the meaning of -L library path designations for linking, please compare with the recommendations of the link advisor posted at the top of this forum. You don't need -lpthread to support mkl_sequential. Remember that your use of ilp64 libraries corresponds with long int function parameters and corresponding headers (the headers with int data types won't be compatible).&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2011 14:44:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831501#M5650</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-05-02T14:44:14Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831502#M5651</link>
      <description>Basically, you've inserted -L directives where they aren't wanted. Where it's used, -L has to point to a directory, to be used in combination with -lsomelib, which (in the case of MKL) would expand to libsomelib.so, so it could be used for dynamic linking.</description>
      <pubDate>Mon, 02 May 2011 15:37:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831502#M5651</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-05-02T15:37:48Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831503#M5652</link>
      <description>You undertook some steps between #2 and #3 without taking us into your confidence. I can guess what happened, however:&lt;BR /&gt;&lt;BR /&gt; 1. You did not use the Link Advisor properly, as TimP already pointed out. You must read the documentation and understand the &lt;B&gt;-L&lt;/B&gt; and &lt;B&gt;-l &lt;/B&gt;options of compilers (which pass these options to the linker, &lt;B&gt;ld&lt;/B&gt; ).&lt;BR /&gt;&lt;BR /&gt; 2. You are including irrelevant libraries such as libmkl_lapack95...&lt;BR /&gt;&lt;BR /&gt; 3. If you built, say, libclapack.a, you needed to add the option -lclapack to the recommended link line from the MKL Link Advisor, since the Advisor does not know about the need for third party libraries.&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2011 16:27:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831503#M5652</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-05-02T16:27:01Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831504#M5653</link>
      <description>hi mecej4&lt;BR /&gt;&lt;BR /&gt;indeed i didn't understand it correctly. i corrected that however i still have a issue. let me start by telling what are the steps i took.&lt;BR /&gt;&lt;BR /&gt;SO i downloaded clapack&lt;BR /&gt;passed to it the path of the BLAS library from intel and compiled using icc.&lt;BR /&gt;/opt/intel/Compiler/11.1/073/mkl/lib/em64t/libmkl_blas95_ilp64.a&lt;BR /&gt;&lt;BR /&gt;that generated a lapack_LINUX.a&lt;BR /&gt;&lt;BR /&gt;i added this to the corrected link line from the link advisor as follows&lt;BR /&gt;&lt;BR /&gt;-L/opt/intel/Compiler/11.1/073/mkl/lib/intel64 -Wl,--start-group -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -Wl,--end-group ../CLAPACK-3.2.1/lapack_LINUX.a -lm -L.&lt;BR /&gt;&lt;BR /&gt;however when i run the code which calls dpotrf i get the following error&lt;BR /&gt;mpi_CPU_all:28458 terminated with signal 11 at PC=2aaabab89516 SP=7fff7240e2d0. Backtrace:&lt;BR /&gt;/opt/intel/Compiler/11.1/073/mkl/lib/em64t/libmkl_mc.so(mkl_lapack_ps_dpotrf_u_small+0x246)[0x2aaabab89516]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my call looks like this&lt;BR /&gt;dpotrf_( &amp;amp;upper, &amp;amp;numdomains, E, &amp;amp;numdomains, &amp;amp;info);&lt;BR /&gt;&lt;BR /&gt;upper is a charatcer = 'U', info is an integer, numdomains is an integer and E is a array of doubles.&lt;BR /&gt;&lt;BR /&gt;am i still doing something wrong in compilation? if not then why is the mkl_lapack_ps_dpotrf failing?&lt;BR /&gt;&lt;BR /&gt;rohit&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2011 11:38:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831504#M5653</guid>
      <dc:creator>itabhiyanta</dc:creator>
      <dc:date>2011-05-03T11:38:38Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831505#M5654</link>
      <description>use&amp;gt; &lt;I&gt;/opt/intel/Compiler/11.1/073/mkl/lib/em64t/libmkl_blas95_ilp64.a&lt;BR /&gt;&lt;BR /&gt;&lt;/I&gt;This library is relevant only if you are using Fortran 9+. For C/C++programs calling MKL, it is completely useless.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; &lt;I&gt;dpotrf_( &amp;amp;upper, &amp;amp;numdomains, E, &amp;amp;numdomains, &amp;amp;info);&lt;/I&gt; ... and E is a array of doubles&lt;BR /&gt;&lt;BR /&gt;You built C-lapack, and specified it in the link line, but your code still calls only the Fortran 77 routines. You must try harder to understand what you are doing.&lt;BR /&gt;&lt;BR /&gt;E is supposed to be a 2-D array, in column-major order. You have not shown how E was declared, allocated and initialized.&lt;BR /&gt;&lt;BR /&gt;You must read the MKL documentation and understand how to pass matrix arguments from C to Fortran. Failure to do so will cause all sorts of mysterious run-time errors such as seg-faults, array overruns, using uninitialized data, etc.&lt;BR /&gt;&lt;BR /&gt;Alternatively, you could use the C-lapack or Lapack-E interfaces. Doing either will still involve reading the corresponding documentation and issuing correct calls.</description>
      <pubDate>Tue, 03 May 2011 12:51:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831505#M5654</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-05-03T12:51:04Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831506#M5655</link>
      <description>Hi mecej4&lt;BR /&gt;&lt;BR /&gt;I have tried to read through the documentation. For my version of the compiler 11.1 and nkl 10.3. when i look at the Intel MKL function for the dpotrs and dpotrf function they mention to include&lt;BR /&gt;mkl_lapacke.h file. I do not have that in my installation (rather the servers' installation).So i had downloaded CLAPACK since earlier i was working with ATLAS and then the integration of clapack_dpotrs and clapack_dpotrf was without any such problems or hassle.&lt;BR /&gt;&lt;BR /&gt;I understand that i might have initially given you the impression that i do not even know how to link against libraries. That was due to the way i wrote here on the forum and i can apologize for that again.&lt;BR /&gt;&lt;BR /&gt;I need your help to fix this issue so i state it again.&lt;BR /&gt;&lt;BR /&gt;ON A BROAD LEVEL&lt;BR /&gt;I am trying to use CLAPACK becuase i have C code. I want to now use Intel C compiler with Intel MKL and want to stay with the row-major format of calling routines.&lt;BR /&gt;&lt;BR /&gt;ON THE FUNCTION LEVEL&lt;BR /&gt;I use cblas_dcopy, cblas_ddot etc. also from the clapack interface&lt;BR /&gt;The matrix E that i pass to dpotrf is a symetric square matrix stored in row major order. I first call dpotrf and then call dpotrs to get a result.&lt;BR /&gt;&lt;BR /&gt;Later on i use the result that dpotrf produces in matrix E to call dpotrs repeatedly.&lt;BR /&gt;--------------------&lt;BR /&gt;I want to know&lt;BR /&gt;&lt;BR /&gt;what files to include other than mkl.h to get the definition of this clapack routines which accept C interface. My understanding from the README at the netlib clapack project says it is dpotrf_ with arguments passed by reference (http://www.netlib.org/clapack/readme)&lt;BR /&gt;&lt;BR /&gt;What i did.&lt;BR /&gt;&lt;BR /&gt;I used the following link line (i am using MPI also so there are four slaves and 1 master for example and dpotrf and rs are called by the master)&lt;BR /&gt;LIB :=-L$(MKLROOT)/lib/intel64 -Wl,--start-group -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -openmp -lpthread -L$(CLAPCK_PATH)/my_clapack_library&lt;BR /&gt;&lt;BR /&gt;You had suggested that i should provide the clapack libarary in this link line so i used that too. However like i had mentioned in the previous mail for a problem size of 1 million unknowns (i am writing out the code for conjugate gradient) i see this error about the segmentation fault.&lt;BR /&gt;&lt;BR /&gt;I understand that the wrapper library just uses the BLAS routines from the Intel MKL and then one can use the routines from the CLAPACK implmentation and pass them arguments in C-style(row-major).&lt;BR /&gt;&lt;BR /&gt;I request you to point out where all have i gone wrong.&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;&lt;BR /&gt;rohit</description>
      <pubDate>Tue, 17 May 2011 18:51:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831506#M5655</guid>
      <dc:creator>itabhiyanta</dc:creator>
      <dc:date>2011-05-17T18:51:23Z</dc:date>
    </item>
    <item>
      <title>using CLAPACK in mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831507#M5656</link>
      <description>Most of the advice given in this thread has gone unheeded, so let's try a different approach. Here is a small example of using the F77 interface to MKL from a C caller. There is no need to use CLapack or any library that is not already provided with Intel C 11.1 and MKL 10.2.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[cpp]#include &lt;STDIO.H&gt;
#include &lt;MKL.H&gt;
#include &lt;MKL_LAPACK.H&gt;

int main(int argc,char *argv[]){
double A[3*3]={  2.0, -1.0,  0.0,
                 0.0,  2.0, -1.0,
                 0.0,  0.0,  2.0},
         b[3]={1.0,2.0,3.0};

int n=3,info,nrhs=1; char uplo='L';

dpotrf_(&amp;amp;uplo,&amp;amp;n,A,&amp;amp;n,&amp;amp;info);
dpotrs_(&amp;amp;uplo,&amp;amp;n,&amp;amp;nrhs,A,&amp;amp;n,b,&amp;amp;n,&amp;amp;info);
printf("Solution: %10.4f %10.4f %10.4fn",b[0],b[1],b[2]);
}
[/cpp]&lt;/MKL_LAPACK.H&gt;&lt;/MKL.H&gt;&lt;/STDIO.H&gt;&lt;/PRE&gt; Since only the lower triangle of A is used, I have used zeroes to initialize the upper triangle.&lt;BR /&gt;&lt;BR /&gt;Compile and run:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;[bash]$ icc -mkl dpotrx.c
$ ./a.out
Solution:     2.5000     4.0000     3.5000
[/bash]&lt;/PRE&gt; &lt;BR /&gt;</description>
      <pubDate>Wed, 18 May 2011 01:53:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/using-CLAPACK-in-mkl/m-p/831507#M5656</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-05-18T01:53:43Z</dc:date>
    </item>
  </channel>
</rss>

