<?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, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/misunderstanding-of-dss-create-Direct-Sparse-Solver-DSS/m-p/928829#M13577</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_DSS_DEFAULTS for each DSS routine take different meaning so it is hard to set it to correct value for each routine. That's the reason why DSS_DEFAULTS is not equal to&amp;nbsp;MKL_DSS_MSG_LVL_WARNING+MKL_DSS_TERM_LVL_ERROR in spite of same&amp;nbsp;behavior. But I am strongly avoid to use MKL_DSS_DEFAULTS as one of component in sum - it is better to expand MKL_DSS_DEFAULS for each routine if you don't want to use default parameter. So, for your case you need to set opt =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;MKL_DSS_MSG_LVL_WARNING + MKL_DSS_TERM_LVL_ERROR + MKL_DSS_ZERO_BASED_INDEXING.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2014 16:42:11 GMT</pubDate>
    <dc:creator>Alexander_K_Intel2</dc:creator>
    <dc:date>2014-02-28T16:42:11Z</dc:date>
    <item>
      <title>misunderstanding of dss_create Direct Sparse Solver (DSS) Interface Routines</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/misunderstanding-of-dss-create-Direct-Sparse-Solver-DSS/m-p/928828#M13576</link>
      <description>&lt;P&gt;Dear sir or madam:&lt;/P&gt;

&lt;P&gt;I need to use dss interface in c++ program.&lt;/P&gt;

&lt;P&gt;From Intel® Math Kernel Library Reference Manual MKL 11.1, Page 2973:&lt;/P&gt;

&lt;P&gt;The default value of the parameter opt is MKL_DSS_MSG_LVL_WARNING + MKL_DSS_TERM_LVL_ERROR.&lt;/P&gt;

&lt;P&gt;By default, the DSS routines use Fortran style indexing for input arrays of integer types (the first value is referenced as array element 1), regardless of whether the Fortran or the C interface is used. To set indexing to C style (the first value is referenced as array element 0), add the following value to the opt parameter: MKL_DSS_ZERO_BASED_INDEXING.&lt;/P&gt;

&lt;P&gt;And from dss exmaple dss_sym_c.c, I know that when I need to use default option, I need to&amp;nbsp; write&amp;nbsp;MKL_INT opt = MKL_DSS_DEFAULTS.&lt;/P&gt;

&lt;P&gt;So, if I need to set indexing to C style (the first value is referenced as array element 0), which one I should use:&lt;/P&gt;

&lt;P&gt;MKL_INT opt = MKL_DSS_DEFAULTS+MKL_DSS_ZERO_BASED_INDEXING or MKL_INT opt = MKL_DSS_MSG_LVL_WARNING + MKL_DSS_TERM_LVL_ERROR+MKL_DSS_ZERO_BASED_INDEXING&lt;/P&gt;

&lt;P&gt;Beause when I read mkl_dss.h&lt;/P&gt;

&lt;P&gt;#define MKL_DSS_DEFAULTS&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;

&lt;P&gt;#define MKL_DSS_ZERO_BASED_INDEXING&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;131072&lt;/P&gt;

&lt;P&gt;#define MKL_DSS_MSG_LVL_WARNING&amp;nbsp;&amp;nbsp; &amp;nbsp;-2147483644&lt;BR /&gt;
	#define MKL_DSS_MSG_LVL_ERROR &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;-2147483643&lt;/P&gt;

&lt;P&gt;MKL_DSS_DEFAULTS+MKL_DSS_ZERO_BASED_INDEXING is not equal to MKL_DSS_MSG_LVL_WARNING + MKL_DSS_TERM_LVL_ERROR+MKL_DSS_ZERO_BASED_INDEXING&lt;/P&gt;

&lt;P&gt;Thank you very much&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2014 20:26:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/misunderstanding-of-dss-create-Direct-Sparse-Solver-DSS/m-p/928828#M13576</guid>
      <dc:creator>Chaowen_G_</dc:creator>
      <dc:date>2014-02-26T20:26:14Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/misunderstanding-of-dss-create-Direct-Sparse-Solver-DSS/m-p/928829#M13577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Arial, Helvetica, sans-serif"&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;MKL_DSS_DEFAULTS for each DSS routine take different meaning so it is hard to set it to correct value for each routine. That's the reason why DSS_DEFAULTS is not equal to&amp;nbsp;MKL_DSS_MSG_LVL_WARNING+MKL_DSS_TERM_LVL_ERROR in spite of same&amp;nbsp;behavior. But I am strongly avoid to use MKL_DSS_DEFAULTS as one of component in sum - it is better to expand MKL_DSS_DEFAULS for each routine if you don't want to use default parameter. So, for your case you need to set opt =&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;MKL_DSS_MSG_LVL_WARNING + MKL_DSS_TERM_LVL_ERROR + MKL_DSS_ZERO_BASED_INDEXING.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2014 16:42:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/misunderstanding-of-dss-create-Direct-Sparse-Solver-DSS/m-p/928829#M13577</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2014-02-28T16:42:11Z</dc:date>
    </item>
  </channel>
</rss>

