<?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 Hi Bo, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938400#M14291</link>
    <description>&lt;P&gt;Hi Bo,&lt;/P&gt;

&lt;P&gt;We had some example for how to call MKL function in C#.&amp;nbsp; You may download the Intel_MKL_C#_Examples.zip from&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and try them to see if you can run them first.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2017 01:13:48 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2017-06-29T01:13:48Z</dc:date>
    <item>
      <title>Coding error?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938397#M14288</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;I'm trying to use MKL in my C# project.&lt;BR /&gt;&lt;BR /&gt;But I get an exception even in such a simple function as dgetrf.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In this example I want to factorize matrix {(2,0),(0,1)}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[DllImport("C:\IA32\bin\mkl_lapack64.dll" )]&lt;BR /&gt;&lt;BR /&gt;static extern int dgetrf(ref int m,ref int n, ref double[] a,ref int lda,ref int[] ipiv,ref int info);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;private void button1_Click(object sender, EventArgs e)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;double[] a = (double[])Array.CreateInstance(typeof(double),4);&lt;BR /&gt;&lt;BR /&gt;a[0] = 2;&lt;BR /&gt;&lt;BR /&gt;a[1] = 0;&lt;BR /&gt;&lt;BR /&gt;a[2] = 0;&lt;BR /&gt;&lt;BR /&gt;a[3] = 1;&lt;BR /&gt;&lt;BR /&gt;int[] ipiv=(int[])Array.CreateInstance(typeof(int),2);&lt;BR /&gt;&lt;BR /&gt;int info=0;&lt;BR /&gt;&lt;BR /&gt;int m=2,n=2;&lt;BR /&gt;&lt;BR /&gt;int lda =2;&lt;BR /&gt;&lt;BR /&gt;dgetrf(ref m,ref n,ref a,ref lda,ref ipiv, ref info);&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The exception is 'System.AccessViolationException'.Attempted to read or write protected memory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Possibly you could tell me where I'm mistaken.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if I set lda=1 I don't get the exception but info returns -4.&lt;P&gt;Message Edited by flashnik on &lt;SPAN class="date_text"&gt;03-28-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;03:14 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by flashnik on &lt;SPAN class="date_text"&gt;03-28-2006&lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;03:16 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2006 05:52:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938397#M14288</guid>
      <dc:creator>flashnik</dc:creator>
      <dc:date>2006-03-29T05:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Coding error?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938398#M14289</link>
      <description>dgetrf(ref m,ref n,ref a,ref lda,ref ipiv, ref info)?&lt;BR /&gt;&lt;BR /&gt;If dgetrf is call by C-code:&lt;BR /&gt;dgetrf(&amp;amp;m,&amp;amp;n,a,&amp;amp;lda,ipiv,&amp;amp;info);&lt;BR /&gt;&lt;BR /&gt;so the problem is...</description>
      <pubDate>Wed, 29 Mar 2006 22:34:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938398#M14289</guid>
      <dc:creator>ttppo</dc:creator>
      <dc:date>2006-03-29T22:34:55Z</dc:date>
    </item>
    <item>
      <title>hi flashnik</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938399#M14290</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;A href="https://software.intel.com/en-us/user/214343"&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;flashnik&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;U&gt;&lt;FONT color="#0066cc"&gt;​any luck with your problem? i've got similar situation here.&lt;/FONT&gt;&lt;/U&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2017 12:24:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938399#M14290</guid>
      <dc:creator>bo_y_</dc:creator>
      <dc:date>2017-06-25T12:24:26Z</dc:date>
    </item>
    <item>
      <title>Hi Bo,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938400#M14291</link>
      <description>&lt;P&gt;Hi Bo,&lt;/P&gt;

&lt;P&gt;We had some example for how to call MKL function in C#.&amp;nbsp; You may download the Intel_MKL_C#_Examples.zip from&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and try them to see if you can run them first.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2017 01:13:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Coding-error/m-p/938400#M14291</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-06-29T01:13:48Z</dc:date>
    </item>
  </channel>
</rss>

