<?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 Sure, no problem! Enjoy your in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096157#M23587</link>
    <description>&lt;P&gt;Sure, no problem! Enjoy your vacation.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2016 07:27:55 GMT</pubDate>
    <dc:creator>Gerardo_G_</dc:creator>
    <dc:date>2016-06-13T07:27:55Z</dc:date>
    <item>
      <title>MKL license</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096151#M23581</link>
      <description>&lt;P&gt;I've got academic license for MKL, but we produce also commercial software in witch I would like to use MKL&amp;nbsp;(only Redistributions). Can I use it free or must pay for additional license? If&amp;nbsp;the&amp;nbsp;last, can&amp;nbsp;I buy only Redistributions​, cause I don't need your compilers (I use Delphi)?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 15:04:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096151#M23581</guid>
      <dc:creator>Sergey_F_1</dc:creator>
      <dc:date>2016-04-19T15:04:27Z</dc:date>
    </item>
    <item>
      <title>Sergey, in this case you have</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096152#M23582</link>
      <description>&lt;P&gt;Sergey, in this case you have to purchase the commercial license. I will joint you with our business development manager via separate email to give your some steps you need to do.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2016 08:28:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096152#M23582</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2016-04-22T08:28:29Z</dc:date>
    </item>
    <item>
      <title>Hi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096153#M23583</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I know this is out of the post’s scope but I noticed you (the original poster) are using Delphi. I’ve been trying to link a simple console application to the MKL SDL but I haven’t managed to succeed yet (I’m not an expert on Delphi). Anyway, I’m trying to use MKL PARDISO but I don’t get any results, the output vector is not modified after calling the function. In my limited experience, I believe there must be a problem in the way I’m loading the function from the SDL. Below I have included the code I’m using to declare the function and also part of the console application code (I’ve left a lot of stuff out just to save space). In this example if I don’t initialize “x”, I get all zeros but if I do, the vector is not changed. Any help will be much appreciated (sorry to post this here but other delphi related posts are over 5 years old and I don't know if it's worth to create a new post just for this).&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;unit IntelMKL;

interface

uses
  Windows,
  Wintypes,
  WinProcs,
  SysUtils,
  Classes;


function PARDISO(var pt:array of Pointer; var maxfct, mnum, mtype, phase, n:Integer; var a:array of Double; var ia,ja:array of Integer; var perm, nrhs:Integer; var iparm:array of Integer; var msglvl:Integer; var b: Array of Double; var x: Array of Double; var error:Integer): Pointer; stdcall; external 'mkl_rt.dll' name 'PARDISO';
function MKL_Set_Num_Threads_Local(nt: Integer): Integer; stdcall; external 'mkl_rt.dll' name 'MKL_Set_Num_Threads_Local';
function MKL_Set_Num_Threads(nt: Integer): Pointer; stdcall; external 'mkl_rt.dll' name 'MKL_Set_Num_Threads';
function MKL_Set_Dynamic(nt: Integer): Pointer; stdcall; external 'mkl_rt.dll' name 'MKL_Set_Dynamic';

implementation


end.&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;var
 a,b,x,ddum: array of Double;
 ia,ja,iparm: array of Integer;
 pt : array of Pointer;
 n, mtype, nrhs, maxfct, mnum, phase, error, msglvl, idum, i, nthreads, dynthreads: Integer;
 
begin

  setLength(a,18);
  setLength(ja,18);
  setLength(ia,9);
  setLength(b,8);
  setLength(x,8);
  setLength(ddum,1);
  setLength(pt,64);
  setLength(iparm,64);
 
  phase := 13;
  PARDISO(pt, maxfct, mnum, mtype, phase, n, a, ia, ja, idum, nrhs, iparm, msglvl, b, x, error);
  
  for i := 1 to n do
      Writeln('x['+IntToStr(i-1)+'] ='+FloatToStr(x[i-1])); 
 
end&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Gerardo&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 13:43:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096153#M23583</guid>
      <dc:creator>Gerardo_G_</dc:creator>
      <dc:date>2016-06-09T13:43:36Z</dc:date>
    </item>
    <item>
      <title>Hello!</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096154#M23584</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;
	I have used only simple LAPACK functions of 1-3 level. All of them work fine exclude ones with wml extension (now I try to solve the problem). If you are interested in this point I can send you&amp;nbsp;some examples.&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 07:33:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096154#M23584</guid>
      <dc:creator>Sergey_F_1</dc:creator>
      <dc:date>2016-06-10T07:33:39Z</dc:date>
    </item>
    <item>
      <title>It would be nice if you could</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096155#M23585</link>
      <description>&lt;P&gt;It would be nice if you could send me your examples. I've been trying other stuff, like defining all function parameters as pointers (I saw someone do it in an example) but haven't made any progress. Thanks in advance for your help!&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 10:37:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096155#M23585</guid>
      <dc:creator>Gerardo_G_</dc:creator>
      <dc:date>2016-06-10T10:37:56Z</dc:date>
    </item>
    <item>
      <title>Not earlier then on Tuesday</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096156#M23586</link>
      <description>&lt;P&gt;Not earlier then on Tuesday (little vacation).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 21:43:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096156#M23586</guid>
      <dc:creator>Sergey_F_1</dc:creator>
      <dc:date>2016-06-10T21:43:13Z</dc:date>
    </item>
    <item>
      <title>Sure, no problem! Enjoy your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096157#M23587</link>
      <description>&lt;P&gt;Sure, no problem! Enjoy your vacation.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 07:27:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096157#M23587</guid>
      <dc:creator>Gerardo_G_</dc:creator>
      <dc:date>2016-06-13T07:27:55Z</dc:date>
    </item>
    <item>
      <title>If You need more examples,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096158#M23588</link>
      <description>&lt;DIV&gt;
	&lt;PRE class="brush:csharp;"&gt;//If You need more examples, please let me now.

unit MKL1;

interface

const IntelDLL = 'mkl_intel_thread.DLL' ;

procedure saxpy(var n:int64; var alpha:single; var x:single; var incx:int64; var y:single; var incy:int64); CDecl ;

implementation

procedure saxpy ; CDecl ; external IntelDLL name 'mkl_blas_saxpy' ;


//Test: multiplication of array by 10.
//&amp;nbsp;Tested for 64-bit applications;
//&amp;nbsp;for 32-bit's you should somewhere use "integer" type instead of "int64" (change if doesn't work).
//&amp;nbsp;For both it's possible to use conditional compilation with symbol "win64"

&amp;nbsp; var
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i,N,incx:int64;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X:single;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A,Y:array[1..100] of single;
&amp;nbsp; begin
&amp;nbsp; N:=100; incx:=1;
&amp;nbsp; for i:=1 to N do A&lt;I&gt;:=i; X:=10;

&amp;nbsp; saxpy(N,X,A[1],incx,Y[1],incx);

&amp;nbsp; end.&lt;/I&gt;&lt;/PRE&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Jun 2016 08:04:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096158#M23588</guid>
      <dc:creator>Sergey_F_1</dc:creator>
      <dc:date>2016-06-14T08:04:08Z</dc:date>
    </item>
    <item>
      <title>Thanks for the example! I</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096159#M23589</link>
      <description>&lt;P&gt;Thanks for the example! I managed to make mine work based on yours. Thanks again, you are a real lifesaver.&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:48:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096159#M23589</guid>
      <dc:creator>Gerardo_G_</dc:creator>
      <dc:date>2016-06-14T13:48:57Z</dc:date>
    </item>
    <item>
      <title>I'm very glad to help you :)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096160#M23590</link>
      <description>&lt;P&gt;I'm very glad to help you :)&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 18:47:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-license/m-p/1096160#M23590</guid>
      <dc:creator>Sergey_F_1</dc:creator>
      <dc:date>2016-06-14T18:47:54Z</dc:date>
    </item>
  </channel>
</rss>

