<?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 CBLAS error handler in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CBLAS-error-handler/m-p/771082#M622</link>
    <description>I've been trying to override error handling for CBLAS calls, but can't seem to find any instructions on this. The best I've been able to find is this post:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=64051"&gt;http://software.intel.com/en-us/forums/showthread.php?t=64051&lt;/A&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Defining XERBLA does override the error handler for standard BLAS calls (ie. dgemm, etc.). However, defining cblas_xerbla has no effect. When I call, for instance, cblas_dgemm with bad parameters I just get the generic "Parameter x was incorrect on entry to cblas_gemm" error message.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Does anyone know of a way to define a custom error handler for CBLAS functions? Any help would be greatly appreciated.&lt;/DIV&gt;</description>
    <pubDate>Tue, 17 Apr 2012 23:19:46 GMT</pubDate>
    <dc:creator>jeff_c71</dc:creator>
    <dc:date>2012-04-17T23:19:46Z</dc:date>
    <item>
      <title>CBLAS error handler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CBLAS-error-handler/m-p/771082#M622</link>
      <description>I've been trying to override error handling for CBLAS calls, but can't seem to find any instructions on this. The best I've been able to find is this post:&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=64051"&gt;http://software.intel.com/en-us/forums/showthread.php?t=64051&lt;/A&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Defining XERBLA does override the error handler for standard BLAS calls (ie. dgemm, etc.). However, defining cblas_xerbla has no effect. When I call, for instance, cblas_dgemm with bad parameters I just get the generic "Parameter x was incorrect on entry to cblas_gemm" error message.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Does anyone know of a way to define a custom error handler for CBLAS functions? Any help would be greatly appreciated.&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Apr 2012 23:19:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CBLAS-error-handler/m-p/771082#M622</guid>
      <dc:creator>jeff_c71</dc:creator>
      <dc:date>2012-04-17T23:19:46Z</dc:date>
    </item>
    <item>
      <title>CBLAS error handler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CBLAS-error-handler/m-p/771083#M623</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thisway it works at my side:&lt;BR /&gt;&lt;BR /&gt;Example source:&lt;BR /&gt;[cpp]#include &lt;MKL.H&gt;

void cblas_xerbla(char *str, int n) {
  printf( "MY_XERBLA: %s detected error in parameter %dn", str, n );
}

int main() {
  double a=1.;
  MKL_INT n=1, bad=-1;
  CBLAS_ORDER     order=CblasRowMajor;
  CBLAS_TRANSPOSE trans=CblasNoTrans;

  cblas_dgemm( order, trans, trans, n, n, n, 
                        a, &amp;amp;a, bad,
                            &amp;amp;a, n,
                        a, &amp;amp;a, n );&lt;BR /&gt;  return 0;
} &lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;[/cpp]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Compilation:&lt;BR /&gt;Linux ia32:&lt;BR /&gt;icc *.c -I$MKLROOT/include -L$MKLROOT/lib/ia32 \&lt;BR /&gt;-Wl,--start-group \&lt;BR /&gt; $MKLROOT/lib/ia32/libmkl_intel.a \&lt;BR /&gt; $MKLROOT/lib/ia32/libmkl_intel_thread.a \&lt;BR /&gt; $MKLROOT/lib/ia32/libmkl_core.a \&lt;BR /&gt;-Wl,--end-group -openmp -lpthread &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Windows intel64:&lt;BR /&gt;set LIB=%LIB%;%MKLROOT%\lib\intel64&lt;BR /&gt;icl *.c -F640000000 -I%MKLROOT%\include mkl_intel_lp64.lib mkl_intel_thread.lib mkl_core.lib /Qopenmp&lt;BR /&gt;&lt;BR /&gt;W.B.R.,&lt;BR /&gt;Alexander&lt;/MKL.H&gt;</description>
      <pubDate>Fri, 20 Apr 2012 07:34:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CBLAS-error-handler/m-p/771083#M623</guid>
      <dc:creator>Alexander_K_Intel3</dc:creator>
      <dc:date>2012-04-20T07:34:47Z</dc:date>
    </item>
  </channel>
</rss>

