<?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 what is wrong in this program? in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-wrong-in-this-program/m-p/922096#M13110</link>
    <description>I am a newcommer to MKL and write a simple test program. It is compiled and linked in VC++6 and VC++8 correctly. But when running to "SGETRS", there is a memory accessing violation. All input parameters seem to be right. Could anyone help me?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include&lt;BR /&gt;&lt;BR /&gt;#include&lt;BR /&gt;&lt;BR /&gt;#include&lt;BR /&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void main()&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;int result;&lt;BR /&gt;&lt;BR /&gt;int r, c, i;&lt;BR /&gt;&lt;BR /&gt;char trans;&lt;BR /&gt;&lt;BR /&gt;int order_a, systems_num, row_a, row_b, para_info;&lt;BR /&gt;&lt;BR /&gt;int *pivot_index;&lt;BR /&gt;&lt;BR /&gt;float*a, *b;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;result = 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;trans = 'N';&lt;BR /&gt;&lt;BR /&gt;order_a = 12;&lt;BR /&gt;&lt;BR /&gt;row_a = order_a;&lt;BR /&gt;&lt;BR /&gt;row_b = order_a;&lt;BR /&gt;&lt;BR /&gt;systems_num = 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;a = b = NULL;&lt;BR /&gt;&lt;BR /&gt;pivot_index = NULL;&lt;BR /&gt;&lt;BR /&gt;a = (float*)malloc(order_a*order_a*sizeof(float));&lt;BR /&gt;&lt;BR /&gt;b = (float*)malloc(order_a*systems_num*sizeof(float));&lt;BR /&gt;&lt;BR /&gt;pivot_index = (int*)malloc(order_a*sizeof(int));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;srand((unsigned)time(NULL));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i = 0, c = 0; c &amp;lt; order_a; c++)&lt;BR /&gt;&lt;BR /&gt;for(r = 0; r &amp;lt; order_a; r++)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;a&lt;I&gt; = (float)rand();&lt;BR /&gt;&lt;BR /&gt;i++;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i = 0, c = 0; c &amp;lt; systems_num; c++)&lt;BR /&gt;&lt;BR /&gt;for(r = 0; r &amp;lt; order_a; r++)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;b&lt;I&gt; = (float)rand();&lt;BR /&gt;&lt;BR /&gt;i++;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SGETRS(&amp;amp;trans, &amp;amp;order_a, &amp;amp;systems_num, a, &amp;amp;row_a, pivot_index,&lt;BR /&gt;&lt;BR /&gt;b, &amp;amp;row_b, &amp;amp;para_info);&lt;BR /&gt;&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;</description>
    <pubDate>Sun, 11 Jun 2006 14:07:18 GMT</pubDate>
    <dc:creator>evaw</dc:creator>
    <dc:date>2006-06-11T14:07:18Z</dc:date>
    <item>
      <title>what is wrong in this program?</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-wrong-in-this-program/m-p/922096#M13110</link>
      <description>I am a newcommer to MKL and write a simple test program. It is compiled and linked in VC++6 and VC++8 correctly. But when running to "SGETRS", there is a memory accessing violation. All input parameters seem to be right. Could anyone help me?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include&lt;BR /&gt;&lt;BR /&gt;#include&lt;BR /&gt;&lt;BR /&gt;#include&lt;BR /&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;void main()&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;int result;&lt;BR /&gt;&lt;BR /&gt;int r, c, i;&lt;BR /&gt;&lt;BR /&gt;char trans;&lt;BR /&gt;&lt;BR /&gt;int order_a, systems_num, row_a, row_b, para_info;&lt;BR /&gt;&lt;BR /&gt;int *pivot_index;&lt;BR /&gt;&lt;BR /&gt;float*a, *b;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;result = 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;trans = 'N';&lt;BR /&gt;&lt;BR /&gt;order_a = 12;&lt;BR /&gt;&lt;BR /&gt;row_a = order_a;&lt;BR /&gt;&lt;BR /&gt;row_b = order_a;&lt;BR /&gt;&lt;BR /&gt;systems_num = 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;a = b = NULL;&lt;BR /&gt;&lt;BR /&gt;pivot_index = NULL;&lt;BR /&gt;&lt;BR /&gt;a = (float*)malloc(order_a*order_a*sizeof(float));&lt;BR /&gt;&lt;BR /&gt;b = (float*)malloc(order_a*systems_num*sizeof(float));&lt;BR /&gt;&lt;BR /&gt;pivot_index = (int*)malloc(order_a*sizeof(int));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;srand((unsigned)time(NULL));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i = 0, c = 0; c &amp;lt; order_a; c++)&lt;BR /&gt;&lt;BR /&gt;for(r = 0; r &amp;lt; order_a; r++)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;a&lt;I&gt; = (float)rand();&lt;BR /&gt;&lt;BR /&gt;i++;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for(i = 0, c = 0; c &amp;lt; systems_num; c++)&lt;BR /&gt;&lt;BR /&gt;for(r = 0; r &amp;lt; order_a; r++)&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;b&lt;I&gt; = (float)rand();&lt;BR /&gt;&lt;BR /&gt;i++;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SGETRS(&amp;amp;trans, &amp;amp;order_a, &amp;amp;systems_num, a, &amp;amp;row_a, pivot_index,&lt;BR /&gt;&lt;BR /&gt;b, &amp;amp;row_b, &amp;amp;para_info);&lt;BR /&gt;&lt;BR /&gt;}&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Sun, 11 Jun 2006 14:07:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/what-is-wrong-in-this-program/m-p/922096#M13110</guid>
      <dc:creator>evaw</dc:creator>
      <dc:date>2006-06-11T14:07:18Z</dc:date>
    </item>
  </channel>
</rss>

