<?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 I don't see any problem with in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167989#M28342</link>
    <description>&lt;P&gt;I don't see any problem with the code snippet, provided you add the needed #include directives (at least stdio.h and mkl.h). What OS and which version/release of MKL/C compiler?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2017 03:10:36 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2017-12-05T03:10:36Z</dc:date>
    <item>
      <title>mkl_?csrcoo converter function</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167988#M28341</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	I am trying to get this matrix format converter function to work in C. I checked and edited my program many times as well as checked the documentation but I always end up with the error:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;INTEL MKL ERROR: Parameter 1 was incorrect on entry to MKL_DCSRCOO&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;which refers to the &lt;STRONG&gt;job&lt;/STRONG&gt; array. I want to transform a sparse matrix in COO format to CSR format for use in PARDISO.&amp;nbsp;&lt;BR /&gt;
	&lt;BR /&gt;
	I decided to test it out on the example matrix included under the Storage Format example of the mkl-2017-developer-reference-c.pdf&lt;BR /&gt;
	&lt;BR /&gt;
	Here is my code snippet below:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;int main () 
{
	MKL_INT job[6];
	MKL_INT n = 5;
	MKL_INT nnz = 13;
	MKL_INT info = 0; 

	double *acsr = calloc(nnz, sizeof(double));
	MKL_INT *ja = calloc(nnz, sizeof(MKL_INT));
	MKL_INT *ia = calloc(n+1, sizeof(MKL_INT));

	double acoo[] = { 1, -1, -3, -2, 5, 4, 6, 4, -4, 2, 7, 8, -5 };
	MKL_INT rowind[] = { 1, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5 };
	MKL_INT colind[] = { 1, 2, 4, 1, 2, 3, 4, 5, 1, 3, 4, 2, 5 };


	job[0] = 1;
	job[1] = 1;
	job[2] = 1;
	job[5] = 0;

	mkl_dcsrcoo(job, &amp;amp;n, acsr, ja, ia, &amp;amp;nnz, acoo, rowind, colind, &amp;amp;info);

	getchar(); 
	return 0; 
}&lt;/PRE&gt;

&lt;P&gt;I am using the 2017 version of mkl.&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 23:29:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167988#M28341</guid>
      <dc:creator>Bounrajbanditt_K_</dc:creator>
      <dc:date>2017-12-04T23:29:24Z</dc:date>
    </item>
    <item>
      <title>I don't see any problem with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167989#M28342</link>
      <description>&lt;P&gt;I don't see any problem with the code snippet, provided you add the needed #include directives (at least stdio.h and mkl.h). What OS and which version/release of MKL/C compiler?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 03:10:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167989#M28342</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-12-05T03:10:36Z</dc:date>
    </item>
    <item>
      <title>Version/Release is 17.0.0.109</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167990#M28343</link>
      <description>&lt;P&gt;&lt;SPAN style="color: rgb(83, 86, 90); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px;"&gt;Version/Release is 17.0.0.109 / 20160721. The initial release of Intel Parallel XE 2017.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Here are my includes in case it might help:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#define _CRT_SECURE_NO_DEPRECATE
#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;
#include &amp;lt;math.h&amp;gt;
#include &amp;lt;mkl_lapacke.h&amp;gt;

#include "mkl.h"
#include "mkl_pardiso.h"
#include "mkl_types.h"
#include &amp;lt;time.h&amp;gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using Windows 7 Professional 64-bit (6.1, Build 7601)&amp;nbsp;&lt;/P&gt;

&lt;P&gt;With processor: Intel(R) Xeon(R) CPU E5-1620 v3 @ 3.50GHz (8CPUs)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:44:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167990#M28343</guid>
      <dc:creator>Bounrajbanditt_K_</dc:creator>
      <dc:date>2017-12-05T19:44:49Z</dc:date>
    </item>
    <item>
      <title>I see the error, along with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167991#M28344</link>
      <description>&lt;P&gt;I see the error, along with some compiler messages regarding redefinition of some macros in &amp;lt;math.h&amp;gt;, only when I use the Visual C compiler targeting x64, with the optimization option /Ot. &lt;S&gt;No errors with the Intel C compiler. or with /Od with the Visual C compiler. No errors with either compiler when targeting x86&lt;/S&gt;. (See #6)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 00:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167991#M28344</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-12-06T00:22:00Z</dc:date>
    </item>
    <item>
      <title>I felt like I experimented</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167992#M28345</link>
      <description>&lt;P&gt;I felt like I experimented with a variety of the above options to no avail, the error still persists.&amp;nbsp;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using Microsoft Visual Studio Community 2015 and I found out that the Intel Parallel Studio XE 2017 installed with it is Update 1 with Version 17.0.71.14.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I'm not sure which compiler I'm using or how to switch but I did target x86 as well as messed with various optimization options with the same result.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Appreciate the assistance thus far though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 01:29:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167992#M28345</guid>
      <dc:creator>Bounrajbanditt_K_</dc:creator>
      <dc:date>2017-12-06T01:29:52Z</dc:date>
    </item>
    <item>
      <title>If you open a Parallel Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167993#M28346</link>
      <description>&lt;P&gt;If you open a Parallel Studio command prompt from the Start menu, and type "cl" (for the Visual C compiler) or "icl" (for the Intel C compiler), you will see the version of the compiler displayed.&lt;/P&gt;

&lt;P&gt;I find that if I set up %INCLUDE% so that the Intel C-compiler's non-MKL-related include files are never used, the problems do not occur with older Visual C compilers. That is, if you use the Visual C compiler, and target x64, do not let it search for include files that came with the Intel C compiler, except for the MKL include files, and use an older version of the Visual compiler than&amp;nbsp;19.11.25507.1 .&lt;/P&gt;

&lt;P&gt;UPDATE: I think that the real cause of the problems is that job[3] and/or job[4] are undefined. Some versions of the MKL documentation make no mention of what should go into job[3] (it is intended to specify whether the upper or lower triangle or the whole of the dense matrix is to be filled in), and says that job[4] should be set equal to nzmax in the case when job[0]=0. If this conjecture is correct, the bug should be easy to fix for the MKL team.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;In the meantime, please set job[3] and job[4] to zero and see if that makes the problem go away.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 01:36:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167993#M28346</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-12-06T01:36:00Z</dc:date>
    </item>
    <item>
      <title>Here are some details</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167994#M28347</link>
      <description>&lt;P&gt;Here are some details regarding the MKL bug. Stepping into the MKL routines in the VS debugger, I found the following lines of assembler:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;00007FFDF93FDB70  cmp         dword ptr [rcx+8],1    #  job[2] &amp;gt; 1 ?
00007FFDF93FDB74  ja          00007FFDF93FDB4A  
00007FFDF93FDB76  cmp         dword ptr [rcx+10h],0  #  job[4] &amp;lt; 0 ?
00007FFDF93FDB7A  jl          00007FFDF93FDB4A  
00007FFDF93FDB7C  cmp         dword ptr [rcx+14h],3  #  job[5] &amp;gt; 3 ?
00007FFDF93FDB80  ja          00007FFDF93FDB4A  
&lt;/PRE&gt;

&lt;P&gt;Note that RCX contains the first argument to mkl_dcsrcoo, which is the pointer to the JOB array. In the example code, JOB = [1, 1, 1, ?, ?, 0]. The second compare instruction queries the value of JOB[4], which is not defined. If the junk value happens to be negative, things go wrong. I think that the manual should make it clear that JOB[4] should be set to zero, or the MKL code should be fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 03:01:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167994#M28347</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-12-06T03:01:32Z</dc:date>
    </item>
    <item>
      <title>Hello, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167995#M28348</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please refer to MKL example dconverters.c, which be default in MKL install directory .&amp;nbsp; &amp;nbsp;and it&amp;nbsp; provided the sample code about the function.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;

&lt;P&gt;MKL_INT job[&lt;STRONG&gt;8&lt;/STRONG&gt;];&lt;/P&gt;

&lt;P&gt;&amp;nbsp;job[0]=1;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; job[5]=2;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; mkl_scsrcoo (job,&amp;amp;n, Acsr, AJ,AI,&amp;amp;nnz,Acoo, ir,jc,&amp;amp;info);&amp;nbsp;&lt;/P&gt;

&lt;P&gt;If it is still issue, please submit your question to our official support channel:&amp;nbsp;&lt;A h="ID=SERP,5111.1" href="https://supporttickets.intel.com/" target="_blank"&gt;&lt;STRONG&gt;&lt;I data-bm="25"&gt;&lt;I class="01"&gt;Online&lt;/I&gt; &lt;I&gt;Service&lt;/I&gt; &lt;I&gt;Center&lt;/I&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;I data-bm="26"&gt; - &lt;/I&gt;&lt;STRONG&gt;&lt;I data-bm="27"&gt;&lt;I&gt;Intel&lt;/I&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;I data-bm="28"&gt; &lt;I class="01"&gt;Support&lt;/I&gt;&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;Best Regards&lt;/I&gt;&lt;/P&gt;

&lt;P&gt;&lt;I&gt;Ying&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 04:03:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167995#M28348</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-12-06T04:03:31Z</dc:date>
    </item>
    <item>
      <title>Yes you are right mecej4, it</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167996#M28349</link>
      <description>&lt;P&gt;Yes you are right mecej4, it seems I need to initialize job[3] and job[4] to 0.&amp;nbsp; I was a bit confused as job[3] wasn't mentioned in the documentation and job[4] is used for when job[0] = 0 so I thought I can ignore it. I cannot express my gratitude enough.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you both for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 06:59:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167996#M28349</guid>
      <dc:creator>Bounrajbanditt_K_</dc:creator>
      <dc:date>2017-12-06T06:59:59Z</dc:date>
    </item>
    <item>
      <title>Glad to hear that the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167997#M28350</link>
      <description>&lt;P&gt;Glad to hear that the suggestion worked.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 08:53:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1167997#M28350</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2017-12-06T08:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: If you open a Parallel Studio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1591550#M36056</link>
      <description>&lt;P&gt;doing more checking brb&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 20:01:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1591550#M36056</guid>
      <dc:creator>Gagan</dc:creator>
      <dc:date>2024-04-22T20:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1591553#M36057</link>
      <description>&lt;P&gt;see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MAKE SURE YOU COMPILE WITH -lmkl_intel_lp64 !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i recommend you don't add -DMKL_ILP64 -lmkl_intel_ilp64 to the command line, as i had issues with my test program when using them. but that's up to you and may be "against recommended usage".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i can say is i had no problem converting a matrix with millions of elements when using -lmkl_intel_lp6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and as ying recommended, set the job array to 8, even though tis' probably not required&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;setting jobs[3] = 0 does nothing and should not do anything, either. its not the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 23:18:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1591553#M36057</guid>
      <dc:creator>Gagan</dc:creator>
      <dc:date>2024-04-22T23:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hello,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1591562#M36058</link>
      <description>&lt;P&gt;&lt;STRONG&gt;TO ANYONE EXPERIENCING THIS ISSUE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;make SURE you are compiling with -lmkl_intel_lp64 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;i experienced this issue when converting CSR to COO and i was puzzled. this flag is important.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i do find it strange the compiler does not throw an error in the absence of this library, as compiling with&lt;/P&gt;&lt;P&gt;-lmkl_intel_thread -lmkl_core -lmkl_intel_ilp64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compile without issues, but exhibits the exact issue that stumped many people on this forum (and will continue to do so).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-lmkl_core -lmkl_intel_thread -lmkl_intel_lp64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it seems to work.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 20:22:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mkl-csrcoo-converter-function/m-p/1591562#M36058</guid>
      <dc:creator>Gagan</dc:creator>
      <dc:date>2024-04-22T20:22:27Z</dc:date>
    </item>
  </channel>
</rss>

