<?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 Dmitry, thanks for your in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-generate-a-fatal-exception-to-test-mkl-set-exit-handler/m-p/1080778#M22796</link>
    <description>Hi Dmitry, thanks for your reply. I can create fatal errors when the dynamic libraries are not available.

However, I'm using a custom shared library (https://software.intel.com/en-us/node/528533) which groups all the dynamic libraries in a single file. I'm also using one specific processor, so the library will always match the processor. Does this mean that I can never get this kind of fatal error, which are handled by the function registered with mkl_set_exit_handler(...)? Or are there other ways to trigger the function set by mkl_set_exit_handler(...)?

Second question, is there a way to catch the printed error message like "Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so."?</description>
    <pubDate>Tue, 12 Apr 2016 14:50:47 GMT</pubDate>
    <dc:creator>Gert-Jan</dc:creator>
    <dc:date>2016-04-12T14:50:47Z</dc:date>
    <item>
      <title>How to generate a fatal exception to test mkl_set_exit_handler</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-generate-a-fatal-exception-to-test-mkl-set-exit-handler/m-p/1080776#M22794</link>
      <description>I would like to test my custom handler of fatal errors, but I can't figure out to generate a fatal error :(

I use mkl_set_exit_handler(...) to register my custom handler, but I don't know how to test this. I 'm using the C interface, see &lt;A href="https://software.intel.com/en-us/node/522125" target="_blank"&gt;https://software.intel.com/en-us/node/522125&lt;/A&gt;. Any suggestions are welcome. Generating segmentation faults by out-of-memory-bounds memory accesses (not allocating enough memory) does not seem to trigger the custom handler.</description>
      <pubDate>Fri, 08 Apr 2016 14:52:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-generate-a-fatal-exception-to-test-mkl-set-exit-handler/m-p/1080776#M22794</guid>
      <dc:creator>Gert-Jan</dc:creator>
      <dc:date>2016-04-08T14:52:10Z</dc:date>
    </item>
    <item>
      <title>Hi Gert-Jan,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-generate-a-fatal-exception-to-test-mkl-set-exit-handler/m-p/1080777#M22795</link>
      <description>&lt;P&gt;Hi Gert-Jan,&lt;/P&gt;

&lt;P&gt;MKL Reference Manual describes what a fatal error may be. "For example, a fatal error occurs when Intel MKL cannot load a dynamic library...". If you link your application dynamically with MKL and run it with dynamic libraries inaccessible you will get a call to exit handler.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 03:38:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-generate-a-fatal-exception-to-test-mkl-set-exit-handler/m-p/1080777#M22795</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2016-04-11T03:38:39Z</dc:date>
    </item>
    <item>
      <title>Hi Dmitry, thanks for your</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-generate-a-fatal-exception-to-test-mkl-set-exit-handler/m-p/1080778#M22796</link>
      <description>Hi Dmitry, thanks for your reply. I can create fatal errors when the dynamic libraries are not available.

However, I'm using a custom shared library (https://software.intel.com/en-us/node/528533) which groups all the dynamic libraries in a single file. I'm also using one specific processor, so the library will always match the processor. Does this mean that I can never get this kind of fatal error, which are handled by the function registered with mkl_set_exit_handler(...)? Or are there other ways to trigger the function set by mkl_set_exit_handler(...)?

Second question, is there a way to catch the printed error message like "Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so."?</description>
      <pubDate>Tue, 12 Apr 2016 14:50:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-generate-a-fatal-exception-to-test-mkl-set-exit-handler/m-p/1080778#M22796</guid>
      <dc:creator>Gert-Jan</dc:creator>
      <dc:date>2016-04-12T14:50:47Z</dc:date>
    </item>
  </channel>
</rss>

