<?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 Set the CNR mode for only one function call in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Set-the-CNR-mode-for-only-one-function-call/m-p/1069833#M22196</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I would like to do something like:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;... // a lot of stuff with several calls to MKL routines
int cbwrStatus = mkl_cbwr_set(MKL_CBWR_AUTO);
int status = LAPACKE_dsyev( LAPACK_ROW_MAJOR, 'V', 'L', rank, matrix, rank, eigenValues ); 
mkl_cbwr_set(MKL_CBWR_BRANCH_OFF);
... // a lot of stuff with several calls to MKL routines&lt;/PRE&gt;

&lt;P&gt;Here, mkl_cbwr_set calls fail with MKL_CBWR_ERR_MODE_CHANGE_FAILURE, obviously.&lt;/P&gt;

&lt;P&gt;So, two questions:&lt;/P&gt;

&lt;P&gt;- why is it forbidden (impossible ?) to change the CNR mode after a call to some MKL function ?&lt;/P&gt;

&lt;P&gt;- is there a way to set the CNR mode for only one function ?&lt;/P&gt;

&lt;P&gt;In my case, "dsyev" is the only function really critical for the reproductibility. I do not want to force the CNR mode at the beginning or before the execution because I am afraid of performance regression.&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;

&lt;P&gt;Guix&lt;/P&gt;</description>
    <pubDate>Mon, 16 Nov 2015 17:29:32 GMT</pubDate>
    <dc:creator>Guillaume_A_2</dc:creator>
    <dc:date>2015-11-16T17:29:32Z</dc:date>
    <item>
      <title>Set the CNR mode for only one function call</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Set-the-CNR-mode-for-only-one-function-call/m-p/1069833#M22196</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;I would like to do something like:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;... // a lot of stuff with several calls to MKL routines
int cbwrStatus = mkl_cbwr_set(MKL_CBWR_AUTO);
int status = LAPACKE_dsyev( LAPACK_ROW_MAJOR, 'V', 'L', rank, matrix, rank, eigenValues ); 
mkl_cbwr_set(MKL_CBWR_BRANCH_OFF);
... // a lot of stuff with several calls to MKL routines&lt;/PRE&gt;

&lt;P&gt;Here, mkl_cbwr_set calls fail with MKL_CBWR_ERR_MODE_CHANGE_FAILURE, obviously.&lt;/P&gt;

&lt;P&gt;So, two questions:&lt;/P&gt;

&lt;P&gt;- why is it forbidden (impossible ?) to change the CNR mode after a call to some MKL function ?&lt;/P&gt;

&lt;P&gt;- is there a way to set the CNR mode for only one function ?&lt;/P&gt;

&lt;P&gt;In my case, "dsyev" is the only function really critical for the reproductibility. I do not want to force the CNR mode at the beginning or before the execution because I am afraid of performance regression.&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help,&lt;/P&gt;

&lt;P&gt;Guix&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 17:29:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Set-the-CNR-mode-for-only-one-function-call/m-p/1069833#M22196</guid>
      <dc:creator>Guillaume_A_2</dc:creator>
      <dc:date>2015-11-16T17:29:32Z</dc:date>
    </item>
    <item>
      <title>Hi Guix!  Yes, you are right.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Set-the-CNR-mode-for-only-one-function-call/m-p/1069834#M22197</link>
      <description>&lt;P&gt;Hi Guix! &amp;nbsp;Yes, you are right. Into the current version of MKL&lt;SPAN style="font-size: 12px; line-height: 16.3636px;"&gt;&amp;nbsp;not possible to set the CNR mode for only one MKL function. That's possible to apply for all mkl's functions.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 11:15:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Set-the-CNR-mode-for-only-one-function-call/m-p/1069834#M22197</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2015-11-17T11:15:05Z</dc:date>
    </item>
    <item>
      <title>Hi Gennady,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Set-the-CNR-mode-for-only-one-function-call/m-p/1069835#M22198</link>
      <description>&lt;P&gt;Hi Gennady,&lt;/P&gt;

&lt;P&gt;Thanks for your reply.&lt;/P&gt;

&lt;P&gt;But my questions are "why ?" and "is there a workaround ?" In fact, I am asking for details ;)&lt;/P&gt;

&lt;P&gt;Guix&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 13:19:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Set-the-CNR-mode-for-only-one-function-call/m-p/1069835#M22198</guid>
      <dc:creator>Guillaume_A_2</dc:creator>
      <dc:date>2015-11-17T13:19:59Z</dc:date>
    </item>
  </channel>
</rss>

