<?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 Floating exception error when using a custom library with tools/builder in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-exception-error-when-using-a-custom-library-with-tools/m-p/873331#M8677</link>
    <description>Hi,&lt;BR /&gt;I'm running into an annoyning problem when trying to build my own custom library using the makefile in tools/builder. I have MKL version 10.0.011 and for the sake of simplicity I will simply use the default example it ships with:&lt;BR /&gt;&lt;BR /&gt;1. Contents of user_list:&lt;BR /&gt;dgemm_&lt;BR /&gt;ddot_&lt;BR /&gt;dgetrf_&lt;BR /&gt;&lt;BR /&gt;2. Build mkl_custom.so library with the following command:&lt;BR /&gt;make ia32&lt;BR /&gt;&lt;BR /&gt;3. Link the custom library with a simple hello world program (note: the program does not call any routine from the library):&lt;BR /&gt;contents of hello.cpp:&lt;BR /&gt;&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; cout &amp;lt;&amp;lt; "Hello world" &amp;lt;&amp;lt; endl;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;4. Now, compile and link the program:&lt;BR /&gt;icpc hello.cpp mkl_custom.so -lpthread&lt;BR /&gt;&lt;BR /&gt;5. Execute the program&lt;BR /&gt;./a.out&lt;BR /&gt;- This gives the correct output.&lt;BR /&gt;&lt;BR /&gt;6. This is the interesting part (or so I think). If I now copy the custom library mkl_custom.so and the source file hello.cpp to a different machine and repeat the build/execute steps of 4 and 5 I get a "Floating exception" error. However, if I regenerate the custom library on the remote machine using step 2 above then everything works and I'm able to run the program without getting the "Floating exception" error.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas as to what can be happening here? Also, I have tried all different combinations of:&lt;BR /&gt;&lt;BR /&gt;- Use the g++ compiler instead of icpc =&amp;gt; does not matter&lt;BR /&gt;- Use the static vs. dynamic linking =&amp;gt; does not matter&lt;BR /&gt;- I have the same set of libmkl_*.a libraries that I copy from place to place to generate the custom_mkl.so library.&lt;BR /&gt;&lt;BR /&gt;Also, this is the setup on each of the machines:&lt;BR /&gt;&lt;BR /&gt;Machine A:&lt;BR /&gt;- corei7 &lt;BR /&gt;- g++ 4.3.2&lt;BR /&gt;- icpc 11.0 20081105&lt;BR /&gt;&lt;BR /&gt;Machine B:&lt;BR /&gt;- Intel Pentium 4 CPU 3.00GHz&lt;BR /&gt;- g++ 3.4.5&lt;BR /&gt;- icpc 11.0 20081105&lt;BR /&gt;&lt;BR /&gt;One additional note: I have found that the problem is in going from Machine A to Machine B. I can start on Machine B, generate mkl_custom.so, copy it to Machine A and use it with no perceived probelms.&lt;BR /&gt;&lt;BR /&gt;-Simon&lt;/IOSTREAM&gt;</description>
    <pubDate>Wed, 25 Mar 2009 01:31:46 GMT</pubDate>
    <dc:creator>sgwood</dc:creator>
    <dc:date>2009-03-25T01:31:46Z</dc:date>
    <item>
      <title>Floating exception error when using a custom library with tools/builder</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-exception-error-when-using-a-custom-library-with-tools/m-p/873331#M8677</link>
      <description>Hi,&lt;BR /&gt;I'm running into an annoyning problem when trying to build my own custom library using the makefile in tools/builder. I have MKL version 10.0.011 and for the sake of simplicity I will simply use the default example it ships with:&lt;BR /&gt;&lt;BR /&gt;1. Contents of user_list:&lt;BR /&gt;dgemm_&lt;BR /&gt;ddot_&lt;BR /&gt;dgetrf_&lt;BR /&gt;&lt;BR /&gt;2. Build mkl_custom.so library with the following command:&lt;BR /&gt;make ia32&lt;BR /&gt;&lt;BR /&gt;3. Link the custom library with a simple hello world program (note: the program does not call any routine from the library):&lt;BR /&gt;contents of hello.cpp:&lt;BR /&gt;&lt;BR /&gt;#include &lt;IOSTREAM&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; cout &amp;lt;&amp;lt; "Hello world" &amp;lt;&amp;lt; endl;&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;4. Now, compile and link the program:&lt;BR /&gt;icpc hello.cpp mkl_custom.so -lpthread&lt;BR /&gt;&lt;BR /&gt;5. Execute the program&lt;BR /&gt;./a.out&lt;BR /&gt;- This gives the correct output.&lt;BR /&gt;&lt;BR /&gt;6. This is the interesting part (or so I think). If I now copy the custom library mkl_custom.so and the source file hello.cpp to a different machine and repeat the build/execute steps of 4 and 5 I get a "Floating exception" error. However, if I regenerate the custom library on the remote machine using step 2 above then everything works and I'm able to run the program without getting the "Floating exception" error.&lt;BR /&gt;&lt;BR /&gt;Does anyone have any ideas as to what can be happening here? Also, I have tried all different combinations of:&lt;BR /&gt;&lt;BR /&gt;- Use the g++ compiler instead of icpc =&amp;gt; does not matter&lt;BR /&gt;- Use the static vs. dynamic linking =&amp;gt; does not matter&lt;BR /&gt;- I have the same set of libmkl_*.a libraries that I copy from place to place to generate the custom_mkl.so library.&lt;BR /&gt;&lt;BR /&gt;Also, this is the setup on each of the machines:&lt;BR /&gt;&lt;BR /&gt;Machine A:&lt;BR /&gt;- corei7 &lt;BR /&gt;- g++ 4.3.2&lt;BR /&gt;- icpc 11.0 20081105&lt;BR /&gt;&lt;BR /&gt;Machine B:&lt;BR /&gt;- Intel Pentium 4 CPU 3.00GHz&lt;BR /&gt;- g++ 3.4.5&lt;BR /&gt;- icpc 11.0 20081105&lt;BR /&gt;&lt;BR /&gt;One additional note: I have found that the problem is in going from Machine A to Machine B. I can start on Machine B, generate mkl_custom.so, copy it to Machine A and use it with no perceived probelms.&lt;BR /&gt;&lt;BR /&gt;-Simon&lt;/IOSTREAM&gt;</description>
      <pubDate>Wed, 25 Mar 2009 01:31:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-exception-error-when-using-a-custom-library-with-tools/m-p/873331#M8677</guid>
      <dc:creator>sgwood</dc:creator>
      <dc:date>2009-03-25T01:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Floating exception error when using a custom library with t</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-exception-error-when-using-a-custom-library-with-tools/m-p/873332#M8678</link>
      <description>&lt;P&gt;Interesting ...&lt;BR /&gt;Probably some issue with CPU dispatching because of Core&lt;SUP&gt;TM&lt;/SUP&gt; i7 processors started to support in MKL 10.1 version only. &lt;BR /&gt;But this is just a guess!! -:), especially as your program doesn't call mkl's routines explicitly.&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2009 11:25:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-exception-error-when-using-a-custom-library-with-tools/m-p/873332#M8678</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-03-27T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Floating exception error when using a custom library with t</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-exception-error-when-using-a-custom-library-with-tools/m-p/873333#M8679</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Interesting ...&lt;BR /&gt;Probably some issue with CPU dispatching because of  Core&lt;SUP&gt;TM&lt;/SUP&gt; i7 processors started to support in MKL 10.1 version only. &lt;BR /&gt;But this is just a guess!! -:), especially as your program doesn't call mkl's routines explicitly.&lt;BR /&gt;--Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Interesting thought. I decided to try all previous versions of MKL starting with the intial 10.0 release. Using the default example in the tools/builder directory gives the same result. I am starting to believe that the custom library builder never worked. Again, it works great on the machine that it is built on, however if you try to use a custom library on a different machine you have the potential of getting the Floating Exception error.&lt;BR /&gt;&lt;BR /&gt;-Simon&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Apr 2009 18:39:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Floating-exception-error-when-using-a-custom-library-with-tools/m-p/873333#M8679</guid>
      <dc:creator>sgwood</dc:creator>
      <dc:date>2009-04-10T18:39:24Z</dc:date>
    </item>
  </channel>
</rss>

